-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
53 lines (44 loc) · 1.58 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
import setuptools
DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(DIR, "laia/VERSION")) as f:
VERSION = f.read()
def get_requirements():
requirements_path = os.path.join(DIR, "requirements.txt")
with open(requirements_path, encoding="utf-8") as f:
return [line.strip() for line in f]
def get_long_description():
readme_path = os.path.join(DIR, "README.md")
return open(readme_path, encoding="utf-8").read()
setuptools.setup(
name="pylaia",
version=VERSION,
author="Joan Puigcerver",
author_email="joapuipe@gmail.com",
maintainer="Teklia",
maintainer_email="contact@teklia.com",
license="MIT",
url="https://github.com/jpuigcerver/PyLaia",
download_url="https://github.com/jpuigcerver/PyLaia",
# Requirements
setup_requires=["setuptools_scm"],
install_requires=get_requirements(),
extras_require={
"dev": ["pre-commit", "isort", "black"],
"test": ["pytest", "pytest-cov", "pandas", "regex"],
},
python_requires=">=3.6",
# Package contents
packages=setuptools.find_packages(exclude=["tests"]),
include_package_data=True,
entry_points={
"console_scripts": [
"pylaia-htr-create-model=laia.scripts.htr.create_model:main",
"pylaia-htr-train-ctc=laia.scripts.htr.train_ctc:main",
"pylaia-htr-decode-ctc=laia.scripts.htr.decode_ctc:main",
"pylaia-htr-netout=laia.scripts.htr.netout:main",
],
},
long_description=get_long_description(),
long_description_content_type="text/markdown",
)