forked from klen/makesite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (52 loc) · 1.76 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
#!/usr/bin/env python
# coding: utf-8
import os
from sys import version_info
from setuptools import setup, find_packages
from makesite import __version__, __project__, __license__
PACKAGE_DATA = ['*.ini', '*.sh']
for folder in ['templates', 'modules']:
for root, dirs, files in os.walk(os.path.join(__project__, folder)):
for filename in files:
PACKAGE_DATA.append("%s/%s" % (root[len(__project__) + 1:], filename))
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
install_requires = ['INITools==0.3.1', 'Tempita==0.5.1', 'ssh==1.7.14']
if version_info < (2, 7):
install_requires.append('argparse')
META_DATA = dict(
name=__project__,
version=__version__,
license=__license__,
description=read('DESCRIPTION'),
long_description=read('README.rst'),
platforms=('Any'),
author='Kirill Klenov',
author_email='[email protected]',
url=' http://github.com/klen/makesite',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: Russian',
'Natural Language :: English',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Programming Language :: Python',
'Environment :: Console',
'Topic :: Software Development :: Code Generators',
],
packages=find_packages(),
package_data={'': PACKAGE_DATA},
entry_points={
'console_scripts': [
'makesite = makesite.main:console',
]
},
install_requires=install_requires,
test_suite='tests',
)
if __name__ == "__main__":
setup(**META_DATA)