-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (38 loc) · 1.41 KB
/
setup.py
File metadata and controls
48 lines (38 loc) · 1.41 KB
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
import re
from setuptools import setup
with open("cli/__init__.py", "r", encoding="utf-8") as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
with open("README.rst", "r", encoding="utf-8") as f:
long_description = f.read()
if not version:
raise RuntimeError("version not set...")
extras_requires = {"docs": ["sphinx>=4.2.0", "furo"]}
packages = ["cli", "cli.ext"]
args = dict(
name="create-a-cli-tool",
version=str(version),
description="A way to make simple python CLIs.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/Sengolda/create-a-cli-tool",
author="Sengolda",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Typing :: Typed",
],
packages=packages,
include_package_data=True,
python_requires=">=3.6", # Cause of f-strings.
license="MIT",
extras_requires=extras_requires,
)
setup(**args)