-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·74 lines (66 loc) · 2.25 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
#!/usr/bin/env python3
# vim: set fileencoding=utf8 :
from setuptools import setup
from setuptools.command.test import test as TestCommand
import io
import sys
import tornado_jsonapi
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='tornado_jsonapi',
version=tornado_jsonapi.__version__,
url='http://github.com/lockie/tornado_jsonapi',
license='MIT License',
author='Andrew Kravchuk',
author_email='awkravchuk@gmail.com',
install_requires=[
'accept==0.1.0',
'jsl==0.2.2',
'python_jsonschema_objects==0.0.19.post2',
'python-status==1.0.1',
'tornado>=4.2,<6.0',
],
extras_require={
'sqlalchemy': ['SQLAlchemy==1.0.12', 'alchemyjsonschema>=0.6.1'],
'dbapi2': ['antiorm==1.2.0']
},
tests_require=['pytest==3.6.4', 'pytest-pep8==1.0.6',
'WebTest==2.0.20', 'loremipsum==1.0.5'],
cmdclass={'test': PyTest},
description='Framework providing REST JSON API to Tornado web server',
long_description=read('README.rst', 'Changelog.rst'),
packages=['tornado_jsonapi'],
include_package_data=True,
zip_safe=True,
platforms='any',
keywords='tornado JSON API REST SQLAlchemy DBAPI',
classifiers=[
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)