Merge pull request #55 from OCR-D/ocrd-tool-version

setup.py: read version from ocrd-tool.json
fix/readme-no-checkpoint
Mike Gerber 4 years ago committed by GitHub
commit f00df756dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<version>'`
* `git tag -m 'v<version>' 'v<version>'`
* `git push --tags`

@ -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',

Loading…
Cancel
Save