testing/marionette/client/setup.py
author Narcis Beleuzu <nbeleuzu@mozilla.com>
Sat, 19 Jun 2021 07:06:41 +0300
changeset 583818 668013f3e2015d408903d31f55d2ffdd08137bfd
parent 554551 994ae8e4833c90447d91f0e26a718573cff5a514
permissions -rw-r--r--
Backed out 2 changesets (bug 1701770) for causing tp5n crashes. Backed out changeset 2351f158ef88 (bug 1701770) Backed out changeset 4af044ed9208 (bug 1701770)

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

import os
import re
from setuptools import setup, find_packages

THIS_DIR = os.path.dirname(os.path.realpath(__name__))


def read(*parts):
    with open(os.path.join(THIS_DIR, *parts)) as f:
        return f.read()


def get_version():
    return re.findall(
        '__version__ = "([\d\.]+)"', read("marionette_driver", "__init__.py"), re.M
    )[0]


setup(
    name="marionette_driver",
    version=get_version(),
    description="Marionette Driver",
    long_description="See https://firefox-source-docs.mozilla.org/python/marionette_driver.html",
    # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
        "Topic :: Software Development :: Quality Assurance",
        "Topic :: Software Development :: Testing",
        "Topic :: Utilities",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
    ],
    keywords="mozilla",
    author="Auto-tools",
    author_email="tools-marionette@lists.mozilla.org",
    url="https://wiki.mozilla.org/Auto-tools/Projects/Marionette",
    license="MPL",
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=read("requirements.txt").splitlines(),
)