This repository was archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
73 lines (62 loc) · 1.96 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
68
69
70
71
72
73
# coding=utf-8
from codecs import open
import re
import sys
from setuptools import setup
def strip_ref_directives(text):
def cb(match):
group = match.group(0)
return group.split('`', 1)[1].rsplit('<', 1)[0].strip()
return re.sub(r':ref:`[^`]+`', cb, text)
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with open('CHANGES.rst', 'r', 'utf-8') as f:
changes = f.read()
needs_pytest = set(['pytest', 'test']).intersection(sys.argv)
setup_requires = ['pytest-runner'] if needs_pytest else []
install_requires = [
'requests',
'six',
]
cli_requires = [
'click',
'visitor>=0.1.3',
]
tests_require = ['pytest', 'requests_mock', 'pytest-runner']
tests_require.extend(install_requires)
tests_require.extend(cli_requires)
setup(name='jiffybox',
version='0.11.0',
description='API wrapper for jiffybox.de',
long_description=strip_ref_directives(
readme + '\n\n' + changes,
),
author='Amadeus IT Group',
author_email='opensource@amadeus.com',
maintainer='Thomas Weißschuh',
maintainer_email='thomas.weissschuh@de.amadeus.com',
url='https://github.com/AmadeusITGroup/python-jiffybox',
packages=['jiffybox'],
license='GPL3',
keywords='API jiffybox domainfactory',
zip_safe=True,
install_requires=install_requires,
extras_require={
'cli': cli_requires,
'tests': tests_require,
},
setup_requires=setup_requires,
tests_require=tests_require,
entry_points='''
[console_scripts]
jiffybox=jiffybox.cli:jiffybox
''',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)