diff --git a/README-DEV.md b/README-DEV.md index 40a237a..e490f49 100644 --- a/README-DEV.md +++ b/README-DEV.md @@ -10,8 +10,7 @@ make test Releasing --------- -* Update `ocrd-tool.json` version -* Update `setup.py` version +* Update `ocrd-tool.json` version (the `setup.py` version is read from this) * `git commit -m 'v'` * `git tag -m 'v' 'v'` * `git push --tags` diff --git a/setup.py b/setup.py index 2a98d62..db1926d 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,15 @@ # -*- coding: utf-8 -*- from pathlib import Path +import json from setuptools import setup, find_packages +with open('./ocrd-tool.json', 'r') as f: + version = json.load(f)['version'] + setup( name='ocrd_calamari', - version='1.0.1', + version=version, description='Calamari bindings', long_description=Path('README.md').read_text(), long_description_content_type='text/markdown',