-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
75 lines (66 loc) · 1.79 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
requires = [
'pyramid',
'pyramid_jinja2',
'pyramid_mako',
'pyramid_tm',
'pyramid_debugtoolbar',
'pyramid_raven',
'waitress',
'sqlalchemy',
'celery',
'zope.sqlalchemy',
'mock',
'nose',
'unittest2',
'webtest',
'raven',
'cornice',
'alembic',
'gunicorn',
'pafy==0.3.76',
]
setup(name='jigglypuff',
version=get_version('jigglypuff/__init__.py'),
description='jigglypuff',
long_description=readme + '\n\n' + history,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
keywords='web pyramid pylons',
packages=find_packages(exclude=['supervisor', 'tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite='nose.collector',
entry_points={
b'paste.app_factory': [
'main = jigglypuff:main',
],
'console_scripts': [
'jigglypuffstart = jigglypuff.scripts.gunicorn_wrapper:main',
'celery = celery.__main__:main',
]
},
)