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 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
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-sphinx-0.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-sphinx-0.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network'============================= test session starts ==============================platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter-sphinx-0.5.0configfile: pyproject.tomltestpaths: tests/collected 0 items / 1 error==================================== ERRORS ====================================____________________ ERROR collecting tests/test_execute.py ____________________/usr/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func()/usr/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect")/usr/lib/python3.8/site-packages/_pytest/python.py:536: in collect self._inject_setup_module_fixture()/usr/lib/python3.8/site-packages/_pytest/python.py:550: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module")/usr/lib/python3.8/site-packages/_pytest/python.py:315: in obj self._obj = obj = self._getobj()/usr/lib/python3.8/site-packages/_pytest/python.py:533: in _getobj return self._importtestmodule()/usr/lib/python3.8/site-packages/_pytest/python.py:622: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath)/usr/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name)/usr/lib64/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)<frozen importlib._bootstrap>:1014: in _gcd_import ???<frozen importlib._bootstrap>:991: in _find_and_load ???<frozen importlib._bootstrap>:975: in _find_and_load_unlocked ???<frozen importlib._bootstrap>:671: in _load_unlocked ???/usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__)tests/test_execute.py:24: in <module> from jupyter_sphinx.ast import (../../BUILDROOT/python-jupyter-sphinx-0.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/jupyter_sphinx/__init__.py:6: in <module> import ipywidgets/usr/lib/python3.8/site-packages/ipywidgets/__init__.py:25: in <module> from .widgets import */usr/lib/python3.8/site-packages/ipywidgets/widgets/__init__.py:4: in <module> from .widget import Widget, CallbackDispatcher, register, widget_serialization/usr/lib/python3.8/site-packages/ipywidgets/widgets/widget.py:13: in <module> from ipykernel.comm import Comm/usr/lib/python3.8/site-packages/ipykernel/__init__.py:7: in <module> from .connect import */usr/lib/python3.8/site-packages/ipykernel/connect.py:12: in <module> import jupyter_client/usr/lib/python3.8/site-packages/jupyter_client/__init__.py:3: in <module> from .asynchronous import AsyncKernelClient/usr/lib/python3.8/site-packages/jupyter_client/asynchronous/__init__.py:1: in <module> from .client import AsyncKernelClient # noqa/usr/lib/python3.8/site-packages/jupyter_client/asynchronous/client.py:12: in <module> from ..client import KernelClient, reqrep/usr/lib/python3.8/site-packages/jupyter_client/client.py:20: in <module> from .connect import ConnectionFileMixin/usr/lib/python3.8/site-packages/jupyter_client/connect.py:22: in <module> from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write/usr/lib/python3.8/site-packages/jupyter_core/paths.py:210: in <module> deprecation(/usr/lib/python3.8/site-packages/jupyter_core/utils/__init__.py:89: in deprecation warnings.warn(message, DeprecationWarning, stacklevel=stacklevel + 1)E DeprecationWarning: Jupyter is migrating its paths to use standard platformdirsE given by the platformdirs library. To remove this warning andE see the appropriate new directories, set the environment variableE `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.E The use of platformdirs will be the default in `jupyter_core` v6=========================== short test summary info ============================ERROR tests/test_execute.py - DeprecationWarning: Jupyter is migrating its paths to use standard platform...!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!=============================== 1 error in 1.01s ===============================
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 modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
The text was updated successfully, but these errors were encountered: