-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
75 lines (65 loc) · 1.98 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
72
73
74
75
import codecs
import os.path
from setuptools import find_packages, setup
def read(rel_path: str) -> str:
"""Read a file."""
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path: str) -> str:
"""Read version from a file."""
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
file = open("README.md", "r")
LONG_DESCRIPTION = file.read()
file.close()
base_packages = [
"Click>=8.0.1",
"rich>=10.3.0",
"pyyaml>=5.4.1",
"timeago>=1.0.15",
"psutil>=5.8.0",
]
dev = [
"mkdocs-material>=7.1",
"mkdocs-macros-plugin",
"pytest",
"pytest-cov",
"pytest-mock",
"pre-commit",
"black",
"flake8",
"mypy",
"isort",
]
setup(
name="doing-cli",
version=get_version("src/doing/__init__.py"),
packages=find_packages("src"),
package_dir={"": "src"},
description="CLI tool to simplify the development workflow on azure devops",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="ING Bank N.V.",
author_email="[email protected]",
url="https://github.com/ing-bank/doing-cli",
install_requires=base_packages,
extras_require={"all": base_packages + dev},
entry_points={"console_scripts": ["doing = doing.cli:cli"]},
python_requires=">=3.7",
license="MIT",
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)