-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
124 lines (107 loc) · 3 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import os
import sys
from setuptools.command.test import test as TestCommand
from setuptools import setup, find_packages
class ToxCommand(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
here = os.path.abspath(os.path.dirname(__file__))
short_desc = (
"Application to generate short URL's, manage external links and extract "
"link info (eg: title, screenshot, content) "
)
install_requires = [
'alembic==0.8.4',
'pyramid==1.5.7',
'pyramid-tm==0.12',
'pyramid-services==0.3',
'pyramid-exclog==0.7',
'zope.sqlalchemy==0.7.6',
'Sqlalchemy==1.0.10',
'pyramid_storage==0.0.8',
'schematics==1.1.0',
'structlog==15.1.0',
'hashids==1.1.0',
'psycopg2==2.6.1',
'filedepot==0.2.1',
'goose-extractor==1.0.25',
'celery[redis]==3.1.18',
'requests==2.8.1',
'PasteScript==2.0.2',
'selenium==2.47.1'
]
s3_require = [
'boto',
]
tests_require = [
'tox',
'pytest-cov'
'pytest',
]
develop_requires = [
'waitress',
'pyramid_debugtoolbar',
'tox',
'pytest-cov', # before pytest, more info why. See bug #196 in setuptools
'pytest',
'Paste==2.0.2',
'bumpversion',
'alembic==0.7.7',
]
dependency_links = [
]
setup(
name='suma',
version='0.1.1',
description=short_desc,
long_description=open('description.rst').read() + '\n\n' + open('CHANGES.txt').read(),
cmdclass={'test': ToxCommand, },
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Rachid Belaid',
author_email='rachid.belaid@gmail.com',
url='https://github.com/rach/suma',
keywords='shorturl screenshot',
packages=find_packages(),
dependency_links=dependency_links,
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'dev': develop_requires,
'test': tests_require,
's3': s3_require
},
entry_points="""\
[console_scripts]
initialize_suma_db = suma.core.scripts.initializedb:main
[paste.app_factory]
api = suma.api:main
web = suma.web:main
"""
)