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=[