mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 03:39:55 +02:00
setup.py: read version from ocrd-tool.json
This commit is contained in:
parent
1bb72cbaf1
commit
a98e178deb
2 changed files with 6 additions and 3 deletions
|
@ -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`
|
||||
|
|
6
setup.py
6
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue