Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | import os |
michael@0 | 2 | from setuptools import setup, find_packages |
michael@0 | 3 | import sys |
michael@0 | 4 | |
michael@0 | 5 | version = '0.7.6' |
michael@0 | 6 | |
michael@0 | 7 | # get documentation from the README |
michael@0 | 8 | try: |
michael@0 | 9 | here = os.path.dirname(os.path.abspath(__file__)) |
michael@0 | 10 | description = file(os.path.join(here, 'README.md')).read() |
michael@0 | 11 | except (OSError, IOError): |
michael@0 | 12 | description = '' |
michael@0 | 13 | |
michael@0 | 14 | # dependencies |
michael@0 | 15 | with open('requirements.txt') as f: |
michael@0 | 16 | deps = f.read().splitlines() |
michael@0 | 17 | |
michael@0 | 18 | # Requirements.txt contains a pointer to the local copy of marionette_transport; |
michael@0 | 19 | # if we're installing using setup.py, handle this locally or replace with a valid |
michael@0 | 20 | # pypi package reference. |
michael@0 | 21 | deps = [x for x in deps if 'transport' not in x] |
michael@0 | 22 | transport_dir = os.path.join(os.path.dirname(__file__), os.path.pardir, 'transport') |
michael@0 | 23 | method = [x for x in sys.argv if x in ('develop', 'install')] |
michael@0 | 24 | if os.path.exists(transport_dir) and method: |
michael@0 | 25 | cmd = [sys.executable, 'setup.py', method[0]] |
michael@0 | 26 | import subprocess |
michael@0 | 27 | try: |
michael@0 | 28 | subprocess.check_call(cmd, cwd=transport_dir) |
michael@0 | 29 | except subprocess.CalledProcessError: |
michael@0 | 30 | print "Error running setup.py in %s" % directory |
michael@0 | 31 | raise |
michael@0 | 32 | else: |
michael@0 | 33 | deps += ['marionette-transport == 0.1'] |
michael@0 | 34 | |
michael@0 | 35 | setup(name='marionette_client', |
michael@0 | 36 | version=version, |
michael@0 | 37 | description="Marionette test automation client", |
michael@0 | 38 | long_description=description, |
michael@0 | 39 | classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
michael@0 | 40 | keywords='mozilla', |
michael@0 | 41 | author='Jonathan Griffin', |
michael@0 | 42 | author_email='jgriffin@mozilla.com', |
michael@0 | 43 | url='https://wiki.mozilla.org/Auto-tools/Projects/Marionette', |
michael@0 | 44 | license='MPL', |
michael@0 | 45 | packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
michael@0 | 46 | package_data={'marionette': ['touch/*.js']}, |
michael@0 | 47 | include_package_data=True, |
michael@0 | 48 | zip_safe=False, |
michael@0 | 49 | entry_points=""" |
michael@0 | 50 | # -*- Entry points: -*- |
michael@0 | 51 | [console_scripts] |
michael@0 | 52 | marionette = marionette.runtests:cli |
michael@0 | 53 | """, |
michael@0 | 54 | install_requires=deps, |
michael@0 | 55 | ) |
michael@0 | 56 |