Closed
Description
- I have marked all applicable categories:
- exception-raising bug
- visual output bug
- I have visited the [source website], and in particular
read the [known issues] - I have searched through the [issue tracker] for duplicates
- I have mentioned version numbers, operating system and
environment, where applicable:
I'm packaging 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> using
installer
module - run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
- build is performed in env which is
cut off from access to the public network
(pytest is executed with-m "not network"
)
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-tqdm-4.67.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-tqdm-4.67.0-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network' -q --deselect tests/tests_perf.py::test_lock_args
============================= test session starts ==============================
platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/tkloczko/rpmbuild/BUILD/tqdm-4.67.0
configfile: pyproject.toml
testpaths: tests
plugins: asyncio-0.23.8, timeout-2.3.1
asyncio: mode=strict
timeout: 30.0s
timeout method: signal
timeout func_only: False
collected 150 items / 1 deselected / 149 selected
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 292, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 345, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/logging.py", line 794, in pytest_collection
INTERNALERROR> return (yield)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/warnings.py", line 120, in pytest_collection
INTERNALERROR> return (yield)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 124, in _multicall
INTERNALERROR> teardown.send(result) # type: ignore[union-attr]
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1425, in pytest_collection
INTERNALERROR> self._validate_config_options()
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1447, in _validate_config_options
INTERNALERROR> self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1486, in _warn_or_fail_if_strict
INTERNALERROR> self.issue_config_time_warning(PytestConfigWarning(message), stacklevel=3)
INTERNALERROR> File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1538, in issue_config_time_warning
INTERNALERROR> warnings.warn(warning, stacklevel=stacklevel)
INTERNALERROR> pytest.PytestConfigWarning: Unknown config option: asyncio_default_fixture_loop_scope
============================ 1 deselected in 0.76s =============================
List of installed modules in build env:
Package Version
------------------ -----------
build 1.2.2.post1
click 8.1.7
cloudpickle 3.1.0
dask 2024.6.2
distro 1.9.0
exceptiongroup 1.1.3
fsspec 2024.10.0
importlib_metadata 8.5.0
iniconfig 2.0.0
installer 0.7.0
locket 1.0.0
markdown-it-py 3.0.0
mdurl 0.1.2
numpy 1.26.4
packaging 24.0
pandas 2.2.1
partd 1.4.1
pluggy 1.5.0
Pygments 2.18.0
pyproject_hooks 1.2.0
pytest 8.2.2
pytest-asyncio 0.23.8
pytest-timeout 2.3.1
python-dateutil 2.9.0.post0
pytz 2024.2
PyYAML 6.0.2
rich 13.7.1
setuptools 75.1.0
setuptools-scm 8.1.0
tokenize_rt 6.1.0
tomli 2.0.1
toolz 1.0.0
wheel 0.44.0
zipp 3.20.2
Please let me know if you need more details or want me to perform some diagnostics.
Metadata
Metadata
Assignees
Type
Projects
Status
Done