-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
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- 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-utils-2.6.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-utils-2.6.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -p no:randomly
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-utils-2.6.3, configfile: pytest.ini
plugins: cov-3.0.0, flake8-1.0.7
collected 20 items
_python_utils_tests/test_import.py ...... [ 30%]
_python_utils_tests/test_python_utils.py . [ 35%]
python_utils/converters.py ...... [ 65%]
python_utils/decorators.py . [ 70%]
python_utils/formatters.py .. [ 80%]
python_utils/logger.py . [ 85%]
python_utils/time.py ... [100%]
---------- coverage: platform linux, python 3.8.12-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
------------------------------------------------------------------------
python_utils/__about__.py 6 0 0 0 100%
python_utils/__init__.py 0 0 0 0 100%
python_utils/compat.py 0 0 0 0 100%
python_utils/converters.py 80 0 42 0 100%
python_utils/decorators.py 6 0 2 0 100%
python_utils/formatters.py 29 0 20 0 100%
python_utils/import_.py 32 0 22 0 100%
python_utils/logger.py 34 0 4 0 100%
python_utils/terminal.py 1 0 0 0 100%
python_utils/time.py 45 1 18 0 98% 167
------------------------------------------------------------------------
TOTAL 233 1 108 0 99%
Coverage HTML written to dir htmlcov
FAIL Required test coverage of 100.0% not reached. Total coverage: 99.71%
============================================================================ 20 passed in 5.23s ============================================================================Metadata
Metadata
Assignees
Labels
No labels