-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
82 lines (72 loc) · 1.93 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
import os
import sys
from setuptools import setup, find_packages
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()
is_pypy = '__pypy__' in sys.builtin_module_names
def get_postgres_dependencies():
if is_pypy:
# psyco = 'psycopg2ct'
return ['psycopg2cffi']
else:
return ['psycopg2']
requires = [
'colorama',
'deform_bootstrap',
'dogpile.cache',
'gunicorn',
'horus',
'mako',
'pillow',
'pycountry>=0.17',
'pyelasticsearch',
'pygeoip',
'pyramid>=1.4.2',
'pyramid_debugtoolbar',
'pyramid_mailer',
'pyramid_tm',
'pyres',
'pytz',
'redis',
'requests',
'six',
'sqlalchemy',
'validictory',
'waitress',
'zope.sqlalchemy'
] + get_postgres_dependencies()
entry_points = """\
[paste.app_factory]
main = notaliens:main
[console_scripts]
notaliens_create_db = notaliens.scripts.create:main
notaliens_update_geoip = notaliens.scripts.geoip:update
notaliens_update_geoip_csv = notaliens.scripts.geoip_csv:update
notaliens_rebuild_index = notaliens.scripts.reindex:main
notaliens_refresh_location = notaliens.scripts.refresh_user_location:update
notaliens_task_queue = notaliens.tasks.worker:main
""" # nopep8
setup(
name='notaliens',
version='0.0',
description='notaliens',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python"
"Framework :: Pyramid"
"Topic :: Internet :: WWW/HTTP"
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
],
author='John Anderson',
author_email='sontek@gmail.com',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="notaliens",
entry_points=entry_points
)