Skip to content

Commit

Permalink
chore: use setuptools-git-versioning to manage release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
plankthom committed May 28, 2024
1 parent 38ae7a0 commit 3bbc2ab
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ISC License (ISC)
Copyright 2020, Waylay
Copyright 2024, Waylay

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"

[project]
name = "waylay-sdk-core"
version = "0.2.1"
dynamic = ["version"]
description = "Waylay Python SDK."
requires-python = ">=3.9"
keywords = ["waylay", "sdk"]
Expand Down Expand Up @@ -32,6 +32,8 @@ Repository = "https://github.com/waylayio/waylay-sdk-py.git"
[project.entry-points.dynamic]
"waylay_sdk_plugins"= "waylay.sdk.plugin.loader:PLUGINS"

[tool.setuptools-git-versioning]
enabled = true

[tool.setuptools.package-data]
waylay = ["py.typed"]
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.3.10.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_core
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_core
annotated-types==0.7.0
anyio==4.4.0
appdirs==1.4.4
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.3.11.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_core
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_core
annotated-types==0.7.0
anyio==4.4.0
appdirs==1.4.4
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.3.12.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_core
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_core
annotated-types==0.7.0
anyio==4.4.0
appdirs==1.4.4
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.3.9.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_core
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_core
annotated-types==0.7.0
anyio==4.4.0
appdirs==1.4.4
Expand Down
4 changes: 2 additions & 2 deletions requirements/requirements.dev.3.10.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
PyYAML==6.0.1
cfgv==3.4.0
charset-normalizer==3.3.2
Expand Down Expand Up @@ -29,5 +29,5 @@ types-pyasn1==0.6.0.20240402
types-python-dateutil==2.9.0.20240316
types-python-jose==3.3.4.20240106
untokenize==0.1.1
uvicorn==0.29.0
uvicorn==0.30.0
virtualenv==20.26.2
4 changes: 2 additions & 2 deletions requirements/requirements.dev.3.11.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
PyYAML==6.0.1
cfgv==3.4.0
charset-normalizer==3.3.2
Expand Down Expand Up @@ -29,5 +29,5 @@ types-pyasn1==0.6.0.20240402
types-python-dateutil==2.9.0.20240316
types-python-jose==3.3.4.20240106
untokenize==0.1.1
uvicorn==0.29.0
uvicorn==0.30.0
virtualenv==20.26.2
4 changes: 2 additions & 2 deletions requirements/requirements.dev.3.12.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
PyYAML==6.0.1
cfgv==3.4.0
charset-normalizer==3.3.2
Expand Down Expand Up @@ -29,5 +29,5 @@ types-pyasn1==0.6.0.20240402
types-python-dateutil==2.9.0.20240316
types-python-jose==3.3.4.20240106
untokenize==0.1.1
uvicorn==0.29.0
uvicorn==0.30.0
virtualenv==20.26.2
4 changes: 2 additions & 2 deletions requirements/requirements.dev.3.9.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -e git+https://github.com/waylayio/waylay-py-core.git@a12e437343b35d2388eddcc154ca03b69c0d8ff7#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
# -e git+https://github.com/waylayio/waylay-py-core.git@38ae7a0c6049c41e69d3a8ac4a7a3c2305022359#egg=waylay_sdk_plugin_example&subdirectory=test/plugin
PyYAML==6.0.1
cfgv==3.4.0
charset-normalizer==3.3.2
Expand Down Expand Up @@ -29,5 +29,5 @@ types-pyasn1==0.6.0.20240402
types-python-dateutil==2.9.0.20240316
types-python-jose==3.3.4.20240106
untokenize==0.1.1
uvicorn==0.29.0
uvicorn==0.30.0
virtualenv==20.26.2
4 changes: 3 additions & 1 deletion src/waylay/sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Release version of waylay-sdk-core."""

__version__ = "0.2.1"
import importlib.metadata

__version__ = importlib.metadata.version("waylay-sdk-core")
2 changes: 1 addition & 1 deletion test/unit/api/example/pet_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Pet(BaseModel):

name: StrictStr
owner: PetOwner
# workaround: on python 3.9, when using
# workaround: on python 3.9, when using
# tag: StrictStr | None = None
# {"skip_validation": True} does not work in type_adapter.validate_python
# leading to other snapshots (_Model i.o Pet)
Expand Down

0 comments on commit 3bbc2ab

Please sign in to comment.