annotate setup.py @ 5:24417b83ef29

polish a bit
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 15 Apr 2013 22:14:49 -0700
parents b8be785f8e87
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for IntentMadeManifest
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 version = "0.0"
2
b8be785f8e87 lets pretend that were dead...er, doing something
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
8 dependencies = []
0
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 kw = {}
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 try:
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 from setuptools import setup
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 kw['entry_points'] = """
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 [console_scripts]
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 IntentMadeManifest = IntentMadeManifest.main:main
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 IntentMadeManifest-template = IntentMadeManifest.template:main
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 """
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['install_requires'] = dependencies
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 except ImportError:
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 from distutils.core import setup
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 kw['requires'] = dependencies
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 try:
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 here = os.path.dirname(os.path.abspath(__file__))
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 description = file(os.path.join(here, 'README.txt')).read()
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 except IOError:
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 description = ''
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 setup(name='IntentMadeManifest',
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 version=version,
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 description="python workflow engine via directed graph",
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 long_description=description,
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 author='Jeff Hammel',
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 author_email='jhammel@mozilla.com',
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 url='',
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 license='',
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 packages=['intentmademanifest'],
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 include_package_data=True,
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 zip_safe=False,
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 **kw
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 )
67cfeffa0d90 stub from template
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45