forked from whatthefeuille/whatthefeuille
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (65 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
import os
from setuptools import setup, find_packages
from wtf import __version__
install_requires = [
'Mako',
'circus',
'python-dateutil==1.5',
'formencode',
'paramiko',
'pyes',
'pyramid',
'pyramid_beaker',
'pyramid_macauth',
'pyramid_multiauth',
'pyramid_simpleform',
'pyramid_whoauth',
'repoze.who.plugins.browserid',
'virtualenv', 'Sphinx',
'wsgiproxy',
'wsgithumb',
'PIL',
'cython',
'numpy',
'scikit-image',
'scipy'
]
DOCS = os.path.join(os.path.dirname(__file__), 'wtf', 'docs', 'source')
BUILD = os.path.join(os.path.dirname(__file__), 'wtf', 'docs', 'build')
try:
import argparse # NOQA
except ImportError:
install_requires.append('argparse')
try:
from sphinx.setup_command import BuildDoc
kwargs = {'cmdclass': {'build_sphinx': BuildDoc},
'command_options': {'build_sphinx':
{'project': ('setup.py', 'wtf'),
'version': ('setup.py', __version__),
'release': ('setup.py', __version__),
'source_dir': ('setup.py', DOCS),
'build_dir': ('setup.py', BUILD)}}}
except ImportError:
kwargs = {}
with open('README.rst') as f:
README = f.read()
setup(name='whatthefeuille',
version=__version__,
packages=find_packages(),
description=("What The Feuille ?"),
long_description=README,
author="WTF Dream Team",
author_email="[email protected]",
include_package_data=True,
zip_safe=False,
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 1 - Planning"],
install_requires=install_requires,
test_requires=['nose', 'WebTest'],
test_suite='nose.collector',
entry_points="""
[console_scripts]
wtf-serve = wtf.runserver:main
""", **kwargs)