annotate tests/packageA/setup.py @ 16:c91abbdc871b

* add TODO: dependencies * take docstring from the module itself
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 15:55:00 -0700
parents f522620c6a78
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 import os
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 from setuptools import setup
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 try:
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 here = os.path.dirname(os.path.abspath(__file__))
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 description = file(os.path.join(here, 'README.txt')).read()
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 except IOError:
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 description = None
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 version = '0.0'
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11
13
f522620c6a78 now works properly with tarballs
Jeff Hammel <jhammel@mozilla.com>
parents: 11
diff changeset
12 deps = ['packageB', 'packageC']
6
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 setup(name='packageA',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 version=version,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 description="packageA",
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 long_description=description,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 keywords='mozilla',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 author='Jeff Hammel',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 author_email='jhammel@mozilla.com',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 url='example.com',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 license='',
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 py_modules=['packageA'],
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 packages=[],
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
26 include_package_data=True,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 zip_safe=False,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 install_requires=deps,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
29 entry_points="""
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
30 # -*- Entry points: -*-
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
31 [console_scripts]
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
32 packageA = packageA:main
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
33 """,
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
34 )
29b36a390857 add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
35