annotate setup.py @ 0:6873638f82ce default tip

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