forked from anoopkunchukuttan/indic_nlp_library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (39 loc) · 1.52 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
import os
import pathlib
import setuptools
from sys import version_info, exit
from pkg_resources import parse_requirements
def write_version_py():
with open(os.path.join("indicnlp", "version.txt"), "r") as f:
version = f.read().strip()
with open(os.path.join("indicnlp", "version.py"), "w") as f:
f.write(f'__version__ = "{version}"')
return version
if version_info < (3, 8):
exit("Sorry, Python >= 3.8 is required for IndicNLP Library for IT2")
with open("README.md", "r", errors="ignore", encoding="utf-8") as fh:
long_description = fh.read()
version = write_version_py()
setuptools.setup(
name="indic_nlp_library_IT2", # Replace with your own username
version=version,
author="Varun Gumma",
author_email="varun230999@gmail.com",
description="The goal of the Indic NLP Library is to build Python based libraries for common"
" text processing and Natural Language Processing in Indian languages. This fork is specialized for IndicTrans2.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/VarunGumma/indic_nlp_library",
packages=setuptools.find_packages(),
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=[
str(requirement)
for requirement in parse_requirements(pathlib.Path("requirements.txt").open())
],
)