|
1 | | -from pathlib import Path |
2 | | - |
3 | | -from setuptools import find_packages |
4 | 1 | from setuptools import setup |
5 | 2 |
|
6 | | -import versioneer |
7 | | - |
8 | | - |
9 | | -README = Path("README.rst").read_text() |
10 | | - |
11 | | -PROJECT_URLS = { |
12 | | - "Documentation": "https://github.com/pytask-dev/pytask-stata", |
13 | | - "Github": "https://github.com/pytask-dev/pytask-stata", |
14 | | - "Tracker": "https://github.com/pytask-dev/pytask-stata/issues", |
15 | | - "Changelog": "https://github.com/pytask-dev/pytask-stata/blob/main/CHANGES.rst", |
16 | | -} |
17 | | - |
18 | 3 |
|
19 | | -setup( |
20 | | - name="pytask-stata", |
21 | | - version=versioneer.get_version(), |
22 | | - cmdclass=versioneer.get_cmdclass(), |
23 | | - description="Execute do-files with Stata and pytask.", |
24 | | - long_description=README, |
25 | | - long_description_content_type="text/x-rst", |
26 | | - author="Tobias Raabe", |
27 | | - author_email="raabe@posteo.de", |
28 | | - url=PROJECT_URLS["Github"], |
29 | | - project_urls=PROJECT_URLS, |
30 | | - python_requires=">=3.6", |
31 | | - license="MIT", |
32 | | - classifiers=[ |
33 | | - "Development Status :: 3 - Alpha", |
34 | | - "Operating System :: OS Independent", |
35 | | - "Programming Language :: Python :: 3", |
36 | | - "Programming Language :: Python :: 3 :: Only", |
37 | | - "Programming Language :: Python :: 3.6", |
38 | | - "Programming Language :: Python :: 3.7", |
39 | | - "Programming Language :: Python :: 3.8", |
40 | | - "Programming Language :: Python :: 3.9", |
41 | | - ], |
42 | | - install_requires=["click", "pytask >= 0.0.9"], |
43 | | - platforms="any", |
44 | | - packages=find_packages(where="src"), |
45 | | - package_dir={"": "src"}, |
46 | | - entry_points={"pytask": ["pytask_stata = pytask_stata.plugin"]}, |
47 | | - include_package_data=True, |
48 | | - zip_safe=False, |
49 | | -) |
| 4 | +if __name__ == "__main__": |
| 5 | + setup() |
0 commit comments