tor-browser

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

setup.py (2265B)


      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 import os
      6 import re
      7 
      8 from setuptools import find_packages, setup
      9 
     10 THIS_DIR = os.path.dirname(os.path.realpath(__name__))
     11 
     12 
     13 def read(*parts):
     14    with open(os.path.join(THIS_DIR, *parts)) as f:
     15        return f.read()
     16 
     17 
     18 def get_version():
     19    return re.findall(
     20        r'__version__ = "([\d\.]+)"', read("marionette_harness", "__init__.py"), re.M
     21    )[0]
     22 
     23 
     24 setup(
     25    name="marionette-harness",
     26    version=get_version(),
     27    description="Marionette test automation harness",
     28    long_description=open("README.rst").read(),
     29    # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
     30    classifiers=[
     31        "Development Status :: 5 - Production/Stable",
     32        "Intended Audience :: Developers",
     33        "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
     34        "Operating System :: MacOS :: MacOS X",
     35        "Operating System :: Microsoft :: Windows",
     36        "Operating System :: POSIX",
     37        "Topic :: Software Development :: Quality Assurance",
     38        "Topic :: Software Development :: Testing",
     39        "Topic :: Utilities",
     40        "Programming Language :: Python",
     41        "Programming Language :: Python :: 3 :: Only",
     42        "Programming Language :: Python :: 3.8",
     43        "Programming Language :: Python :: 3.9",
     44        "Programming Language :: Python :: 3.10",
     45        "Programming Language :: Python :: 3.11",
     46        "Programming Language :: Python :: 3.12",
     47        "Programming Language :: Python :: 3.13",
     48    ],
     49    keywords="mozilla",
     50    author="Auto-tools",
     51    author_email="dev-webdriver@mozilla.org",
     52    url="https://wiki.mozilla.org/Auto-tools/Projects/Marionette",
     53    license="Mozilla Public License 2.0 (MPL 2.0)",
     54    packages=find_packages(),
     55    # Needed to include package data as specified in MANIFEST.in
     56    include_package_data=True,
     57    install_requires=read("requirements.txt").splitlines(),
     58    zip_safe=False,
     59    entry_points="""
     60      # -*- Entry points: -*-
     61      [console_scripts]
     62      marionette = marionette_harness.runtests:cli
     63      """,
     64    python_requires=">=3.8",
     65 )