forked from 3scale-qe/3scale-api-python-crd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (45 loc) · 1.42 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
import re
import sys
from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
VERSION = "devel"
if sys.argv[1] == "--release-version":
sys.argv.pop(1)
VERSION = sys.argv.pop(1)
assert re.match(r"[0-9]+\.[0-9]+\.[0-9]+", VERSION), "Version definition required as first arg"
requirements = ['3scale-api', 'openshift-client']
extra_requirements = {
'dev': [
'flake8',
'mypy',
'pylint',
'pytest',
'python-dotenv',
'backoff'
],
'docs': ['sphinx']
}
setup(name='3scale-api-crd',
version=VERSION,
description='3scale CRD Python Client',
author='Martin Kudlej',
author_email='[email protected]',
maintainer='Martin Kudlej',
url='https://github.com/3scale-qe/3scale-api-python-crd',
packages=find_packages(exclude=("tests",)),
long_description=long_description,
long_description_content_type='text/markdown',
include_package_data=True,
install_requires=requirements,
extras_require=extra_requirements,
entry_points={},
classifiers=[
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.11',
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
'Intended Audience :: Developers',
'Topic :: Utilities',
],
)