-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
69 lines (59 loc) · 2.24 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
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as test_command
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
class PyTest(test_command):
def finalize_options(self):
test_command.finalize_options(self)
if sys.version_info.major < 3:
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
version = '1.0.12'
setup(name='duedil',
version=version,
description="Duedil API client",
long_description=(read('README.rst') + '\n\n' +
read('docs', 'HISTORY.rst') + '\n\n' +
read('docs', 'TODO.rst')),
classifiers=['Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Development Status :: 3 - Alpha', ],
# Get strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='duedil, api',
author='Christian Ledermann',
author_email='[email protected]',
url='http://duedilv3.readthedocs.org/en/latest/',
license='Apache License 2.0',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
# -*- Extra requirements: -*-
'requests>=2,<3',
'six',
'retrying',
'dogpile.cache',
],
tests_require=['pytest', 'requests_mock'],
cmdclass = {'test': PyTest},
entry_points="""
# -*- Entry points: -*-
""",
)