-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
11 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
from setuptools import setup, find_packages | ||
from setuptools.extension import Extension | ||
from setuptools.command.test import test as TestCommand | ||
import numpy as np | ||
from Cython.Build import cythonize | ||
|
||
|
@@ -37,37 +36,6 @@ | |
__email__ = "[email protected]" | ||
|
||
|
||
# derived from https://docs.pytest.org/en/3.8.0/goodpractices.html | ||
class PyTest(TestCommand): | ||
user_options = [("pytest-args=", "a", "Arguments to pass to pytest")] | ||
|
||
def initialize_options(self): | ||
TestCommand.initialize_options(self) | ||
self.pytest_args = "" | ||
|
||
def run_tests(self): | ||
try: | ||
import numpy | ||
try: | ||
# NumPy 1.14 changed repr output breaking our doctests, | ||
# request the legacy 1.13 style | ||
numpy.set_printoptions(legacy="1.13") | ||
except TypeError: | ||
# Old Numpy, output should be fine as it is :) | ||
# TypeError: set_printoptions() got an unexpected | ||
# keyword argument 'legacy' | ||
pass | ||
except ImportError: | ||
numpy = None | ||
|
||
import shlex | ||
|
||
# import here, cause outside the eggs aren't loaded | ||
import pytest | ||
errno = pytest.main(shlex.split(self.pytest_args)) | ||
sys.exit(errno) | ||
|
||
|
||
long_description = """BIOM: Biological Observation Matrix | ||
http://www.biom-format.org | ||
|
@@ -152,7 +120,6 @@ def run_tests(self): | |
'anndata': ["anndata"], | ||
}, | ||
classifiers=classifiers, | ||
cmdclass={"pytest": PyTest}, | ||
entry_points=''' | ||
[console_scripts] | ||
biom=biom.cli:cli | ||
|