Skip to content

Commit 4e93112

Browse files
whummerclaude
andcommitted
restructure utils package to localstack.extensions.utils namespace
Change the module structure from localstack_extensions_utils to localstack.extensions.utils to follow LocalStack naming conventions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e5968cf commit 4e93112

9 files changed

Lines changed: 11 additions & 6 deletions

File tree

typedb/localstack_typedb/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import shlex
33

44
from localstack.config import is_env_not_false
5-
from localstack_extensions_utils import ProxiedDockerContainerExtension
5+
from localstack.extensions.utils import ProxiedDockerContainerExtension
66
from rolo import Request
77
from werkzeug.datastructures import Headers
88

typedb/tests/test_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22
import httpx
33
from localstack.utils.strings import short_uid
4-
from localstack_extensions_utils import (
4+
from localstack.extensions.utils import (
55
get_frames_from_http2_stream,
66
get_headers_from_frames,
77
)

utils/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pip install "git+https://github.com/localstack/localstack-extensions.git#egg=loc
4141
### Creating a Docker-based Extension
4242

4343
```python
44-
from localstack_extensions_utils.docker import ProxiedDockerContainerExtension
44+
from localstack.extensions.utils import ProxiedDockerContainerExtension
4545
from werkzeug.datastructures import Headers
4646

4747
class MyExtension(ProxiedDockerContainerExtension):

utils/localstack/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# this is a namespace package
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# this is a namespace package

utils/localstack_extensions_utils/__init__.py renamed to utils/localstack/extensions/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from localstack_extensions_utils.docker import (
1+
from localstack.extensions.utils.docker import (
22
ProxiedDockerContainerExtension,
33
ProxyResource,
44
)
5-
from localstack_extensions_utils.h2_proxy import (
5+
from localstack.extensions.utils.h2_proxy import (
66
TcpForwarder,
77
apply_http2_patches_for_grpc_support,
88
get_headers_from_data_stream,

utils/localstack_extensions_utils/docker.py renamed to utils/localstack/extensions/utils/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from localstack import config
99
from localstack.config import is_env_true
10-
from localstack_extensions_utils.h2_proxy import (
10+
from localstack.extensions.utils.h2_proxy import (
1111
apply_http2_patches_for_grpc_support,
1212
)
1313
from localstack.utils.docker_utils import DOCKER_CLIENT
File renamed without changes.

utils/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ dev = [
3535
"pytest",
3636
"ruff",
3737
]
38+
39+
[tool.setuptools.packages.find]
40+
include = ["localstack*"]

0 commit comments

Comments
 (0)