This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
98 lines (86 loc) · 2.74 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
93
94
95
96
97
98
import platform
import codecs
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
README = f.read()
with codecs.open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf-8') as f:
CHANGELOG = f.read()
with codecs.open(os.path.join(here, 'CONTRIBUTORS.rst'),
encoding='utf-8') as f:
CONTRIBUTORS = f.read()
installed_with_pypy = platform.python_implementation() == 'PyPy'
REQUIREMENTS = [
'colander',
'colorama',
'cornice >= 1.1', # Fix cache CORS
'python-dateutil',
'pyramid_multiauth >= 0.8', # User on policy selected event.
'pyramid_tm',
'redis', # Default backend
'requests',
'six',
'structlog',
'enum34',
]
if installed_with_pypy:
# We install psycopg2cffi instead of psycopg2 when dealing with pypy
# Note: JSONB support landed after psycopg2cffi 2.7.0
POSTGRESQL_REQUIRES = [
'SQLAlchemy',
'psycopg2cffi>2.7.0',
'zope.sqlalchemy',
]
else:
# ujson is not pypy compliant, as it uses the CPython C API
REQUIREMENTS.append('ujson >= 1.35')
POSTGRESQL_REQUIRES = [
'SQLAlchemy',
'psycopg2>2.5',
'zope.sqlalchemy',
]
DEPENDENCY_LINKS = [
]
MONITORING_REQUIRES = [
'raven',
'statsd',
'newrelic',
'werkzeug',
]
ENTRY_POINTS = {
'console_scripts': [
'cliquet = cliquet.scripts.cliquet:main'
]
}
setup(name='cliquet',
version='3.2.0.dev0',
description='Micro service API toolkit',
long_description=README + "\n\n" + CHANGELOG + "\n\n" + CONTRIBUTORS,
license='Apache License (2.0)',
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"License :: OSI Approved :: Apache Software License"
],
keywords="web services",
author='Mozilla Services',
author_email='services-dev@mozilla.com',
url='https://github.com/mozilla-services/cliquet',
packages=find_packages(),
package_data={'': ['*.rst', '*.py']},
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require={
'postgresql': POSTGRESQL_REQUIRES,
'monitoring': MONITORING_REQUIRES,
},
dependency_links=DEPENDENCY_LINKS,
entry_points=ENTRY_POINTS)