Mercurial > hg > carton
annotate tests/packageB/setup.py @ 26:e6ee0410ceef
fix bug where os.path.sep is wrongly interpreted
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 10 Jul 2011 18:37:42 -0700 |
parents | 29b36a390857 |
children |
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 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 deps = [] |
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='packageB', |
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="packageB", |
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=['packageB'], |
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 packageB = packageB: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 |