From dd3a8d1f7f14f5fffd2035ae2f4fa2bfab9a6b2b Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Mon, 30 Sep 2024 11:28:01 +0500 Subject: [PATCH] build: single version source --- .bumpversion.cfg | 11 ----------- docs/conf.py | 6 ++++-- poetry.lock | 13 +------------ pyproject.toml | 1 - pyzeebe/__init__.py | 2 -- 5 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index e77b05fd..00000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[bumpversion] -current_version = 4.0.0rc5 -commit = True -parse = (?P\d+)\.(?P\d+)\.(?P\d+) -serialize = {major}.{minor}.{patch} - -[bumpversion:file:pyproject.toml] - -[bumpversion:file:pyzeebe/__init__.py] - -[bumpversion:file:docs/conf.py] diff --git a/docs/conf.py b/docs/conf.py index 230b94ef..27e5e8fa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,6 +6,8 @@ # -- Path setup -------------------------------------------------------------- +import importlib.metadata + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -26,7 +28,7 @@ author = "Jonatan Martens" # The full version, including alpha/beta/rc tags -release = "4.0.0rc5" +release = importlib.metadata.version(project) # -- General configuration --------------------------------------------------- @@ -61,7 +63,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] -version = "4.0.0rc5" +version = importlib.metadata.version(project) master_doc = "index" diff --git a/poetry.lock b/poetry.lock index b55b7f71..e3ba78de 100644 --- a/poetry.lock +++ b/poetry.lock @@ -107,17 +107,6 @@ d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"] jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] uvloop = ["uvloop (>=0.15.2)"] -[[package]] -name = "bump2version" -version = "1.0.1" -description = "Version-bump your software with a single command!" -optional = false -python-versions = ">=3.5" -files = [ - {file = "bump2version-1.0.1-py2.py3-none-any.whl", hash = "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410"}, - {file = "bump2version-1.0.1.tar.gz", hash = "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6"}, -] - [[package]] name = "certifi" version = "2024.8.30" @@ -1306,4 +1295,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "1456137fd052b24d9ac84c77a53badb958520d0d8c43d53d7f944c21cc78c59e" +content-hash = "14811600079df628f5832424bb1fb0ee359b1e67108f881ffcb661c698ee1e00" diff --git a/pyproject.toml b/pyproject.toml index febfee1b..f860d358 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ black = "^24.0.0" mypy = "^1.10.0" coveralls = "^3.3.1" responses = ">=0.23.2,<0.26.0" -bump2version = "^1.0.1" sphinx-rtd-theme = ">=1.2.2,<3.0.0" sphinx = ">=6,<8" diff --git a/pyzeebe/__init__.py b/pyzeebe/__init__.py index 2624bdbf..48368309 100644 --- a/pyzeebe/__init__.py +++ b/pyzeebe/__init__.py @@ -1,5 +1,3 @@ -__version__ = "4.0.0rc5" - from pyzeebe import errors from pyzeebe.channel import * from pyzeebe.client.client import ZeebeClient