зеркало из https://github.com/mozilla/gecko-dev.git
40 строки
1.2 KiB
Python
40 строки
1.2 KiB
Python
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', '__init__.py'), re.M)[0]
|
|
|
|
|
|
setup(name='marionette_client',
|
|
version=get_version(),
|
|
description="Marionette test automation client",
|
|
long_description='See http://marionette-client.readthedocs.org/',
|
|
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
keywords='mozilla',
|
|
author='Jonathan Griffin',
|
|
author_email='jgriffin@mozilla.com',
|
|
url='https://wiki.mozilla.org/Auto-tools/Projects/Marionette',
|
|
license='MPL',
|
|
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
|
|
package_data={'marionette': ['touch/*.js']},
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
entry_points="""
|
|
# -*- Entry points: -*-
|
|
[console_scripts]
|
|
marionette = marionette.runtests:cli
|
|
""",
|
|
install_requires=read('requirements.txt').splitlines(),
|
|
)
|