-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
67 lines (57 loc) · 1.9 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
#!/usr/bin/env python
import os
from setuptools import setup
def get_version():
with open(os.path.join("tcms_api", "version.py"), "r") as file:
version = file.read()
return (
version.replace(" ", "")
.replace("__version__=", "")
.strip()
.strip("'")
.strip('"')
)
def get_install_requires(path):
requires = []
with open(path, "r") as file:
for line in file:
if line.startswith("-r "):
continue
requires.append(line.strip())
return requires
with open("README.rst") as readme:
LONG_DESCRIPTION = readme.read()
setup(
name="tcms-api",
version=get_version(),
packages=["tcms_api"],
description="Python API for Kiwi",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
maintainer="Kiwi TCMS",
maintainer_email="[email protected]",
license="LGPLv2+",
url="https://github.com/kiwitcms/tcms-api",
python_requires=">=3.6",
install_requires=get_install_requires("requirements.txt"),
extras_require={
"gssapi": ["gssapi"],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU Lesser General Public License v2"
+ " or later (LGPLv2+)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
],
)