You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
I cannot find where is pyproject_examples module.
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyproject-parser-0.4.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyproject-parser-0.4.3-2.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.0Test session started at 16:42:58rootdir: /home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.3, configfile: tox.iniplugins: datadir-1.3.1, regressions-2.3.1collected 54 items / 4 errors================================================================================== ERRORS ==================================================================================____________________________________________________________________ ERROR collecting tests/test_cli.py ____________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.3/tests/test_cli.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_cli.py:12: in <module> from pyproject_examples import valid_buildsystem_config, valid_pep621_configE ModuleNotFoundError: No module named 'pyproject_examples'__________________________________________________________________ ERROR collecting tests/test_config.py ___________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.3/tests/test_config.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_config.py:11: in <module> from pyproject_examples import (E ModuleNotFoundError: No module named 'pyproject_examples'__________________________________________________________________ ERROR collecting tests/test_dumping.py __________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.3/tests/test_dumping.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_dumping.py:5: in <module> from pyproject_examples.example_configs import COMPLETE_A, COMPLETE_A_WITH_FILES, COMPLETE_B, COMPLETE_PROJECT_AE ModuleNotFoundError: No module named 'pyproject_examples'______________________________________________________________ ERROR collecting tests/test_pyproject_class.py ______________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.3/tests/test_pyproject_class.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_pyproject_class.py:9: in <module> from pyproject_examples import (E ModuleNotFoundError: No module named 'pyproject_examples'============================================================================= warnings summary =============================================================================../../../../../usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1252 /usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: timeout self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html========================================================================= short test summary info ==========================================================================ERROR tests/test_cli.pyERROR tests/test_config.pyERROR tests/test_dumping.pyERROR tests/test_pyproject_class.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!======================================================================= 1 warning, 4 errors in 0.28s =======================================================================
The text was updated successfully, but these errors were encountered:
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
build
with--no-isolation
I'm using during all processes only locally installed modulesI cannot find where is
pyproject_examples
module.Here is pytest output:
The text was updated successfully, but these errors were encountered: