-
Notifications
You must be signed in to change notification settings - Fork 148
/
setup.py
executable file
·63 lines (55 loc) · 1.95 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("version.txt") as file:
__version__ = file.readline().strip()
# check that version is correct (X.X.X or X.X.X.devXXX or X.X.X.alphaX), eg 0.10.0.dev0
assert re.match(
r"^\d+\.\d+\.\d+$|^\d+\.\d+\.\d+\.dev\d+$|^\d+\.\d+\.\d+\.alpha\d+$", __version__
)
# default build status, see: https://pypi.python.org/pypi?%3Aaction=list_classifiers
if "alpha" in __version__:
dev_status = "3 - Alpha"
elif "dev" in __version__:
dev_status = "4 - Beta"
else:
dev_status = "5 - Production/Stable"
tests_require = ["pytest>=7.0.0", "responses>=0.23.1", "mock", "flake8"]
setup(
name="dohq-artifactory",
version=__version__,
py_modules=["artifactory"],
license="MIT License",
description="A Python interface to Artifactory",
long_description="See full documentation here: https://devopshq.github.io/artifactory/",
author="Alexey Burov",
author_email="[email protected]",
classifiers=[
"Development Status :: {}".format(dev_status),
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Filesystems",
],
url="https://devopshq.github.io/artifactory/",
download_url="https://github.com/devopshq/artifactory",
install_requires=[
"requests>=2.30.0",
"python-dateutil",
"PyJWT~=2.0",
],
extras_require={"tests": tests_require},
zip_safe=False,
package_data={"": ["README.md"]},
packages=["dohq_artifactory"],
)