Open kloczek opened 8 months ago
Sorry only finally looking at this now. Since I don't know anything about RPM packaging and how builds/tests are done with it, this is all very much gobbledygook to me. Did you work out anything else about this to resolve it or understand what may need to change in wrapt?
This issue has nothing to to with rpm or packaging methodology.
You are using some PyPA build package though, which I have never encountered before and so the errors don't mean anything to me. So any further information you worked out about this will help either way.
Although technically your problem is actually then with later step of running pytest
. FWIW, I always run tests under tox
and never use pytest
directly. The current test configuration for tox
was contributed by others, so don't know if there is anything special being done which may means doesn't work outside of tox
.
In build env ae installed ONLY build dependencies so it does not make to run pytest under tox. Build env is created from scratch to build only one package and after that is never reused.. Why pytest may not work without tox if in in both cases will be installed exactly the same modules? I have already packages +1.2k python modules and on NONE of the cases pytest has been working differently (with and without tox)
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
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)Looks like pytest 8.1.0 fails (I'm using python 3.9).
Here is pytest output:
```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-wrapt-1.16.0-4.fc36.x86_64/usr/lib64/python3.9/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-wrapt-1.16.0-4.fc36.x86_64/usr/lib/python3.9/site-packages + /usr/bin/pytest -ra -m 'not network' Traceback (most recent call last): File "/usr/bin/pytest", line 8, inPlease let me know if you need more details or want me to perform some diagnostics.