annotate setup.py @ 0:02b140ae3e78

the dumping ground begins
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 20 Feb 2013 11:15:11 -0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for disparity
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 version = "0.0"
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 dependencies = ['webob']
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 kw = {}
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 try:
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 from setuptools import setup
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 kw['entry_points'] = """
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 [console_scripts]
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 """
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 kw['install_requires'] = dependencies
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 except ImportError:
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 from distutils.core import setup
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 kw['requires'] = dependencies
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 try:
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 here = os.path.dirname(os.path.abspath(__file__))
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 description = file(os.path.join(here, 'README.txt')).read()
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 except IOError:
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 description = ''
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 setup(name='disparity',
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 version=version,
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 description="mediawiki syntax proxy server for https://developer.mozilla.org/en-US/",
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 long_description=description,
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 author='Jeff Hammel',
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 author_email='jhammel@mozilla.com',
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 url='http://k0s.org/mozilla/hg/disparity',
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 license='MPL',
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 packages=['disparity'],
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 include_package_data=True,
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 zip_safe=False,
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 **kw
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 )
02b140ae3e78 the dumping ground begins
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43