tor-browser

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

setup.py (1483B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 
      6 import os
      7 import re
      8 
      9 from setuptools import find_packages, setup
     10 
     11 THIS_DIR = os.path.dirname(os.path.realpath(__name__))
     12 
     13 
     14 def read(*parts):
     15    with open(os.path.join(THIS_DIR, *parts)) as f:
     16        return f.read()
     17 
     18 
     19 def get_version():
     20    return re.findall(
     21        r'__version__ = "([\d\.]+)"', read("firefox_ui_harness", "__init__.py"), re.M
     22    )[0]
     23 
     24 
     25 long_description = """Custom Marionette runner classes and entry scripts for Firefox Desktop
     26 specific Marionette tests.
     27 """
     28 
     29 setup(
     30    name="firefox-ui-harness",
     31    version=get_version(),
     32    description="Firefox UI Harness",
     33    long_description=long_description,
     34    classifiers=[
     35        "Programming Language :: Python :: 3",
     36        "Programming Language :: Python :: 3.5",
     37        "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
     38    ],
     39    # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
     40    keywords="mozilla",
     41    author="DevTools",
     42    author_email="dev-webdriver@mozilla.org",
     43    license="MPL",
     44    packages=find_packages(),
     45    include_package_data=True,
     46    zip_safe=False,
     47    install_requires=read("requirements.txt").splitlines(),
     48    entry_points="""
     49        [console_scripts]
     50        firefox-ui-functional = firefox_ui_harness.cli_functional:cli
     51      """,
     52 )