-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
62 lines (56 loc) · 1.63 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
from setuptools import setup, find_packages
import os
version = '0.9.0'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGELOG.rst')).read()
except IOError:
README = CHANGES = ''
import sys
py_version = sys.version_info[:2]
test_requirements = [
'nose',
'webtest',
'TurboGears2',
'sqlalchemy',
'zope.sqlalchemy',
'transaction',
'tw2.core',
'tw2.forms',
'mako'
]
if py_version == (3, 2):
# jinja2 2.7 is incompatible with Python 3.2
test_requirements.append('jinja2 < 2.7')
else:
test_requirements.append('jinja2')
setup(name='tgext.crud',
version=version,
description="Crud Controller Extension for TG2",
long_description=README + "\n" +
CHANGES,
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='turbogears2.extension, TG2, REST, crud, sprox',
author='Christopher Perkins',
author_email='[email protected]',
url='https://github.com/TurboGears/tgext.crud',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['tgext'],
include_package_data=True,
zip_safe=True,
install_requires=[
"TurboGears2 >= 2.3.0",
'sprox >= 0.11.1',
],
test_suite='nose.collector',
tests_require=test_requirements,
entry_points="""
# -*- Entry points: -*-
""",
)