mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-26 05:31:27 +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,6 +133,7 @@ def test_container(container: Container = Provide[Container]): | ||||||
| 
 | 
 | ||||||
| # Import tests | # Import tests | ||||||
| 
 | 
 | ||||||
|  | if 'pypy' not in sys.version.lower(): | ||||||
|     import numpy  # noqa |     import numpy  # noqa | ||||||
|     from numpy import *  # noqa |     from numpy 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