From ecc0a13566b489fe1393338d65e4ab108a1aa866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= Date: Sun, 29 Oct 2017 20:07:45 +0100 Subject: [PATCH] Use bumpversion --- mc2skos/__init__.py | 2 +- setup.cfg | 13 +++++++++++++ setup.py | 9 +-------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/mc2skos/__init__.py b/mc2skos/__init__.py index fb9b668..9fbf84c 100644 --- a/mc2skos/__init__.py +++ b/mc2skos/__init__.py @@ -1 +1 @@ -__version__ = '0.7.2' +__version__ = '0.7.2' # Use bumpversion to update diff --git a/setup.cfg b/setup.cfg index 31ad82b..985bfe4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,15 @@ [aliases] test = pytest + +[bumpversion] +current_version = 0.7.2 +commit = True +tag = True + +[bumpversion:file:setup.py] + +[bumpversion:file:mc2skos/__init__.py] + +[bdist_wheel] +universal = 1 + diff --git a/setup.py b/setup.py index 3a5a0da..8479eff 100644 --- a/setup.py +++ b/setup.py @@ -14,15 +14,8 @@ here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() -with open('mc2skos/__init__.py', 'r') as fd: - version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError('Cannot find version information') - setup(name='mc2skos', - version=version, + version='0.7.2', # Use bumpversion to update description='Convert Marc21 Classification records in MARC/XML to SKOS/RDF ', long_description=README, classifiers=[