diff --git a/packages/aws-event-stream/pyproject.toml b/packages/aws-event-stream/pyproject.toml index eb7f20268..ec994ea15 100644 --- a/packages/aws-event-stream/pyproject.toml +++ b/packages/aws-event-stream/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "aws-event-stream" -version = "0.1.0" +version = "0.0.1" description = "Core Smithy components for AWS services and protocols." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/aws-event-stream/src/aws_event_stream/__init__.py b/packages/aws-event-stream/src/aws_event_stream/__init__.py index 04f8b7b76..ec11bb061 100644 --- a/packages/aws-event-stream/src/aws_event_stream/__init__.py +++ b/packages/aws-event-stream/src/aws_event_stream/__init__.py @@ -1,2 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 + +import importlib.metadata + +__version__: str = importlib.metadata.version("aws-event-stream") diff --git a/packages/smithy-aws-core/pyproject.toml b/packages/smithy-aws-core/pyproject.toml index 991c6130b..c23564f28 100644 --- a/packages/smithy-aws-core/pyproject.toml +++ b/packages/smithy-aws-core/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smithy-aws-core" -version = "0.1.0" +version = "0.0.1" description = "Core Smithy components for AWS services and protocols." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/smithy-aws-core/src/smithy_aws_core/__init__.py b/packages/smithy-aws-core/src/smithy_aws_core/__init__.py index 654905217..315342cab 100644 --- a/packages/smithy-aws-core/src/smithy_aws_core/__init__.py +++ b/packages/smithy-aws-core/src/smithy_aws_core/__init__.py @@ -1,12 +1,6 @@ -# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You -# may not use this file except in compliance with the License. A copy of -# the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is -# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF -# ANY KIND, either express or implied. See the License for the specific -# language governing permissions and limitations under the License. +# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + +import importlib.metadata + +__version__: str = importlib.metadata.version("smithy-aws-core") diff --git a/packages/smithy-core/pyproject.toml b/packages/smithy-core/pyproject.toml index 81856563c..d1ee1d4ad 100644 --- a/packages/smithy-core/pyproject.toml +++ b/packages/smithy-core/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smithy_core" -version = "0.1.0" +version = "0.0.1" description = "Core components for implementing Smithy tooling in Python." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/smithy-core/src/smithy_core/__init__.py b/packages/smithy-core/src/smithy_core/__init__.py index 310a1e210..2f6fe0a38 100644 --- a/packages/smithy-core/src/smithy_core/__init__.py +++ b/packages/smithy-core/src/smithy_core/__init__.py @@ -8,6 +8,10 @@ from . import interfaces, rfc3986 from .exceptions import SmithyException +import importlib.metadata + +__version__: str = importlib.metadata.version("smithy-core") + class HostType(Enum): """Enumeration of possible host types.""" diff --git a/packages/smithy-event-stream/pyproject.toml b/packages/smithy-event-stream/pyproject.toml index 51406eceb..8e02c864f 100644 --- a/packages/smithy-event-stream/pyproject.toml +++ b/packages/smithy-event-stream/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smithy-event-stream" -version = "0.1.0" +version = "0.0.1" description = "Smithy event stream interfaces and core components." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/smithy-event-stream/src/smithy_event_stream/__init__.py b/packages/smithy-event-stream/src/smithy_event_stream/__init__.py index 04f8b7b76..a0e0eb6c0 100644 --- a/packages/smithy-event-stream/src/smithy_event_stream/__init__.py +++ b/packages/smithy-event-stream/src/smithy_event_stream/__init__.py @@ -1,2 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 + +import importlib.metadata + +__version__: str = importlib.metadata.version("smithy-event-stream") diff --git a/packages/smithy-http/pyproject.toml b/packages/smithy-http/pyproject.toml index 0693786e9..88de0861d 100644 --- a/packages/smithy-http/pyproject.toml +++ b/packages/smithy-http/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smithy_http" -version = "0.1.0" +version = "0.0.1" description = "HTTP components for Smithy tooling." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/smithy-http/src/smithy_http/__init__.py b/packages/smithy-http/src/smithy_http/__init__.py index 34ff97fc5..fa3ff6f01 100644 --- a/packages/smithy-http/src/smithy_http/__init__.py +++ b/packages/smithy-http/src/smithy_http/__init__.py @@ -6,6 +6,10 @@ from . import interfaces from .interfaces import FieldPosition +import importlib.metadata + +__version__: str = importlib.metadata.version("smithy-http") + class Field(interfaces.Field): """A name-value pair representing a single field in an HTTP Request or Response. diff --git a/packages/smithy-json/pyproject.toml b/packages/smithy-json/pyproject.toml index 16d5e3eaf..3fa945d0d 100644 --- a/packages/smithy-json/pyproject.toml +++ b/packages/smithy-json/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smithy-json" -version = "0.1.0" +version = "0.0.1" description = "JSON serialization and deserialization support for Smithy tooling." readme = "README.md" requires-python = ">=3.12" diff --git a/packages/smithy-json/src/smithy_json/__init__.py b/packages/smithy-json/src/smithy_json/__init__.py index 11d7494f7..1a1214c14 100644 --- a/packages/smithy-json/src/smithy_json/__init__.py +++ b/packages/smithy-json/src/smithy_json/__init__.py @@ -11,6 +11,10 @@ from ._private.deserializers import JSONShapeDeserializer as _JSONShapeDeserializer from ._private.serializers import JSONShapeSerializer as _JSONShapeSerializer +import importlib.metadata + +__version__: str = importlib.metadata.version("smithy-json") + class JSONCodec(Codec): """A codec for converting shapes to/from JSON.""" diff --git a/uv.lock b/uv.lock index 41cf3b3c8..3b2c9daa9 100644 --- a/uv.lock +++ b/uv.lock @@ -95,7 +95,7 @@ wheels = [ [[package]] name = "aws-event-stream" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/aws-event-stream" } dependencies = [ { name = "smithy-core" }, @@ -649,7 +649,7 @@ wheels = [ [[package]] name = "smithy-aws-core" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/smithy-aws-core" } dependencies = [ { name = "smithy-core" }, @@ -660,7 +660,7 @@ requires-dist = [{ name = "smithy-core", editable = "packages/smithy-core" }] [[package]] name = "smithy-core" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/smithy-core" } [package.dev-dependencies] @@ -675,7 +675,7 @@ dev = [{ name = "freezegun", specifier = ">=1.5.1" }] [[package]] name = "smithy-event-stream" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/smithy-event-stream" } dependencies = [ { name = "smithy-core" }, @@ -686,7 +686,7 @@ requires-dist = [{ name = "smithy-core", editable = "packages/smithy-core" }] [[package]] name = "smithy-http" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/smithy-http" } dependencies = [ { name = "smithy-core" }, @@ -710,7 +710,7 @@ provides-extras = ["awscrt", "aiohttp"] [[package]] name = "smithy-json" -version = "0.1.0" +version = "0.0.1" source = { editable = "packages/smithy-json" } dependencies = [ { name = "ijson" },