-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
65 lines (59 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
from setuptools import find_packages, setup
VERSION = {} # type: ignore
with open("trapper/version.py", "r") as version_file:
exec(version_file.read(), VERSION)
def get_requirements():
with open("requirements.txt") as f:
return f.read().splitlines()
extras_require = {
"dev": [
"black==22.3.0",
"flake8==3.9.2",
"isort==5.9.2",
"pytest>=6.2.4",
"importlib-metadata>=1.1.0,<4.3;python_version<'3.8'",
"pytest-cov>=2.12.1",
"pylint>=2.11",
"mypy>=0.9",
],
}
setup(
name="trapper",
version=VERSION["VERSION"],
author="OBSS",
url="https://github.com/obss/trapper",
description="State-of-the-art NLP through transformer models in a modular design and consistent APIs.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
packages=find_packages(
exclude=[
"*.tests",
"*.tests.*",
"tests.*",
"tests",
"test_fixtures",
"test_fixtures.*",
"scripts",
"scripts.*",
]
),
entry_points={"console_scripts": ["trapper=trapper.__main__:run"]},
python_requires=">=3.7.1",
install_requires=get_requirements(),
extras_require=extras_require,
include_package_data=True,
classifiers=[
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="python, nlp, natural-language-processing, deep-learning, transformer, pytorch, transformers, allennlp, pytorch-transformers",
)