-
Notifications
You must be signed in to change notification settings - Fork 43
Open
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
buildwith--no-isolationI'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>
I see that files in tests/ are using unittest whic pytest can handle if test suite is correctly written.
Nevertheless IMPO it woiuld be better to migrate to pytest because unittest is not maintained (this is why +95% of all modules test suite are using already pytest).
Here is pytest output:
Details
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sshpubkeys-3.3.1-14.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sshpubkeys-3.3.1-14.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
==================================================================== test session starts =====================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-sshpubkeys-3.3.1
plugins: subtests-0.7.0, timeout-2.1.0
collected 0 items
=================================================================== no tests ran in 0.07s ====================================================================Metadata
Metadata
Assignees
Labels
No labels