-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
58 lines (53 loc) · 1.64 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
import setuptools
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print("WARNING: sphinx not available")
with open("README.md", "r") as fh:
long_description = fh.read()
MAJOR = 0
MINOR = 18
PATCH = 1
name = "subete"
version = f"{MAJOR}.{MINOR}"
release = f"{MAJOR}.{MINOR}.{PATCH}"
setuptools.setup(
name=name,
version=release,
author="The Renegade Coder",
author_email="jeremy.grifski@therenegadecoder.com",
description="The Sample Programs API in Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/TheRenegadeCoder/subete",
packages=setuptools.find_packages(),
python_requires=">=3.7",
install_requires=[
"PyYAML>=6,<7",
"GitPython>=3,<4"
],
classifiers=[
"License :: OSI Approved :: MIT License",
"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",
"Operating System :: OS Independent",
"Topic :: Documentation :: Sphinx",
"Development Status :: 3 - Alpha"
],
cmdclass=cmdclass,
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', release),
'source_dir': ('setup.py', 'docs'),
'build_dir': ('setup.py', 'docs'),
'builder': ("setup.py", "dirhtml")
}
}
)