Skip to content

Commit ecc0a13

Browse files
committed
Use bumpversion
1 parent 8b7f8bc commit ecc0a13

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

mc2skos/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.7.2'
1+
__version__ = '0.7.2' # Use bumpversion to update

setup.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
[aliases]
22
test = pytest
3+
4+
[bumpversion]
5+
current_version = 0.7.2
6+
commit = True
7+
tag = True
8+
9+
[bumpversion:file:setup.py]
10+
11+
[bumpversion:file:mc2skos/__init__.py]
12+
13+
[bdist_wheel]
14+
universal = 1
15+

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@
1414
here = os.path.abspath(os.path.dirname(__file__))
1515
README = open(os.path.join(here, 'README.rst')).read()
1616

17-
with open('mc2skos/__init__.py', 'r') as fd:
18-
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
19-
fd.read(), re.MULTILINE).group(1)
20-
21-
if not version:
22-
raise RuntimeError('Cannot find version information')
23-
2417
setup(name='mc2skos',
25-
version=version,
18+
version='0.7.2', # Use bumpversion to update
2619
description='Convert Marc21 Classification records in MARC/XML to SKOS/RDF ',
2720
long_description=README,
2821
classifiers=[

0 commit comments

Comments
 (0)