forked from eventray-archive/horus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (66 loc) · 2.08 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
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
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 pytest
pytest.main(self.test_args)
result = pytest.main(self.test_args)
sys.exit(result)
here = os.path.abspath(os.path.dirname(__file__))
README = ''#open(os.path.join(here, 'README.md')).read()
CHANGES = ''#open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid'
, 'sqlalchemy'
, 'cryptacular'
, 'colander'
, 'deform'
, 'pyramid_deform'
, 'transaction'
, 'zope.sqlalchemy'
, 'pystache'
, 'pyramid_mailer'
, 'beaker'
, 'pyramid_beaker'
, 'hem'
, 'psycopg2'
]
setup(name='horus'
, version='0.0.34'
, description='Generic user registration for pyramid'
, long_description=README + '\n\n' + CHANGES
, classifiers=[
'Intended Audience :: Developers'
, 'License :: OSI Approved :: BSD License'
, 'Operating System :: OS Independent'
, 'Programming Language :: Python'
, 'Topic :: Internet :: WWW/HTTP :: Dynamic Content'
, 'Topic :: Software Development :: Libraries :: Python Modules'
]
, author='John Anderson'
, author_email='[email protected]'
, url='https://github.com/sontek/horus'
, keywords='pyramid'
, license='BSD'
, packages=find_packages()
, include_package_data=True
, zip_safe=False
, install_requires=requires
, tests_require=requires + ['pytest', 'mock', 'webtest', 'pytest-cov']
, cmdclass = {'test': PyTest}
, test_suite='horus'
, message_extractors = {
'horus': [
('**.py', 'python', None),
('**/templates/**.html', 'mako', None),
('**/templates/**.mako', 'mako', None),
]
}
)