forked from mozilla/mozregression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (68 loc) · 2.32 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import sys
from setuptools import setup
from mozregression import __version__
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""
Run py.test with the "python setup.py test command"
"""
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ''
def finalize_options(self):
TestCommand.finalize_options(self)
self.pytest_args += (' ' + self.distribution.test_suite)
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
if sys.version_info < (2, 7) or sys.version_info > (3, 0):
sys.exit("mozregression currently require python >=2.7 and <3.")
DEPENDENCIES = [
'mozfile >= 1.2',
'mozprofile >= 0.28',
'mozrunner >= 6.11',
'BeautifulSoup >= 3.0.4',
'mozinstall >= 1.12',
'mozinfo >= 0.9',
'mozlog >= 3.0',
'mozversion >= 1.3',
# require requests <3 because taskcluster needs it.
# else there is install errors, see
# https://bugzilla.mozilla.org/show_bug.cgi?id=1212170
'requests>=2.4.3,<3',
'redo',
'mozdevice >= 0.47',
'taskcluster>=0.0.32',
'colorama',
'configobj',
]
desc = """Regression range finder for Mozilla nightly builds"""
long_desc = """Regression range finder for Mozilla nightly builds.
For more information see the mozregression website:
http://mozilla.github.io/mozregression/"""
setup(name="mozregression",
version=__version__,
description=desc,
long_description=long_desc,
author='Mozilla Automation and Tools Team',
author_email='tools@lists.mozilla.org',
url='http://github.com/mozilla/mozregression',
license='MPL 1.1/GPL 2.0/LGPL 2.1',
packages=['mozregression'],
entry_points="""
[console_scripts]
mozregression = mozregression.main:main
""",
platforms=['Any'],
install_requires=DEPENDENCIES,
tests_require=['mock', 'pytest', 'pytest-mock'],
test_suite='tests',
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: OS Independent'
])