-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (49 loc) · 1.4 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
"""Installer."""
import os.path
# To use a consistent encoding
from codecs import open
from setuptools import setup
modulename = "docargs"
here = os.path.dirname(os.path.abspath(__file__))
version_ns = {}
with open(os.path.join(here, modulename, "version.py")) as f:
exec(f.read(), {}, version_ns)
version = version_ns["version"]
blurb = "Check that all arguments are documented."
if os.path.isfile("README.md"):
readme = open("README.md", "r").read()
else:
readme = blurb
requirements = [
"numpydoc",
"click",
"colorama",
"pyyaml",
"flake8",
"docstring-parser",
]
test_requirements = ["mypy", "black", "pytest", "flake8"]
setup(
name=modulename,
version=version,
description=blurb,
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/janfreyberg/{}".format(modulename),
download_url=(
"https://github.com/janfreyberg/{0}/{1}.tar.gz".format(
modulename, version_ns["version"]
)
),
# Author details
author="Jan Freyberg",
author_email="[email protected]",
packages=["docargs"],
keywords=["linting"],
install_requires=requirements,
extras_require={"tests": test_requirements, "test": test_requirements},
entry_points={
"console_scripts": ["docargs = docargs.cli:cli"],
"flake8.extension": ["D00 = docargs.flake8:DocargsChecker"],
},
)