Skip to content

Commit 7ffb90c

Browse files
authored
All Packages to 0.0.1. Use importlib metadata for __version__ (#399)
1 parent cf2c724 commit 7ffb90c

File tree

13 files changed

+38
-24
lines changed

13 files changed

+38
-24
lines changed

packages/aws-event-stream/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aws-event-stream"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "Core Smithy components for AWS services and protocols."
55
readme = "README.md"
66
requires-python = ">=3.12"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3+
4+
import importlib.metadata
5+
6+
__version__: str = importlib.metadata.version("aws-event-stream")

packages/smithy-aws-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "smithy-aws-core"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "Core Smithy components for AWS services and protocols."
55
readme = "README.md"
66
requires-python = ">=3.12"
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License"). You
4-
# may not use this file except in compliance with the License. A copy of
5-
# the License is located at
6-
#
7-
# http://aws.amazon.com/apache2.0/
8-
#
9-
# or in the "license" file accompanying this file. This file is
10-
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11-
# ANY KIND, either express or implied. See the License for the specific
12-
# language governing permissions and limitations under the License.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
import importlib.metadata
5+
6+
__version__: str = importlib.metadata.version("smithy-aws-core")

packages/smithy-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "smithy_core"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "Core components for implementing Smithy tooling in Python."
55
readme = "README.md"
66
requires-python = ">=3.12"

packages/smithy-core/src/smithy_core/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from . import interfaces, rfc3986
99
from .exceptions import SmithyException
1010

11+
import importlib.metadata
12+
13+
__version__: str = importlib.metadata.version("smithy-core")
14+
1115

1216
class HostType(Enum):
1317
"""Enumeration of possible host types."""

packages/smithy-event-stream/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "smithy-event-stream"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "Smithy event stream interfaces and core components."
55
readme = "README.md"
66
requires-python = ">=3.12"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3+
4+
import importlib.metadata
5+
6+
__version__: str = importlib.metadata.version("smithy-event-stream")

packages/smithy-http/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "smithy_http"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "HTTP components for Smithy tooling."
55
readme = "README.md"
66
requires-python = ">=3.12"

packages/smithy-http/src/smithy_http/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
from . import interfaces
77
from .interfaces import FieldPosition
88

9+
import importlib.metadata
10+
11+
__version__: str = importlib.metadata.version("smithy-http")
12+
913

1014
class Field(interfaces.Field):
1115
"""A name-value pair representing a single field in an HTTP Request or Response.

0 commit comments

Comments
 (0)