-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
50 lines (43 loc) · 1.37 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
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 = ['requests', 'backoff']
extra_requirements = {
'dev': [
'pytest',
'coverage',
'python-dotenv',
'responses'
],
'docs': ['sphinx']
}
setup(name='3scale-api',
version=VERSION,
description='3scale API python client',
author='Peter Stanko',
author_email='[email protected]',
maintainer='Peter Stanko',
url='https://github.com/pestanko/3scale-api-python',
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.7',
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
'Intended Audience :: Developers',
'Topic :: Utilities',
],
)