From 9733ad884310149d9dcc49d3c2bbfe0febb8833f Mon Sep 17 00:00:00 2001 From: Shane Snyder Date: Tue, 19 Dec 2023 21:22:41 -0600 Subject: [PATCH] extract package version in pyproject.toml --- .../pydarshan/RELEASE-CHECKLIST-PyDarshan.txt | 1 - darshan-util/pydarshan/pyproject.toml | 5 ++++- darshan-util/pydarshan/setup.cfg | 12 ------------ 3 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 darshan-util/pydarshan/setup.cfg diff --git a/darshan-util/pydarshan/RELEASE-CHECKLIST-PyDarshan.txt b/darshan-util/pydarshan/RELEASE-CHECKLIST-PyDarshan.txt index 708a28b79..665c6f845 100644 --- a/darshan-util/pydarshan/RELEASE-CHECKLIST-PyDarshan.txt +++ b/darshan-util/pydarshan/RELEASE-CHECKLIST-PyDarshan.txt @@ -10,7 +10,6 @@ Notes on how to release a new version of PyDarshan - Update CHANGELOG.rst - commit - Update version numbers in: - pyproject.toml darshan/__init__.py - Make sure documentation in docs/ is up to date - commit diff --git a/darshan-util/pydarshan/pyproject.toml b/darshan-util/pydarshan/pyproject.toml index b18badc86..9d6abc187 100644 --- a/darshan-util/pydarshan/pyproject.toml +++ b/darshan-util/pydarshan/pyproject.toml @@ -7,8 +7,8 @@ build-backend = "setuptools.build_meta" [project] name = "darshan" +dynamic = ["version"] requires-python = ">=3.7" -version = "3.4.4.0" description = "Python tools to interact with Darshan log records of HPC applications." readme = 'README.rst' dependencies = [ @@ -59,6 +59,9 @@ include = ["darshan"] "examples/darshan-graph/*", "tests/input/*"] +[tool.setuptools.dynamic] +version = {attr = "darshan.__version__"} + [tool.cibuildwheel] environment = "PYDARSHAN_BUILD_EXT=1" skip = [ diff --git a/darshan-util/pydarshan/setup.cfg b/darshan-util/pydarshan/setup.cfg deleted file mode 100644 index 6fbbb57b6..000000000 --- a/darshan-util/pydarshan/setup.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[bumpversion] -current_version = 3.4.4.0 -commit = False -tag = False - -[bumpversion:file:setup.py] -search = version='{current_version}' -replace = version='{new_version}' - -[bumpversion:file:darshan/__init__.py] -search = __version__ = '{current_version}' -replace = __version__ = '{new_version}'