-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
58 lines (53 loc) · 1.77 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
from setuptools import setup
import os
from odinson.ruleutils.info import info
# 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 = required + ["green>=2.5.0", "coverage", "mypy"]
# NOTE: <packagename> @ allows installation of git-based URLs
dev_deps = test_deps + [
"black",
"mkdocs==1.2.1",
"jinja2==3.0.3",
# "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.10.0",
"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="odinson-ruleutils",
python_requires=">=3.8",
packages=["odinson.ruleutils"],
version=info.version,
keywords=["nlp"],
description=info.description,
long_description=readme,
long_description_content_type="text/markdown",
url=info.repo,
download_url=info.download_url,
author=" and ".join(info.authors),
author_email=info.contact,
license=info.license,
# see https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html
scripts=[os.path.join("bin", "example-script")],
install_requires=required,
classifiers=[
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
],
tests_require=test_deps,
extras_require={"test": test_deps, "all": dev_deps},
include_package_data=True,
zip_safe=False,
)