Commit dbe61c1e authored by Alexander Gehrke's avatar Alexander Gehrke

Switch requirements to pip-compile

parent d44049cf
......@@ -108,3 +108,6 @@ venv.bak/
# PyCharm
.idea
# requirements.txt (generated by pip-compile)
requirements.txt
.PHONY: release
release: requirements.txt
pypi-release
requirements.txt: requirements.in requirements-devel
pip-compile
.PHONY: requirements-devel
requirements-devel:
pip install -r requirements-devel.txt
pip-tools
twine
bump2version
setuptools
wheel
ocr4all-pixel-classifier~=0.5
ocr4all-pylib~=0.1
tqdm
pypagexml
numpy
tensorflow
......@@ -20,11 +20,7 @@ setup(
'page-segmentation=ocr4all_pixel_classifier_frontend.main:main', # legacy
],
},
install_requires=open("requirements.txt").read().split(),
extras_require={
'tf_cpu': ['tensorflow>=2.0.0,<2.1.0'],
'tf_gpu': ['tensorflow-gpu>=2.0.0,<2.1.0'],
},
install_requires=open("requirements.in").read().split(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment