-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (65 loc) · 2.04 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
import re
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools import setup
from clu.spacy.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 = [dep.strip() for dep in f.read().splitlines() if dep.strip() is not None]
# get readme
with open('README.md', 'r') as f:
readme = f.read()
test_deps = ["green>=2.5.0", "coverage", "mypy"]
dev_deps = test_deps + [
"black @ git+git://github.com/psf/black.git",
"mkdocs==1.2.1",
# "portray @ git+git://github.com/myedibleenso/portray.git@issue/83",
# "portray @ git+git://github.com/myedibleenso/portray.git@avoid-regressions",
# "mkapi==1.0.14",
"pdoc3==0.9.2",
"mkdocs-git-snippet==0.1.1",
"mkdocs-git-revision-date-localized-plugin==0.9.2",
"mkdocs-git-authors-plugin==0.3.3",
"mkdocs-rtd-dropdown==1.0.2",
"pre-commit==2.13.0",
]
setup(name='clu-spacy',
packages=["clu.spacy"],
scripts=[
'bin/api'
],
version=info.version,
keywords=['nlp', 'converter'],
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': dev_deps + required
},
include_package_data=True,
zip_safe=False)