|
1
|
|
|
import os |
|
2
|
|
|
|
|
3
|
|
|
import sys |
|
4
|
|
|
from setuptools import setup, find_packages |
|
5
|
|
|
|
|
6
|
|
|
here = os.path.abspath(os.path.dirname(__file__)) |
|
7
|
|
|
with open(os.path.join(here, 'README.md')) as f: |
|
8
|
|
|
README = f.read() |
|
9
|
|
|
with open(os.path.join(here, 'CHANGES.txt')) as f: |
|
10
|
|
|
CHANGES = f.read() |
|
11
|
|
|
|
|
12
|
|
|
requires = [ |
|
13
|
|
|
'plaster_pastedeploy', |
|
14
|
|
|
'pyramid >= 1.9a', |
|
15
|
|
|
'pyramid_debugtoolbar', |
|
16
|
|
|
'pyramid_jinja2', |
|
17
|
|
|
'pyramid_retry', |
|
18
|
|
|
'pyramid_tm', |
|
19
|
|
|
'SQLAlchemy', |
|
20
|
|
|
'transaction', |
|
21
|
|
|
'zope.sqlalchemy', |
|
22
|
|
|
'waitress', |
|
23
|
|
|
'filedepot', |
|
24
|
|
|
'babel', |
|
25
|
|
|
'alembic', |
|
26
|
|
|
'hapic', |
|
27
|
|
|
'marshmallow <3.0.0a1,>2.0.0', |
|
28
|
|
|
'cliff', |
|
29
|
|
|
] |
|
30
|
|
|
|
|
31
|
|
|
tests_require = [ |
|
32
|
|
|
'WebTest >= 1.3.1', # py3 compat |
|
33
|
|
|
'pytest', |
|
34
|
|
|
'pytest-cov', |
|
35
|
|
|
'pep8', |
|
36
|
|
|
'mypy', |
|
37
|
|
|
] |
|
38
|
|
|
|
|
39
|
|
|
mysql_require = [ |
|
40
|
|
|
'PyMySQL' |
|
41
|
|
|
] |
|
42
|
|
|
|
|
43
|
|
|
postgresql_require = [ |
|
44
|
|
|
'psycopg2', |
|
45
|
|
|
] |
|
46
|
|
|
# Python version adaptations |
|
47
|
|
|
if sys.version_info < (3, 5): |
|
48
|
|
|
requires.append('typing') |
|
49
|
|
|
|
|
50
|
|
|
|
|
51
|
|
|
setup( |
|
52
|
|
|
name='tracim_backend', |
|
53
|
|
|
version='1.9.1', |
|
54
|
|
|
description='Rest API (Back-end) of Tracim v2', |
|
55
|
|
|
long_description=README + '\n\n' + CHANGES, |
|
56
|
|
|
classifiers=[ |
|
57
|
|
|
'Development Status :: 2 - Pre-Alpha', |
|
58
|
|
|
'Programming Language :: Python', |
|
59
|
|
|
"Programming Language :: Python :: 3.4", |
|
60
|
|
|
"Programming Language :: Python :: 3.5", |
|
61
|
|
|
"Programming Language :: Python :: 3.6", |
|
62
|
|
|
'Framework :: Pyramid', |
|
63
|
|
|
'Topic :: Internet :: WWW/HTTP', |
|
64
|
|
|
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', |
|
65
|
|
|
'Topic :: Communications :: File Sharing', |
|
66
|
|
|
'Topic :: Communications', |
|
67
|
|
|
'License :: OSI Approved :: MIT License', |
|
68
|
|
|
], |
|
69
|
|
|
author='', |
|
70
|
|
|
author_email='', |
|
71
|
|
|
url='https://github.com/tracim/tracim_backend', |
|
72
|
|
|
keywords='web pyramid tracim ', |
|
73
|
|
|
packages=find_packages(), |
|
74
|
|
|
include_package_data=True, |
|
75
|
|
|
zip_safe=False, |
|
76
|
|
|
extras_require={ |
|
77
|
|
|
'testing': tests_require, |
|
78
|
|
|
'mysql': mysql_require, |
|
79
|
|
|
'postgresql': postgresql_require, |
|
80
|
|
|
}, |
|
81
|
|
|
install_requires=requires, |
|
82
|
|
|
entry_points={ |
|
83
|
|
|
'paste.app_factory': [ |
|
84
|
|
|
'main = tracim:main', |
|
85
|
|
|
], |
|
86
|
|
|
'console_scripts': [ |
|
87
|
|
|
'tracimcli = tracim.command:main', |
|
88
|
|
|
], |
|
89
|
|
|
'tracimcli': [ |
|
90
|
|
|
'test = tracim.command:TestTracimCommand', |
|
91
|
|
|
'user_create = tracim.command.user:CreateUserCommand', |
|
92
|
|
|
'user_update = tracim.command.user:UpdateUserCommand', |
|
93
|
|
|
'db_init = tracim.command.initializedb:InitializeDBCommand', |
|
94
|
|
|
] |
|
95
|
|
|
}, |
|
96
|
|
|
) |
|
97
|
|
|
|