annotate setup.py @ 1:da64ea951cd8 default tip

notes to self
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 24 Mar 2013 00:44:33 -0700
parents 1855ba0b873a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for MozillaHg
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 version = "0.0"
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 dependencies = ['MakeItSo', 'webob']
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 kw = {}
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 try:
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 from setuptools import setup
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 kw['entry_points'] = """
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 [console_scripts]
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 MozillaHg = MozillaHg.main:main
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 MozillaHg-template = MozillaHg.template:main
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 """
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 kw['install_requires'] = dependencies
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 except ImportError:
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 from distutils.core import setup
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 kw['requires'] = dependencies
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 try:
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 here = os.path.dirname(os.path.abspath(__file__))
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 description = file(os.path.join(here, 'README.txt')).read()
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 except IOError:
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 description = ''
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 setup(name='MozillaHg',
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 version=version,
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 description="mozilla interface to mercurial",
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 long_description=description,
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 author='Jeff Hammel',
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 author_email='jhammel@mozilla.com',
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 url='http://k0s.org/mozilla/hg/MozillaHg',
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 license='',
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 packages=['mozillahg'],
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 include_package_data=True,
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 zip_safe=False,
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 **kw
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 )
1855ba0b873a initial commit
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45