/
setup.py
99 lines (69 loc) · 2.91 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# coding: utf8
"""Urduhack setup file"""
from pathlib import Path
from setuptools import setup, find_packages
def setup_package():
"""Packages setup functions with all required parameters"""
package_name = 'urduhack'
root = Path(__file__).parent.resolve()
# Read in package meta from about.py
about_path = root / package_name / 'about.py'
with about_path.open('r', encoding='utf8') as file_content:
about = {}
exec(file_content.read(), about)
# Get readme
readme_path = root / 'README.md'
with readme_path.open('r', encoding='utf8') as file_content:
readme = file_content.read()
# Required packages
requirements_path = root / 'requirements.txt'
with requirements_path.open('r', encoding='utf8') as file_content:
requires = [line.strip('\n') for line in file_content if line.strip('\n') and not line.startswith('#')]
setup(name=package_name,
version=about['__version__'],
description=about['__description__'],
long_description=readme,
long_description_content_type="text/markdown",
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
license=about['__license__'],
packages=find_packages(),
install_requires=requires,
extras_require={
"tf": ["tensorflow~=2.3"],
"tf-gpu": ["tensorflow-gpu~=2.3"]
},
setup_requires=[],
tests_require=[],
zip_safe=False,
keywords="urdu machine learning text pre-processing tensorflow nlp",
python_requires='>= 3.8',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
"Natural Language :: Urdu",
"Topic :: Text Processing :: Linguistic",
],
project_urls={
"Documentation": "https://urduhack.readthedocs.io/en/stable/",
"Source": "https://github.com/urduhack/urduhack",
"Bug Tracker": "https://github.com/urduhack/urduhack/issues"},
entry_points="""
[console_scripts]
urduhack=urduhack.command.cli:cli
"""
)
if __name__ == '__main__':
setup_package()