annotate setup.py @ 160:514c9a782da0

use (hopefully correct) repo URL for mozmill
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 31 Jan 2011 15:00:22 -0800
parents b4e1edfd49ee
children 7789fe9f8c30
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
1 import os, sys
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 from setuptools import setup, find_packages
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 version = '0.0'
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 setup(name='autobot',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 version=version,
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 description="buildbot incarnation for Mozilla AutoTools team",
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 long_description="""\
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 """,
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 keywords='buildbot automation',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 author='Jeff Hammel',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 author_email='jhammel@mozilla.com',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 url='https://wiki.mozilla.org/Auto-tools',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 license='MPL',
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 include_package_data=True,
126
a9ac38655f75 fight with package_data, as usual
Jeff Hammel <jhammel@mozilla.com>
parents: 125
diff changeset
19 package_data={'': ['template/master/*',
a9ac38655f75 fight with package_data, as usual
Jeff Hammel <jhammel@mozilla.com>
parents: 125
diff changeset
20 'template/slave/*',
127
affe87c6c276 another blind guess
Jeff Hammel <jhammel@mozilla.com>
parents: 126
diff changeset
21 'template/*.*']},
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 zip_safe=False,
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 install_requires=[
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 # -*- Extra requirements: -*-
159
b4e1edfd49ee * depend on a version of buildbot that has a slightly less broken version of gitpoller
Jeff Hammel <jhammel@mozilla.com>
parents: 127
diff changeset
25 'buildbot>=0.8.3p1',
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 'buildbot-slave',
91
2de829d2c3f7 add dependency on MakeItSo
Jeff Hammel <jhammel@mozilla.com>
parents: 67
diff changeset
27 'virtualenv',
2de829d2c3f7 add dependency on MakeItSo
Jeff Hammel <jhammel@mozilla.com>
parents: 67
diff changeset
28 'MakeItSo',
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 ],
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 entry_points="""
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 # -*- Entry points: -*-
15
d7c4e9d6d9dd note console_script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
32 [console_scripts]
23
a32a7055f3e6 combine variables for buildbot master+slave
Jeff Hammel <jhammel@mozilla.com>
parents: 20
diff changeset
33 create-autobot = autobot.template:create_autobot
20
30ec24255ce9 stub out having a slave template too
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
34 create-autobot-master = autobot.template:create_master
30ec24255ce9 stub out having a slave template too
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
35 create-autobot-slave = autobot.template:create_slave
67
e8dabfd24c42 stub for a template to create new autobot factories; unfinished
Jeff Hammel <jhammel@mozilla.com>
parents: 23
diff changeset
36 create-autobot-project = autobot.template:create_project
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 """,
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 )
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
39
125
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
40 # def install_hg(sources):
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
41 # """
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
42 # - sources : dict of hg sources to install: {'package': 'http://hg...'}
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
43 # """
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
44 # try:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
45 # from subprocess import check_call as call
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
46 # except:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
47 # from subprocess import call
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
48
125
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
49 # # see if you can find site-packages
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
50 # import site
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
51 # site_dir = os.path.abspath(os.path.dirname(site.__file__))
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
52 # site_packages = os.path.join(site_dir, 'site-packages')
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
53 # if not (os.path.exists(site_packages) and os.path.isdir(site_packages)):
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
54 # raise IOError("Cannot find site-packages directory")
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
55
125
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
56 # # figure out what you need to install
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
57 # missing = set()
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
58 # for source in sources:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
59 # try:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
60 # __import__(source)
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
61 # except ImportError:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
62 # missing.add(source)
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
63
125
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
64 # # install it
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
65 # for source in missing:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
66 # call(['hg', 'clone', sources[source],
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
67 # os.path.join(site_packages, source)])
98
9ba5c3df5e30 automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents: 91
diff changeset
68
125
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
69 # ### install unpackaged dependencies
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
70 # source = {'buildbotcustom': 'http://hg.mozilla.org/build/buildbotcustom'}
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
71 # if set(['install', 'develop']).intersection(sys.argv[1:]):
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
72 # try:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
73 # install_hg(source)
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
74 # except:
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
75 # print 'Please make sure the source is installed:'
3b3c83f803b3 no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents: 98
diff changeset
76 # print source