0
|
1 """
|
|
2 setup packaging script for pypedream
|
|
3 """
|
|
4
|
|
5 import os
|
|
6
|
|
7 version = "0.3"
|
|
8 dependencies = ['PyYAML',
|
|
9 'Jinja2']
|
|
10
|
|
11 # allow use of setuptools/distribute or distutils
|
|
12 kw = {}
|
|
13 try:
|
|
14 from setuptools import setup
|
|
15 kw['entry_points'] = """
|
|
16 [console_scripts]
|
|
17 py2rpm = pypedream.py2rpm:main
|
|
18 py2centos = pypedream.py2centos:main
|
|
19 """
|
|
20 kw['install_requires'] = dependencies
|
|
21 except ImportError:
|
|
22 from distutils.core import setup
|
|
23 kw['requires'] = dependencies
|
|
24
|
|
25 try:
|
|
26 here = os.path.dirname(os.path.abspath(__file__))
|
|
27 description = file(os.path.join(here, 'README.txt')).read()
|
|
28 except IOError:
|
|
29 description = ''
|
|
30
|
|
31
|
|
32 setup(name='pypedream',
|
|
33 version=version,
|
|
34 description="python packaging work",
|
|
35 long_description=description,
|
|
36 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
|
|
37 author='Jeff Hammel',
|
|
38 author_email='k0scist@gmail.com',
|
|
39 url='',
|
|
40 license='',
|
|
41 packages=['pypedream'],
|
|
42 include_package_data=True,
|
|
43 zip_safe=False,
|
|
44 **kw
|
|
45 )
|