| |
@@ -17,11 +17,12 @@
|
| |
#
|
| |
# Author: Adam Williamson <awilliam@redhat.com>
|
| |
|
| |
- import os
|
| |
import sys
|
| |
- from setuptools import setup, find_packages
|
| |
+
|
| |
+ from setuptools import setup
|
| |
from setuptools.command.test import test as TestCommand
|
| |
|
| |
+
|
| |
class PyTest(TestCommand):
|
| |
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
|
| |
|
| |
@@ -31,7 +32,7 @@
|
| |
self.test_suite = 'tests'
|
| |
|
| |
def run_tests(self):
|
| |
- #import here, cause outside the eggs aren't loaded
|
| |
+ # import here, cause outside the eggs aren't loaded
|
| |
import pytest
|
| |
errno = pytest.main(self.pytest_args.split())
|
| |
sys.exit(errno)
|
| |
fedfind
to install.requires