From 5e713a37d8744c2af83adba1f5878ef1befcbee7 Mon Sep 17 00:00:00 2001 From: Erik Groeneveld Date: Wed, 16 Oct 2024 13:58:03 +0200 Subject: [PATCH] version number for package from git tag --- .gitignore | 2 ++ setup.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e23a632..b48ce30 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ venv/ *.egg-info/ +.eggs +__pycache__ diff --git a/setup.py b/setup.py index 28d5173..d66177d 100644 --- a/setup.py +++ b/setup.py @@ -29,11 +29,8 @@ long_description = (here / "README.rst").read_text(encoding="utf-8") -version = "0.4.2" - setup( name="selftest", - version=version, description="Python In-Source Testing Library", long_description=long_description, long_description_content_type="text/x-rst", @@ -52,4 +49,6 @@ "Programming Language :: Python :: 3", ], python_requires=">=3.9", + setuptools_git_versioning={ "enabled": True }, + setup_requires=["setuptools-git-versioning>=2.0,<3"] )