testing pyproject.toml
parent
00bf2b64d0
commit
e976778796
@ -0,0 +1,30 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "eynollah"
|
||||||
|
version = "1.2.3"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
"ocrd >= 2.23.3",
|
||||||
|
"tensorflow >= 2.12.0",
|
||||||
|
"scikit-learn >= 0.23.2",
|
||||||
|
"imutils >= 0.5.3",
|
||||||
|
"numpy < 1.24.0",
|
||||||
|
"matplotlib",
|
||||||
|
"torch == 2.0.1",
|
||||||
|
"transformers == 4.30.2",
|
||||||
|
"numba == 0.58.1",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
eynollah = "qurator.eynollah.cli:main"
|
||||||
|
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["."]
|
||||||
|
include = ["qurator"]
|
@ -1,8 +0,0 @@
|
|||||||
# ocrd includes opencv, numpy, shapely, click
|
|
||||||
ocrd >= 2.23.3
|
|
||||||
numpy <1.24.0
|
|
||||||
scikit-learn >= 0.23.2
|
|
||||||
tensorflow >=2.12.0
|
|
||||||
imutils >= 0.5.3
|
|
||||||
matplotlib
|
|
||||||
setuptools >= 50
|
|
@ -1,28 +0,0 @@
|
|||||||
from setuptools import setup, find_packages
|
|
||||||
from json import load
|
|
||||||
|
|
||||||
install_requires = open('requirements.txt').read().split('\n')
|
|
||||||
with open('ocrd-tool.json', 'r', encoding='utf-8') as f:
|
|
||||||
version = load(f)['version']
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name='eynollah',
|
|
||||||
version=version,
|
|
||||||
long_description=open('README.md').read(),
|
|
||||||
long_description_content_type='text/markdown',
|
|
||||||
author='Vahid Rezanezhad',
|
|
||||||
url='https://github.com/qurator-spk/eynollah',
|
|
||||||
license='Apache License 2.0',
|
|
||||||
namespace_packages=['qurator'],
|
|
||||||
packages=find_packages(exclude=['tests']),
|
|
||||||
install_requires=install_requires,
|
|
||||||
package_data={
|
|
||||||
'': ['*.json']
|
|
||||||
},
|
|
||||||
entry_points={
|
|
||||||
'console_scripts': [
|
|
||||||
'eynollah=qurator.eynollah.cli:main',
|
|
||||||
'ocrd-eynollah-segment=qurator.eynollah.ocrd_cli:main',
|
|
||||||
]
|
|
||||||
},
|
|
||||||
)
|
|
Loading…
Reference in New Issue