-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
82 lines (71 loc) · 2.4 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
74
75
76
77
78
79
80
81
82
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
user_options = [
('tox-args=', 'a', "Arguments to pass to tox")
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = '-c tox.ini'
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Import here because outside the eggs aren't loaded.
import tox
import shlex
errno = tox.cmdline(args=shlex.split(self.tox_args))
sys.exit(errno)
def read(path):
with(open(os.path.join(os.path.dirname(__file__), path))) as fp:
return fp.read()
pkg = {}
exec(read(os.path.join('bingmaps',
'__pkg__.py')), pkg)
requirements = os.path.join('requirements',
'production.txt')
readme = read('README.rst')
changelog = read('CHANGELOG.rst')
install_requires = read(requirements).split()
entry_points = {
'console_scripts': [
]
}
setup(
name=pkg['__package_name__'],
version=pkg['__version__'],
url=pkg['__url__'],
license=pkg['__license__'],
author=pkg['__author__'],
author_email=pkg['__email__'],
description=pkg['__description__'],
long_description=readme + '\n\n' + changelog,
packages=find_packages(exclude=['tests', 'tasks']),
install_requires=install_requires,
tests_require=['tox'],
entry_points=entry_points,
cmdclass={'test': Tox},
test_suite='tests',
keywords=['bingmaps',
'bingmaps REST services',
'bingmaps API services',
'bingmaps location API services',
'bingmaps elevations API services',
'bingmaps traffic incidents API services'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Filesystems',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
]
)