-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
92 lines (80 loc) · 2.38 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
83
84
85
86
87
88
89
90
91
92
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from shelter import __version__ as VERSION
class PyTest(TestCommand):
user_options = [
('pytest-args=', 'a', "Arguments to pass to py.test"),
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
description = (
"Simple Python's Tornado wrapper which provides helpers for creation"
"a new project, writing management commands, service processes, ..."
)
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('README.rst', 'r').read().decode('utf-8')
except IOError:
long_description = description
setup(
name="shelter",
version=VERSION,
author='Jan Seifert (Seznam.cz, a.s.)',
author_email="[email protected]",
description=description,
long_description=long_description,
license="BSD",
url='https://github.com/seznam/shelter',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
],
platforms=['any'],
packages=find_packages(include=['shelter*']),
include_package_data=True,
zip_safe=False,
install_requires=[
'tornado>=3.2',
'six',
'setproctitle>=1.1',
],
extras_require={
"swagger": [
'apispec',
'apispec-webframeworks',
'marshmallow',
'swagger-ui-py',
]
},
tests_require=[
'pytest-cov',
'pytest',
'mock',
],
test_suite='tests',
cmdclass={
'test': PyTest,
},
entry_points={
'console_scripts': [
'shelter-admin = shelter.main:main',
]
},
)