Fix slow numpy/scipy installs on pypy3

This commit is contained in:
Roman Mogylatov 2021-03-08 16:28:45 -05:00
parent 150fd1fed3
commit 0d80f4834a
2 changed files with 19 additions and 6 deletions

View File

@ -1,6 +1,7 @@
"""Test module for wiring.""" """Test module for wiring."""
from decimal import Decimal from decimal import Decimal
import sys
from typing import Callable from typing import Callable
from dependency_injector import providers from dependency_injector import providers
@ -132,11 +133,12 @@ def test_container(container: Container = Provide[Container]):
# Import tests # Import tests
import numpy # noqa if 'pypy' not in sys.version.lower():
from numpy import * # noqa import numpy # noqa
from numpy import * # noqa
import scipy # noqa import scipy # noqa
from scipy import * # noqa from scipy import * # noqa
import builtins # noqa import builtins # noqa
from builtins import * # noqa from builtins import * # noqa

11
tox.ini
View File

@ -64,6 +64,17 @@ extras=
commands= commands=
python -m unittest discover -s tests/unit -p test_*_py2_py3.py python -m unittest discover -s tests/unit -p test_*_py2_py3.py
[testenv:pypy3]
deps=
httpx
fastapi
extras=
yaml
flask
commands=
python -m unittest discover -s tests/unit -p test_*_py2_py3.py
[testenv:pylint] [testenv:pylint]
deps= deps=
pylint pylint