-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
80 lines (71 loc) · 2.69 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
76
77
78
79
80
"""The setup script."""
from setuptools import find_packages, setup
import anaconda_linter
def main() -> None:
with open("CHANGELOG.md", encoding="utf-8") as changelog_file:
changelog: str = changelog_file.read()
with open("README.md", encoding="utf-8") as readme_file:
readme: str = readme_file.read()
requirements = [
"conda-build",
"jinja2",
"jsonschema",
"license-expression",
"networkx",
"requests",
"ruamel.yaml",
]
test_requirements = ["pytest", "pytest-cov", "pytest-html"]
run_lint = dict(
author_email=anaconda_linter.__email__,
author=anaconda_linter.__author__,
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
],
description=anaconda_linter.__summary__,
entry_points={
"console_scripts": [
"conda-lint=anaconda_linter.run:main",
"anaconda-lint=anaconda_linter.run:main",
]
},
extras_require={
"docs": ["sphinx", "myst-parser"],
},
install_requires=requirements,
keywords="anaconda_linter",
license=anaconda_linter.__license__,
long_description_content_type="text/markdown",
long_description=readme + "\n\n" + changelog,
name=anaconda_linter.__name__,
package_data={
"anaconda_linter": ["data/*.txt", "data/*.yaml", "config*.yaml", "build-fail-blocklist"]
},
package_dir={"anaconda_linter": "anaconda_linter"},
packages=find_packages(include=["anaconda_linter", "anaconda_linter.*"]),
python_requires=">=3.8",
test_suite="tests",
tests_require=test_requirements,
url=anaconda_linter.__url__,
version=anaconda_linter.__version__,
zip_safe=False,
)
setup(**run_lint)
if __name__ == "__main__":
main()