/
setup.py
50 lines (44 loc) · 1.62 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
# -*- coding: utf-8 -*-
import setuptools
from os.path import join, dirname
from setuptools.command.test import test as TestCommand
import sys
class Tox(TestCommand):
user_options = TestCommand.user_options + [
('environment=', 'e', "Run 'test_suite' in specified environment")
]
environment = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
if self.environment:
self.test_args.append('-e{0}'.format(self.environment))
errno = tox.cmdline(self.test_args)
sys.exit(errno)
setuptools.setup(
name="api_toolkit",
version="0.3.11",
packages=["api_toolkit"],
include_package_data=True, # declarations in MANIFEST.in
install_requires=open(join(dirname(__file__), 'requirements.txt')).readlines(),
tests_require=['tox>=1.6.1', 'virtualenv>=1.11.2'],
cmdclass = {'test': Tox},
test_suite='api_toolkit.tests',
author="vitormazzi",
author_email="vitormazzi@gmail.com",
url="http://github.com/myfreecomm/python-api-toolkit",
license="Apache 2.0",
description="A library which simplifies the creation of clients for REST webservices.",
long_description=open(join(dirname(__file__), "README.md")).read(),
keywords="python rest webservices",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development',
],
)