annotate setup.py @ 45:32cf3d3469c3 default tip

assert
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 07 Nov 2013 14:19:06 -0800
parents 4cb3971d9d9d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 setup packaging script for CommitWatcher
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 import os
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 version = "0.0"
2
4cb3971d9d9d commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
8 dependencies = ['feedparser',
4cb3971d9d9d commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
9 'pypatch',
4cb3971d9d9d commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
10 'webob',
4cb3971d9d9d commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
11 ]
0
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 # allow use of setuptools/distribute or distutils
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 kw = {}
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 from setuptools import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 kw['entry_points'] = """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 [console_scripts]
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 CommitWatcher = commitwatcher.main:main
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 """
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 kw['install_requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 except ImportError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 from distutils.core import setup
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 kw['requires'] = dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 try:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 here = os.path.dirname(os.path.abspath(__file__))
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 description = file(os.path.join(here, 'README.txt')).read()
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 except IOError:
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 description = ''
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 setup(name='CommitWatcher',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 version=version,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35 description="new service to monitor mozbase commits",
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
36 long_description=description,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
37 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
38 author='Jeff Hammel',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
39 author_email='jhammel@mozilla.com',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
40 url='https://bugzilla.mozilla.org/show_bug.cgi?id=895522',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
41 license='MPL2',
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
42 packages=['commitwatcher'],
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
43 include_package_data=True,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
44 zip_safe=False,
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
45 **kw
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
46 )
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
47