Skip to content

Commit

Permalink
Use bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Oct 29, 2017
1 parent 8b7f8bc commit ecc0a13
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mc2skos/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.7.2'
__version__ = '0.7.2' # Use bumpversion to update
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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

9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit ecc0a13

Please sign in to comment.