-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (52 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
54
55
56
57
58
59
60
61
import re
from setuptools import find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools import setup
from cluling.info import info
class PackageDevelop(develop):
def run(self):
develop.run(self)
class PackageInstall(install):
def run(self):
# install everything else
install.run(self)
# use requirements.txt as deps list
with open('requirements.txt', 'r') as f:
required = f.read().splitlines()
# get readme
with open('README.md', 'r') as f:
readme = f.read()
test_deps = ["green>=2.5.0,<3", "coverage", "mypy"]
setup(name='cluling-arabic-nlp',
packages=find_packages(),
#packages=["cdd"],
scripts=['bin/train-arabert'],
version=info.version,
keywords=['nlp', 'cluling', 'arabic'],
description=info.description,
long_description=readme,
url=info.repo,
download_url=info.download_url,
author=info.author,
author_email=info.contact,
license=info.license,
install_requires=required,
cmdclass={
'install': PackageInstall,
'develop': PackageDevelop,
},
classifiers=[
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3"
],
python_requires=">=3.8",
tests_require=test_deps,
extras_require={
'test': test_deps,
'all': test_deps + required
},
include_package_data=True,
zip_safe=False)