-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·66 lines (51 loc) · 2.07 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
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding : utf-8 -*-
from os import path
import io
import setuptools
import subprocess
here = path.abspath(path.dirname(__file__))
kamilib_version = subprocess.run(['git', 'describe', '--tags'], stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
try:
with io.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
except:
long_description = u"HTR / OCR models evaluation agnostic Python package, originally based on the Kraken transcription system."
#with open("README.md", "r") as fh:
# long_description = fh.read()
with open("requirements.txt", encoding="utf-8") as f:
install_requires = f.read().splitlines()
CLASSIFIERS = [
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
setuptools.setup(
name="kamilib",
version=kamilib_version,
author="Lucas Terriel, Alix Chagué",
author_email="lucas.terriel@chartes.psl.eu, alix.chague@inria.fr",
license="MIT",
description="HTR / OCR models evaluation agnostic Python package, originally based on the Kraken transcription system.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/KaMI-tools-project/KaMi-lib",
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
"termcolor==1.1.0",
"kraken==4.3.5",
"unidecode==1.3.4",
"levenshtein==0.20.9"
],
#package_data={
# "kami": ["metrics/*.so"]
#},
include_package_data=True,
python_requires='>=3.8',
classifiers=CLASSIFIERS,
keywords=["HTR", "OCR", "Evaluation framework", "metrics", "handwritten text recognition", "optical character recognition"]
)