-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
48 lines (43 loc) · 1.55 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
import codecs
import os.path
from setuptools import setup, find_packages
from starterpyth import __version__ as version
__author__ = 'Matthieu Gallet'
# get README content from README.rst file
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
fd = codecs.open(readme, 'r', encoding='utf-8')
long_description = fd.read()
fd.close()
SETUP_COMMANDS = [
('CompileMessages', 'compilemessages',),
('Dependencies', 'dependencies',),
('DocTest', 'doc_test',),
('GenDoc', 'gen_doc',),
('GenDocApi', 'gen_doc_api',),
('Lint', 'lint'),
('MakeMessages', 'makemessages',),
('Profiling', 'profiling'),
]
extra_requires = {'all': ['sfood', 'pylint', 'pstats', ], }
setup(
name='starterpyth',
version=version,
description='Generate skeletons for new Python applications.',
long_description=long_description,
author='Matthieu Gallet',
author_email='[email protected]',
license='Cecill-B',
url='http://www.19pouces.net/projects.html',
entry_points={'console_scripts': ['starterpyth-bin = starterpyth.core:main', ],
'distutils.commands': ["%(cmd)s = starterpyth.commands.%(cmd)s:%(cls)s" % {'cmd': data[1], 'cls': data[0]}
for data in SETUP_COMMANDS],
},
packages=find_packages(),
include_package_data=True,
extra_requires=extra_requires,
zip_safe=True,
test_suite='starterpyth.tests',
use_2to3=False,
install_requires=['setuptools>=0.7', 'jinja2', 'markupsafe', 'six', ],
setup_requires=['setuptools>=0.7', ],
)