-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (52 loc) · 1.62 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
from pathlib import Path
from setuptools import setup # pyright: reportMissingTypeStubs=false
from naughtty.version import get_version
readme_path = Path(__file__).parent / "README.md"
with open(readme_path, encoding="utf-8") as f:
long_description = f.read()
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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="[email protected]",
classifiers=classifiers,
description="Python package and CLI tool for executing shell commands in a pseudo-terminal",
entry_points={
"console_scripts": [
"naughtty=naughtty.__main__:cli_entry",
],
},
include_package_data=True,
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
name="naughtty",
packages=[
"naughtty",
"naughtty.version",
],
package_data={
"naughtty": ["py.typed"],
"naughtty.version": ["py.typed"],
},
python_requires=">=3.8",
url="https://github.com/cariad/naughtty",
version=version,
)