-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (62 loc) · 1.96 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
from pathlib import Path
from setuptools import setup # pyright: reportMissingTypeStubs=false
from ansiscape import get_version
readme_path = Path(__file__).parent / "README.md"
with open(readme_path, encoding="utf-8") as f:
long_description = f.read()
classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
"Typing :: Typed",
]
version = get_version()
if "a" in version:
classifiers.append("Development Status :: 3 - Alpha")
elif "b" in version:
classifiers.append("Development Status :: 4 - Beta")
else:
classifiers.append("Development Status :: 5 - Production/Stable")
classifiers.sort()
setup(
author="Cariad Eccleston",
author_email="cariad@cariad.earth",
classifiers=classifiers,
description="Create and interpret ANSI escape codes",
entry_points={
"console_scripts": [
"ansiscape=ansiscape.__main__:cli_entry",
],
},
include_package_data=True,
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
name="ansiscape",
packages=[
"ansiscape",
"ansiscape.checks",
"ansiscape.enums",
"ansiscape.exceptions",
"ansiscape.interpreters",
"ansiscape.types",
"ansiscape.version",
],
package_data={
"ansiscape": ["py.typed"],
"ansiscape.checks": ["py.typed"],
"ansiscape.enums": ["py.typed"],
"ansiscape.exceptions": ["py.typed"],
"ansiscape.interpreters": ["py.typed"],
"ansiscape.types": ["py.typed"],
"ansiscape.version": ["py.typed"],
},
python_requires=">=3.8",
url="https://github.com/cariad/ansiscape",
version=version,
)