You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix>
run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-benchmark-4.0.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-benchmark-4.0.0-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra=========================================================================== test session starts ============================================================================platform linux -- Python 3.8.15, pytest-7.1.3, pluggy-1.0.0benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-benchmark-4.0.0, configfile: pytest.ini, testpaths: testsplugins: benchmark-4.0.0, forked-1.4.0, xdist-2.5.0, aspectlib-1.5.2collected 225 items / 2 errors================================================================================== ERRORS ==================================================================================___________________________________________________________ ERROR collecting tests/test_elasticsearch_storage.py ___________________________________________________________/usr/lib/python3.8/site-packages/requests/__init__.py:105: in <module> check_compatibility(/usr/lib/python3.8/site-packages/requests/__init__.py:84: in check_compatibility assert (2, 0, 0) <= (major, minor, patch) < (3, 0, 0)E AssertionErrorDuring handling of the above exception, another exception occurred:tests/test_elasticsearch_storage.py:9: in <module> import elasticsearch/usr/lib/python3.8/site-packages/elasticsearch/__init__.py:24: in <module> from elastic_transport import __version__ as _elastic_transport_version/usr/lib/python3.8/site-packages/elastic_transport/__init__.py:22: in <module> from ._async_transport import AsyncTransport as AsyncTransport/usr/lib/python3.8/site-packages/elastic_transport/_async_transport.py:41: in <module> from ._node import AiohttpHttpNode, BaseAsyncNode/usr/lib/python3.8/site-packages/elastic_transport/_node/__init__.py:21: in <module> from ._http_requests import RequestsHttpNode/usr/lib/python3.8/site-packages/elastic_transport/_node/_http_requests.py:39: in <module> import requests/usr/lib/python3.8/site-packages/requests/__init__.py:109: in <module> warnings.warn(E requests.exceptions.RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a supported version!___________________________________________________________ ERROR collecting tests/test_elasticsearch_storage.py ___________________________________________________________/usr/lib/python3.8/site-packages/requests/__init__.py:105: in <module> check_compatibility(/usr/lib/python3.8/site-packages/requests/__init__.py:84: in check_compatibility assert (2, 0, 0) <= (major, minor, patch) < (3, 0, 0)E AssertionErrorDuring handling of the above exception, another exception occurred:tests/test_elasticsearch_storage.py:9: in <module> import elasticsearch/usr/lib/python3.8/site-packages/elasticsearch/__init__.py:24: in <module> from elastic_transport import __version__ as _elastic_transport_version/usr/lib/python3.8/site-packages/elastic_transport/__init__.py:22: in <module> from ._async_transport import AsyncTransport as AsyncTransport/usr/lib/python3.8/site-packages/elastic_transport/_async_transport.py:41: in <module> from ._node import AiohttpHttpNode, BaseAsyncNode/usr/lib/python3.8/site-packages/elastic_transport/_node/__init__.py:21: in <module> from ._http_requests import RequestsHttpNode/usr/lib/python3.8/site-packages/elastic_transport/_node/_http_requests.py:39: in <module> import requests/usr/lib/python3.8/site-packages/requests/__init__.py:109: in <module> warnings.warn(E requests.exceptions.RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a supported version!========================================================================= short test summary info ==========================================================================ERROR tests/test_elasticsearch_storage.py - requests.exceptions.RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a...ERROR tests/test_elasticsearch_storage.py - requests.exceptions.RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!============================================================================ 2 errors in 0.65s =============================================================================
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesHere is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: