mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 21:46:17 +03:00
Fix slow numpy/scipy installs on pypy3
This commit is contained in:
parent
150fd1fed3
commit
0d80f4834a
|
@ -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
11
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user