annotate setup.py @ 85:39090ffe58f0

README.txt
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 21 Sep 2013 19:37:04 -0700
parents 4446cba4cee6
children 5a624b3c1007
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for PaInt
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
46
bb3c646e9516 python 2.4 compatability
Jeff Hammel <jhammel@mozilla.com>
parents: 44
diff changeset
7 version = "0.1.2"
81
4446cba4cee6 update CommandParser and docstring for it
Jeff Hammel <jhammel@mozilla.com>
parents: 46
diff changeset
8 dependencies = ['virtualenv >= 1.7.1.2',
4446cba4cee6 update CommandParser and docstring for it
Jeff Hammel <jhammel@mozilla.com>
parents: 46
diff changeset
9 'pip >= 1.1',
4446cba4cee6 update CommandParser and docstring for it
Jeff Hammel <jhammel@mozilla.com>
parents: 46
diff changeset
10 'pkginfo',
4446cba4cee6 update CommandParser and docstring for it
Jeff Hammel <jhammel@mozilla.com>
parents: 46
diff changeset
11 'CommandParser >= 0.2']
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 # allow use of setuptools/distribute or distutils
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 kw = {}
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 try:
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 from setuptools import setup
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 kw['entry_points'] = """
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 [console_scripts]
26
8beffeb750b3 begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents: 23
diff changeset
19 python-package = paint.main:main
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 """
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 kw['install_requires'] = dependencies
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 except ImportError:
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 from distutils.core import setup
22
aad329df2548 go crazy nuts with dependencies
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
24 kw['requires'] = dependencies
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 try:
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 here = os.path.dirname(os.path.abspath(__file__))
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 description = file(os.path.join(here, 'README.txt')).read()
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 except IOError:
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 description = ''
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 setup(name='PaInt',
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 version=version,
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 description="python PAckage INTrospection",
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 long_description=description,
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 author='Jeff Hammel',
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 author_email='jhammel@mozilla.com',
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 url='http://k0s.org/mozilla/hg/PaInt',
23
90ef5d1ebff3 formatting
Jeff Hammel <jhammel@mozilla.com>
parents: 22
diff changeset
40 license='MPL',
0
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 packages=['paint'],
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 include_package_data=True,
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 zip_safe=False,
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 **kw
96362e527bd6 initial package
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 )