Closed as not planned
Description
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-coverage-6.3.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-coverage-6.3.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 266, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/tkloczko/rpmbuild/BUILD/coveragepy-6.3.3/tests/conftest.py", line 89, in pytest_sessionstart
INTERNALERROR> assert pth_dir
INTERNALERROR> AssertionError: assert None
List of module sinstalled in build env
Package Version
----------------------------- -----------------
alabaster 0.7.12
attrs 21.4.0
Babel 2.10.1
Brlapi 0.8.3
build 0.7.0
charset-normalizer 2.0.12
codespell 2.1.0
cycler 0.11.0
distlib 0.3.4
distro 1.7.0
docutils 0.17.1
execnet 1.9.0
extras 1.0.0
filelock 3.6.0
fixtures 4.0.0
flaky 3.7.0
fonttools 4.33.3
gpg 1.17.1-unknown
idna 3.3
imagesize 1.3.0
importlib-metadata 4.11.3
importlib-resources 5.7.0
iniconfig 1.1.1
Jinja2 3.1.1
kiwisolver 1.3.2
libcomps 0.1.18
louis 3.21.0
MarkupSafe 2.1.1
matplotlib 3.5.1
numpy 1.22.3
olefile 0.46
packaging 21.3
pbr 5.8.1
pep517 0.12.0
Pillow 9.1.0
pip 22.0.4
platformdirs 2.5.2
pluggy 1.0.0
py 1.11.0
pyenchant 3.2.2
Pygments 2.12.0
PyGObject 3.42.1
pyparsing 3.0.9
pytest 7.1.2
pytest-forked 1.4.0
pytest-xdist 2.5.0
python-dateutil 2.8.2
pytz 2022.1
requests 2.27.1
rpm 4.17.0
setuptools 62.2.0
six 1.16.0
snowballstemmer 2.2.0
Sphinx 4.5.0
sphinx-rst-builder 0.0.3
sphinx-rtd-theme 1.0.0
sphinx-tabs 3.3.1
sphinxcontrib-applehelp 1.0.2.dev20220410
sphinxcontrib-devhelp 1.0.2.dev20220410
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1.dev20220410
sphinxcontrib-qthelp 1.0.3.dev20220410
sphinxcontrib-restbuilder 0.3
sphinxcontrib-serializinghtml 1.1.5
sphinxcontrib-spelling 7.3.2
testtools 2.5.0
toml 0.10.2
tomli 2.0.1
typing_extensions 4.2.0
unittest-mixins 1.6
urllib3 1.26.9
virtualenv 20.13.4
wheel 0.37.1
zipp 3.8.0