-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (69 loc) · 1.84 KB
/
Copy pathsetup.py
File metadata and controls
79 lines (69 loc) · 1.84 KB
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
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
requires = [
'pyramid',
'pyramid_jinja2',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'zope.sqlalchemy',
'pyramid_debugtoolbar',
'waitress',
'logsna',
'wheel',
'distribute',
'psycopg2',
'Delorean',
'httpretty',
]
test_requires = [
'fudge',
'pytest-blockage',
'pytest-cov',
'pytest',
]
setup(name='belt',
version='0.7.0',
description='belt',
license='BSD',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"License :: OSI Approved :: BSD License",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Rob Berry',
author_email='',
url='',
keywords='web wsgi bfg pylons pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='belt',
install_requires=requires,
tests_require=test_requires,
cmdclass={'test': PyTest},
entry_points="""\
[paste.app_factory]
main = belt:main
[console_scripts]
createwheels = belt.scripts.createwheels:_build_wheels
initialize_belt_db = belt.scripts.initializedb:main
""",
)