Skip to content

Commit 1073f2f

Browse files
committed
Replace versioneer with poetry-dynamic-versioning
Update dependencies.
1 parent 3dedd84 commit 1073f2f

File tree

4 files changed

+29
-619
lines changed

4 files changed

+29
-619
lines changed

poetry.lock

Lines changed: 19 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ requests-toolbelt = "^1.0.0"
3636
PyJWT = "^2.8.0"
3737

3838
[tool.poetry.group.dev.dependencies]
39-
versioneer = "^0.29"
4039
PyYAML = "^6.0.1"
4140
ruff = "^0.4.9"
4241
pytest = "^8.2.2"
@@ -47,16 +46,17 @@ sphinx = "^7.3.7"
4746
sphinx-rtd-theme = "^2.0.0"
4847

4948
[build-system]
50-
requires = ["poetry-core", "versioneer[toml]"]
49+
requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
5150
build-backend = "poetry.core.masonry.api"
5251

53-
[tool.versioneer]
54-
VCS = "git"
55-
style = "pep440-post"
56-
versionfile_source = "src/webexpythonsdk/_version.py"
57-
versionfile_build = "webexpythonsdk/_version.py"
58-
tag_prefix = "v"
59-
parentdir_prefix = "webexpythonsdk-"
52+
[tool.poetry-dynamic-versioning]
53+
enable = true
54+
vcs = "git"
55+
style = "pep440"
56+
57+
[tool.poetry-dynamic-versioning.substitution]
58+
files = ["src/webexpythonsdk/_metadata.py"]
59+
6060

6161
[tool.pytest.ini_options]
6262
addopts = "--strict-markers"
@@ -65,8 +65,6 @@ markers = ["slow", "manual"]
6565
[tool.ruff]
6666
line-length = 79
6767
extend-exclude = [
68-
"versioneer.py",
69-
"src/webexpythonsdk/_version.py",
7068
"generator/**",
7169
]
7270

src/webexpythonsdk/_metadata.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,11 @@
2222
"""
2323

2424
__title__ = "webexpythonsdk"
25+
__version__ = "0.0.0" # This will be overwritten by the build process
2526
__description__ = "Community-developed Python SDK for the Webex APIs"
2627
__url__ = "https://github.com/WebexCommunity/WebexPythonSDK"
2728
__download_url__ = "https://pypi.python.org/pypi/webexpythonsdk"
2829
__author__ = "Chris Lunsford"
2930
__author_email__ = "chrlunsf@cisco.com"
3031
__copyright__ = "Copyright (c) 2016-2024 Cisco and/or its affiliates."
3132
__license__ = "MIT"
32-
33-
34-
# Only import the ._version module and compute the version when this module is
35-
# imported.
36-
if __name__ == "webexpythonsdk._metadata":
37-
from ._version import get_versions
38-
39-
__version__ = get_versions()["version"]
40-
del get_versions

0 commit comments

Comments
 (0)