diff --git a/.gitignore b/.gitignore index adb8c8a..f29fee0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ TAGS env/ env3/ test/assets +/build +/dist diff --git a/CHANGELOG.md b/CHANGELOG.md index f3fefdc..0590fbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,13 @@ Versioned according to [Semantic Versioning](http://semver.org/). ## Unreleased +## [0.4.0] - 2020-08-21 + Changed: * adapt to 1-output-file-group convention, use `make_file_id` and `assert_file_grp_cardinality`, #17 * set pcGtsId to file ID, #17 +[0.4.0]: ../../compare/v0.4.0...v0.3.1 [0.3.1]: ../../compare/HEAD...v0.3.1 diff --git a/ocrd_keraslm/wrapper/ocrd-tool.json b/ocrd_keraslm/wrapper/ocrd-tool.json index b06cc2d..db9d381 100644 --- a/ocrd_keraslm/wrapper/ocrd-tool.json +++ b/ocrd_keraslm/wrapper/ocrd-tool.json @@ -1,6 +1,6 @@ { "git_url": "https://github.com/OCR-D/ocrd_keraslm", - "version": "0.3.1", + "version": "0.4.0", "tools": { "ocrd-keraslm-rate": { "executable": "ocrd-keraslm-rate", diff --git a/setup.py b/setup.py index b39fe19..a8ceb31 100644 --- a/setup.py +++ b/setup.py @@ -5,15 +5,18 @@ - ocrd-keraslm-rate """ import codecs +import json from setuptools import setup, find_packages with codecs.open('README.md', encoding='utf-8') as f: README = f.read() +with open('ocrd-tool.json', 'r') as f: + version = json.load(f)['version'] setup( name='ocrd_keraslm', - version='0.3.2', + version=version, description='character-level language modelling in Keras', long_description=README, long_description_content_type='text/markdown',