Closed kloczek closed 3 years ago
It looks like the 6 tests are passed fine, but there is a failure in "get_requires_for_build_wheel", which is not related to this project.
So pep517 has some issue?
I don't know how pep517 gets involved here, i.e. why the pytest runner tries to use it.
Note that this projects uses unittest
and running the test suite is done by running
python tests/nest_test.py
or
python setup.py test
from the main directory. This way the pytest runner is not needed.
Looks like with new pep517 everything is OK.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nest_asyncio-1.5.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nest_asyncio-1.5.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=2676331846
rootdir: /home/tkloczko/rpmbuild/BUILD/nest_asyncio-1.5.1
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, xprocess-0.18.1, black-0.3.12, checkdocs-2.7.1, anyio-3.3.0, Faker-8.11.0, asyncio-0.15.1, trio-0.7.0, httpbin-1.0.0, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0
collected 9 items
tests/nest_test.py .... [ 57%]
. . [ 71%]
tests/nest_test.py .. [100%]
============================================================================ 7 passed in 7.23s =============================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
Closing.
Just normal build, install and test cycle used on building package from non-root account:
. F [ 14%] tests/nest_test.py ...... [100%]
================================================================================= FAILURES ================================================================================= test session
cls = <class '_pytest.runner.CallInfo'>, func = <function call_runtest_hook.. at 0x7f589f0019d0>, when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
/usr/lib/python3.8/site-packages/_pytest/runner.py:311:
/usr/lib/python3.8/site-packages/_pytest/runner.py:255:
self = <_HookCaller 'pytest_runtest_call'>, args = (), kwargs = {'item':}, notincall = set()
/usr/lib/python3.8/site-packages/pluggy/hooks.py:286:
self = <_pytest.config.PytestPluginManager object at 0x7f58a5e1e250>, hook = <_HookCaller 'pytest_runtest_call'> methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...=None>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f589f402220>>, ...] kwargs = {'item':}
/usr/lib/python3.8/site-packages/pluggy/manager.py:93:
hook = <_HookCaller 'pytest_runtest_call'> methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...=None>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f589f402220>>, ...] kwargs = {'item':}
/usr/lib/python3.8/site-packages/pluggy/manager.py:84:
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...=None>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f589f402220>>, ...] caller_kwargs = {'item':}, firstresult = False
/usr/lib/python3.8/site-packages/pluggy/callers.py:208:
self = <pluggy.callers._Result object at 0x7f589efe3a00>
/usr/lib/python3.8/site-packages/pluggy/callers.py:80:
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...=None>>, <HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin object at 0x7f589f402220>>, ...] caller_kwargs = {'item':}, firstresult = False
/usr/lib/python3.8/site-packages/pluggy/callers.py:187:
item =
/usr/lib/python3.8/site-packages/_pytest/runner.py:170:
item =
/usr/lib/python3.8/site-packages/_pytest/runner.py:162:
self =
/usr/lib/python3.8/site-packages/pytest_checkdocs/init.py:29:
self =
/usr/lib/python3.8/site-packages/pytest_checkdocs/init.py:60:
root = '.'
/usr/lib/python3.8/site-packages/pep517/meta.py:71:
builder = functools.partial(<function build at 0x7f58a2b64700>, source_dir='.', system={'requires': ['setuptools>=42', 'wheel', 'setuptools_scm[toml]>=3.4.3'], 'build-backend': 'setuptools.build_meta'})
/usr/lib/python3.8/site-packages/pep517/meta.py:58:
source_dir = '.', dest = '/tmp/tmpaotef6ft', system = {'build-backend': 'setuptools.build_meta', 'requires': ['setuptools>=42', 'wheel', 'setuptools_scm[toml]>=3.4.3']}
/usr/lib/python3.8/site-packages/pep517/meta.py:53:
hooks = <pep517.wrappers.Pep517HookCaller object at 0x7f589ef11130>, env = <pep517.envbuild.BuildEnvironment object at 0x7f589ef114c0>, dest = '/tmp/tmpaotef6ft'
/usr/lib/python3.8/site-packages/pep517/meta.py:28:
self = <pep517.wrappers.Pep517HookCaller object at 0x7f589ef11130>, config_settings = {}
/usr/lib/python3.8/site-packages/pep517/wrappers.py:168:
self = <pep517.wrappers.Pep517HookCaller object at 0x7f589ef11130>, hook_name = 'get_requires_for_build_wheel', kwargs = {'config_settings': {}}
/usr/lib/python3.8/site-packages/pep517/wrappers.py:265:
cmd = ['/usr/bin/python3', '/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py', 'get_requires_for_build_wheel', '/tmp/tmpdckmn8mo'] cwd = '/home/tkloczko/rpmbuild/BUILD/nest_asyncio-1.5.1', extra_environ = {'PEP517_BUILD_BACKEND': 'setuptools.build_meta'}
/usr/lib/python3.8/site-packages/pep517/wrappers.py:75:
timeout = None, popenargs = (['/usr/bin/python3', '/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py', 'get_requires_for_build_wheel', '/tmp/tmpdckmn8mo'],) kwargs = {'cwd': '/home/tkloczko/rpmbuild/BUILD/nest_asyncio-1.5.1', 'env': {'AR': '/usr/bin/gcc-ar', 'BASH_FUNC_which%%': '() ...sh-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none', ...}, 'stderr': -2}
/usr/lib64/python3.8/subprocess.py:415:
input = None, capture_output = False, timeout = None, check = True popenargs = (['/usr/bin/python3', '/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py', 'get_requires_for_build_wheel', '/tmp/tmpdckmn8mo'],) kwargs = {'cwd': '/home/tkloczko/rpmbuild/BUILD/nest_asyncio-1.5.1', 'env': {'AR': '/usr/bin/gcc-ar', 'BASH_FUNC_which%%': '() ...-fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none', ...}, 'stderr': -2, 'stdout': -1} process = <subprocess.Popen object at 0x7f589eeb2a60> stdout = b'Traceback (most recent call last):\n File "/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py", line...ng pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj\n' stderr = None, retcode = 1
/usr/lib64/python3.8/subprocess.py:516: CalledProcessError ========================================================================= short test summary info ========================================================================== FAILED ::project - subprocess.CalledProcessError: Command '['/usr/bin/python3', '/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py', 'get_requires_for_bu... ======================================================================= 1 failed, 6 passed in 4.32s ========================================================================