mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-08 19:29:53 +02:00
Merge pull request #55 from OCR-D/ocrd-tool-version
setup.py: read version from ocrd-tool.json
This commit is contained in:
commit
f00df756dd
2 changed files with 6 additions and 3 deletions
|
@ -10,8 +10,7 @@ make test
|
||||||
|
|
||||||
Releasing
|
Releasing
|
||||||
---------
|
---------
|
||||||
* Update `ocrd-tool.json` version
|
* Update `ocrd-tool.json` version (the `setup.py` version is read from this)
|
||||||
* Update `setup.py` version
|
|
||||||
* `git commit -m 'v<version>'`
|
* `git commit -m 'v<version>'`
|
||||||
* `git tag -m 'v<version>' 'v<version>'`
|
* `git tag -m 'v<version>' 'v<version>'`
|
||||||
* `git push --tags`
|
* `git push --tags`
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -1,11 +1,15 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import json
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
with open('./ocrd-tool.json', 'r') as f:
|
||||||
|
version = json.load(f)['version']
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='ocrd_calamari',
|
name='ocrd_calamari',
|
||||||
version='1.0.1',
|
version=version,
|
||||||
description='Calamari bindings',
|
description='Calamari bindings',
|
||||||
long_description=Path('README.md').read_text(),
|
long_description=Path('README.md').read_text(),
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue