From 5019836366c119e06dc8a21f36e7751919dcd7a2 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Thu, 16 Mar 2023 16:03:51 -0400 Subject: [PATCH] Use setuptools' SCM support to determine version from Git tag This of course predictates on a git tag release system but this repo seems to already be doing that. --- .gitignore | 3 ++- setup.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 32fc916..a3fcad2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ venv/ dist/ build/ adr_viewer.egg-info/ -.pytest_cache/ \ No newline at end of file +.pytest_cache/ +.eggs/ diff --git a/setup.py b/setup.py index 7729fba..f0f3a4d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ setup( name='adr-viewer', url='https://github.com/mrwilson/adr-viewer', - version='1.3.0', description='A visualisation tool for Architecture Decision Records', long_description=long_description, long_description_content_type="text/markdown", @@ -34,5 +33,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", - ] + ], + use_scm_version=True, + setup_requires=["setuptools_scm"], )