|
1 | | -"""The setup.py for pytask.""" |
2 | | -from pathlib import Path |
3 | | - |
4 | | -from setuptools import find_packages |
5 | 1 | from setuptools import setup |
6 | 2 |
|
7 | | -import versioneer |
8 | | - |
9 | | - |
10 | | -DESCRIPTION = "In its highest aspirations, pytask tries to be pytest as a build system." |
11 | | - |
12 | | -# Remove the image from the README.rst since the raw directive is not allowed. |
13 | | -README = "\n".join(Path("README.rst").read_text().split("\n")[5:]) |
14 | | - |
15 | | -PROJECT_URLS = { |
16 | | - "Documentation": "https://pytask-dev.readthedocs.io/en/latest", |
17 | | - "Github": "https://github.com/pytask-dev/pytask", |
18 | | - "Tracker": "https://github.com/pytask-dev/pytask/issues", |
19 | | - "Changelog": "https://pytask-dev.readthedocs.io/en/latest/changes.html", |
20 | | -} |
21 | | - |
22 | | - |
23 | | -setup( |
24 | | - name="pytask", |
25 | | - version=versioneer.get_version(), |
26 | | - cmdclass=versioneer.get_cmdclass(), |
27 | | - description=DESCRIPTION, |
28 | | - long_description=README, |
29 | | - long_description_content_type="text/x-rst", |
30 | | - author="Tobias Raabe", |
31 | | - author_email="raabe@posteo.de", |
32 | | - url=PROJECT_URLS["Github"], |
33 | | - project_urls=PROJECT_URLS, |
34 | | - license="MIT", |
35 | | - classifiers=[ |
36 | | - "Development Status :: 3 - Alpha", |
37 | | - "Environment :: Console", |
38 | | - "Intended Audience :: Science/Research", |
39 | | - "License :: OSI Approved :: MIT License", |
40 | | - "Operating System :: MacOS :: MacOS X", |
41 | | - "Operating System :: Microsoft :: Windows", |
42 | | - "Operating System :: POSIX", |
43 | | - "Programming Language :: Python :: 3.6", |
44 | | - "Programming Language :: Python :: 3.7", |
45 | | - "Programming Language :: Python :: 3.8", |
46 | | - "Programming Language :: Python :: 3.9", |
47 | | - "Topic :: Scientific/Engineering", |
48 | | - "Topic :: Software Development :: Build Tools", |
49 | | - ], |
50 | | - install_requires=[ |
51 | | - "attrs >= 17.4.0", |
52 | | - "click", |
53 | | - "click-default-group", |
54 | | - "networkx", |
55 | | - "pluggy", |
56 | | - "pony >= 0.7.13", |
57 | | - "rich", |
58 | | - ], |
59 | | - python_requires=">=3.6.1", |
60 | | - entry_points={"console_scripts": ["pytask=_pytask.cli:cli"]}, |
61 | | - packages=find_packages(where="src"), |
62 | | - package_dir={"": "src"}, |
63 | | - platforms="any", |
64 | | - include_package_data=True, |
65 | | - zip_safe=False, |
66 | | -) |
| 3 | +if __name__ == "__main__": |
| 4 | + setup() |
0 commit comments