tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

setup.py (2328B)


      1 import glob
      2 import os
      3 import sys
      4 import textwrap
      5 
      6 from setuptools import setup, find_packages
      7 
      8 here = os.path.dirname(__file__)
      9 
     10 PACKAGE_NAME = 'wptrunner'
     11 PACKAGE_VERSION = '1.14'
     12 
     13 # Dependencies
     14 with open(os.path.join(here, "requirements.txt")) as f:
     15    deps = f.read().splitlines()
     16 
     17 # Browser-specific requirements
     18 requirements_files = glob.glob("requirements_*.txt")
     19 
     20 profile_dest = None
     21 dest_exists = False
     22 
     23 setup(name=PACKAGE_NAME,
     24      version=PACKAGE_VERSION,
     25      description="Harness for running the W3C web-platform-tests against various products",
     26      author='Mozilla Automation and Testing Team',
     27      author_email='tools@lists.mozilla.org',
     28      license='MPL 2.0',
     29      packages=find_packages(exclude=["tests", "metadata", "prefs"]),
     30      entry_points={
     31          'console_scripts': [
     32              'wptrunner = wptrunner.wptrunner:main',
     33              'wptupdate = wptrunner.update:main',
     34          ]
     35      },
     36      zip_safe=False,
     37      platforms=['Any'],
     38      classifiers=['Development Status :: 4 - Beta',
     39                   'Environment :: Console',
     40                   'Intended Audience :: Developers',
     41                   'License :: OSI Approved :: BSD License',
     42                   'Operating System :: OS Independent'],
     43      package_data={"wptrunner": ["executors/testharness_marionette.js",
     44                                  "executors/testharness_webdriver.js",
     45                                  "executors/reftest.js",
     46                                  "executors/reftest-wait.js",
     47                                  "testharnessreport.js",
     48                                  "testharness_runner.html",
     49                                  "wptrunner.default.ini",
     50                                  "browsers/sauce_setup/*",
     51                                  "prefs/*"]},
     52      include_package_data=True,
     53      data_files=[("requirements", requirements_files)],
     54      )
     55 
     56 if "install" in sys.argv:
     57    path = os.path.relpath(os.path.join(sys.prefix, "requirements"), os.curdir)
     58    print(textwrap.fill("""In order to use with one of the built-in browser
     59 products, you will need to install the extra dependencies. These are provided
     60 as requirements_[name].txt in the %s directory and can be installed using
     61 e.g.""" % path, 80))
     62 
     63    print("""
     64 
     65 pip install -r %s/requirements_firefox.txt
     66 """ % path)