Skip to content

Commit

Permalink
Moving Python automation api from pulumi.x.automation to pulumi.autom…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
stack72 committed Mar 13, 2021
1 parent 15cf033 commit e576fea
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 25 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_PENDING.md
Expand Up @@ -12,6 +12,9 @@
- [Automation/nodejs] Moving NodeJS automation API package from sdk/nodejs/x/automation -> sdk/nodejs/automation
[#6518](https://github.com/pulumi/pulumi/pull/6518)

- [Automation/python] Moving Python automation API package from pulumi.x.automation -> pulumi.automation
[#6518](https://github.com/pulumi/pulumi/pull/6518)


### Enhancements

Expand Down
4 changes: 2 additions & 2 deletions sdk/python/lib/pulumi/__init__.py
Expand Up @@ -96,7 +96,7 @@
set,
)

from . import runtime, dynamic, policy, x
from . import runtime, dynamic, policy, automation

__all__ = [
# asset
Expand Down Expand Up @@ -169,5 +169,5 @@
"runtime",
"dynamic",
"policy",
"x"
"automation"
]
File renamed without changes.
File renamed without changes.
Expand Up @@ -19,10 +19,10 @@
from contextlib import suppress

from ._workspace import PulumiFn
from ... import log
from ...runtime.proto import language_pb2, plugin_pb2, LanguageRuntimeServicer
from ...runtime import run_in_stack, reset_options, set_all_config
from ...errors import RunError
from .. import log
from ..runtime.proto import language_pb2, plugin_pb2, LanguageRuntimeServicer
from ..runtime import run_in_stack, reset_options, set_all_config
from ..errors import RunError

_py_version_less_than_3_7 = sys.version_info[0] == 3 and sys.version_info[1] < 7

Expand Down
Expand Up @@ -24,8 +24,8 @@
from .errors import StackAlreadyExistsError
from ._server import LanguageServer
from ._workspace import Workspace, PulumiFn, Deployment
from ...runtime.settings import _GRPC_CHANNEL_OPTIONS
from ...runtime.proto import language_pb2_grpc
from ..runtime.settings import _GRPC_CHANNEL_OPTIONS
from ..runtime.proto import language_pb2_grpc

_DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ'

Expand Down
File renamed without changes.
15 changes: 0 additions & 15 deletions sdk/python/lib/pulumi/x/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/python/lib/test/automation/test_errors.py
Expand Up @@ -17,7 +17,7 @@
import subprocess
import unittest
import pytest
from pulumi.x.automation import (
from pulumi.automation import (
create_stack,
InlineSourceRuntimeError,
RuntimeError,
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/lib/test/automation/test_local_workspace.py
Expand Up @@ -18,7 +18,7 @@
from typing import List, Optional

from pulumi import Config, export
from pulumi.x.automation import (
from pulumi.automation import (
create_stack,
create_or_select_stack,
CommandError,
Expand Down

0 comments on commit e576fea

Please sign in to comment.