-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·68 lines (61 loc) · 2.54 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
#!/usr/bin/env python3
"""
Host the setup function.
"""
import pathlib
import setuptools
from cushead import info
def setup() -> None:
"""
Execute the setup.
"""
assets_path = pathlib.Path(info.PACKAGE_NAME) / "console" / "assets" / "images"
templates_path = pathlib.Path(info.PACKAGE_NAME) / "generator" / "templates" / "jinja" / "templates"
setuptools.setup(
name=info.PACKAGE_NAME,
version=info.PACKAGE_VERSION,
entry_points={"console_scripts": [f"{info.PACKAGE_NAME}={info.PACKAGE_NAME}.console.console:main"]},
url=info.SOURCE,
project_urls={
"Documentation": info.DOCUMENTATION,
"Source": info.SOURCE,
},
python_requires=f">={info.PYTHON_MIN_VERSION[0]}.{info.PYTHON_MIN_VERSION[1]}",
packages=setuptools.find_packages(exclude=(str(file) for file in pathlib.Path("").iterdir() if str(file) != info.PACKAGE_NAME)),
include_package_data=True,
data_files=[
("", ["requirements.txt", "LICENSE.md", "README.md"]),
(assets_path, [str(file) for file in pathlib.Path(assets_path).iterdir()]),
(templates_path, [str(file) for file in pathlib.Path(templates_path).iterdir()]),
],
zip_safe=False,
install_requires=pathlib.Path("requirements.txt").read_text().split(),
author=info.AUTHOR,
author_email=info.EMAIL,
description=info.DESCRIPTION,
long_description=pathlib.Path("README.md").read_text(),
long_description_content_type="text/markdown",
license=info.PACKAGE_LICENSE,
keywords=info.KEYWORDS,
platforms="any",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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 :: Only",
"Topic :: Utilities",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
],
)
if __name__ == "__main__":
setup()