Skip to content

Commit 94f8bf7

Browse files
authored
Move aws-sdk-signers project format inline with other packages (#402)
1 parent 7ffb90c commit 94f8bf7

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

packages/aws-sdk-signers/pyproject.toml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
[build-system]
2-
requires = ["setuptools", "setuptools-scm", "wheel"]
3-
build-backend = "setuptools.build_meta"
4-
51
[project]
62
name = "aws_sdk_signers"
3+
version = "0.0.2"
74
requires-python = ">=3.12"
85
authors = [
96
{name = "Amazon Web Services"},
@@ -26,13 +23,15 @@ classifiers = [
2623
"Programming Language :: Python :: Implementation :: CPython",
2724
"Topic :: Software Development :: Libraries"
2825
]
29-
dynamic = ["version"]
3026

31-
[tool.setuptools.dynamic]
32-
version = {attr = "aws_sdk_signers._version.__version__"}
27+
[build-system]
28+
requires = ["hatchling"]
29+
build-backend = "hatchling.build"
3330

34-
[tool.setuptools]
35-
include-package-data = false
31+
[tool.hatch.build]
32+
exclude = [
33+
"tests",
34+
]
3635

3736
[project.optional-dependencies]
3837
test = [
@@ -43,10 +42,6 @@ test = [
4342
"ruff",
4443
]
4544

46-
[tool.mypy]
47-
python_version = "3.12"
48-
strict = true
49-
5045
[tool.pytest.ini_options]
5146
asyncio_mode = "auto"
5247
addopts = "-W error"

packages/aws-sdk-signers/src/aws_sdk_signers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
such as AioHTTP, Curl, Postman, Requests, urllib3, etc."""
55

66
from __future__ import annotations
7+
import importlib.metadata
78

89
from ._http import URI, AWSRequest, Field, Fields
910
from ._identity import AWSCredentialIdentity
1011
from ._io import AsyncBytesReader
11-
from ._version import __version__
1212
from .signers import AsyncSigV4Signer, SigV4Signer, SigV4SigningProperties
1313

1414
__license__ = "Apache-2.0"
15-
__version__ = __version__
15+
__version__ = importlib.metadata.version("aws-sdk-signers")
1616

1717
__all__ = (
1818
"AsyncBytesReader",

packages/aws-sdk-signers/src/aws_sdk_signers/_version.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

uv.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)