-
Notifications
You must be signed in to change notification settings - Fork 106
/
setup.py
76 lines (66 loc) · 2.21 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
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',
'mozprocess==0.26',
'mozprofile==1.1.0',
'mozrunner==7.1.0',
'BeautifulSoup==3.2.1',
'mozinstall==1.16.0',
'mozinfo==0.10',
'mozlog==3.3',
'mozversion==1.4',
'requests[security]==2.19.1',
'redo==1.6',
'mozdevice==1.1.5',
'taskcluster==0.3.4',
'colorama==0.3.7',
'configobj==5.0.6',
]
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'
])