forked from mozilla/mozregression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (69 loc) · 2.36 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
79
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) and sys.version_info < (3, 5)):
sys.exit("mozregression requires either python 2.7 or >= 3.5")
# we pin these dependencies in the requirements files -- all of these
# should be python 3 compatible
DEPENDENCIES = [
'beautifulsoup4>=4.7.1',
'colorama>=0.4.1',
'configobj>=5.0.6',
'mozdevice>=3.0.1',
'mozfile>=2.0.0',
'mozinfo>=1.1.0',
'mozinstall>=2.0.0',
'mozlog>=4.0',
'mozprocess>=1.0.0',
'mozprofile>=2.2.0',
'mozrunner>=7.4.0',
'mozversion>=2.1.0',
'redo>=2.0.2',
'requests[security]>=2.21.0',
'six>=1.12.0',
'taskcluster>=6.0.0',
]
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='[email protected]',
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'
])