-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
68 lines (60 loc) · 2 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
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
version = '0.17'
install_requires = [
'pyramid >=1.6a2',
]
tests_require = [
'pytest',
'WebTest',
'colander',
'jsonschema',
'pyramid_sqlalchemy >=1.2',
'pyramid_tm',
]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='rest_toolkit',
version=version,
description='REST toolkit',
long_description=open('README.rst').read() + '\n' +
open('changes.rst').read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Pyramid',
'Intended Audience :: Developers',
'License :: DFSG approved',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='REST Pyramid',
author='Wichert Akkerman',
author_email='[email protected]',
url='https://github.com/wichert/rest_toolkit',
license='BSD',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=True,
install_requires=install_requires,
tests_require=tests_require,
extras_require={'tests': tests_require},
cmdclass={'test': PyTest},
)