setup.py: use ocrd-tool.json for version

pull/9/head
Konstantin Baierer 3 years ago
parent aabcc4866d
commit fe4a1eabb1

@ -1,12 +1,15 @@
from io import open from io import open
from json import load
from setuptools import find_packages, setup from setuptools import find_packages, setup
with open('requirements.txt') as fp: with open('requirements.txt') as fp:
install_requires = fp.read() install_requires = fp.read()
with open('ocrd-tool.json') as fj:
version = load(fj)['version']
setup( setup(
name="tsvtools", name="tsvtools",
version="0.0.1", version=version,
author="", author="",
author_email="qurator@sbb.spk-berlin.de", author_email="qurator@sbb.spk-berlin.de",
description="neath", description="neath",

Loading…
Cancel
Save