From 33894c2fef3e006569fcfa95182d76d274989156 Mon Sep 17 00:00:00 2001 From: Armen Zambrano Date: Mon, 18 Apr 2016 16:01:44 -0400 Subject: [PATCH] Give mozci the ability to run `python setup.py test` to run tests (#463) Up until now, the best way to run tests and work on them was to run tox once, active its virtualenv and then start making changes to the tests and run pytest. With these changes you can now run `python setup.py test` inside of a virtualenv and it will get all the packages you need plus all the packages required to run the tests. In other words, you don't need to run tox to run the tests. However, we will keep tox since it allows for multiple configurations and it fits well with the Travis automation jobs. --- setup.cfg | 2 ++ setup.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b7e4789 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[aliases] +test=pytest diff --git a/setup.py b/setup.py index 24c81c9..cff8426 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,8 @@ name='mozci', version='0.32.1', packages=find_packages(), - install_requires=required, + install_requires=required + ['pytest-runner'], + tests_require=required + ['mock', 'pytest'], # Meta-data for upload to PyPI author='Armen Zambrano G.',