Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.12.3: pytest deprecation errors #181

Open
kloczek opened this issue Jul 1, 2023 · 1 comment
Open

0.12.3: pytest deprecation errors #181

kloczek opened this issue Jul 1, 2023 · 1 comment

Comments

@kloczek
Copy link

kloczek commented Jul 1, 2023

Looks like with setuptools 68.0.0 and pytest 7.4.0 test suite is failing with deprecation errors

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-packaging-0.12.3-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-packaging-0.12.3-4.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter-packaging-0.12.3
configfile: pyproject.toml
testpaths: tests/
plugins: mock-3.11.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 13 items / 14 errors

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_build_api.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_build_api.py:7: in <module>
    from jupyter_packaging.build_api import build_sdist, build_wheel
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
___________________ ERROR collecting tests/test_build_api.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_build_api.py:7: in <module>
    from jupyter_packaging.build_api import build_sdist, build_wheel
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
________________ ERROR collecting tests/test_core_functions.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_core_functions.py:6: in <module>
    from jupyter_packaging.setupbase import npm_builder, wrap_installers
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
________________ ERROR collecting tests/test_core_functions.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_core_functions.py:6: in <module>
    from jupyter_packaging.setupbase import npm_builder, wrap_installers
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
________________ ERROR collecting tests/test_datafiles_paths.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_datafiles_paths.py:1: in <module>
    from jupyter_packaging.setupbase import get_data_files
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
________________ ERROR collecting tests/test_datafiles_paths.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_datafiles_paths.py:1: in <module>
    from jupyter_packaging.setupbase import get_data_files
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
__________________ ERROR collecting tests/test_deprecated.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_deprecated.py:9: in <module>
    import jupyter_packaging.setupbase as pkg
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
__________________ ERROR collecting tests/test_deprecated.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_deprecated.py:9: in <module>
    import jupyter_packaging.setupbase as pkg
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
___________________ ERROR collecting tests/test_is_stale.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_is_stale.py:1: in <module>
    from jupyter_packaging.setupbase import is_stale
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
___________________ ERROR collecting tests/test_is_stale.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_is_stale.py:1: in <module>
    from jupyter_packaging.setupbase import is_stale
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
_____________________ ERROR collecting tests/test_main.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_main.py:1: in <module>
    from jupyter_packaging.__main__ import main
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
_____________________ ERROR collecting tests/test_main.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_main.py:1: in <module>
    from jupyter_packaging.__main__ import main
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
_______________ ERROR collecting tests/test_utility_functions.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/doctest.py:547: in collect
    module = import_path(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_utility_functions.py:6: in <module>
    import jupyter_packaging.setupbase as pkg
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
_______________ ERROR collecting tests/test_utility_functions.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:565: 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:178: in exec_module
    exec(co, module.__dict__)
tests/test_utility_functions.py:6: in <module>
    import jupyter_packaging.setupbase as pkg
jupyter_packaging/__init__.py:6: in <module>
    from .setupbase import *  # noqa
jupyter_packaging/setupbase.py:44: in <module>
    from setuptools.command.develop import develop
/usr/lib/python3.8/site-packages/setuptools/command/develop.py:8: in <module>
    from setuptools.command.easy_install import easy_install
/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py:48: in <module>
    from setuptools.sandbox import run_setup
/usr/lib/python3.8/site-packages/setuptools/sandbox.py:13: in <module>
    import pkg_resources
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:118: in <module>
    warnings.warn(
E   DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
=========================== short test summary info ============================
ERROR tests/test_build_api.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_build_api.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_core_functions.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_core_functions.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_datafiles_paths.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_datafiles_paths.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_deprecated.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_deprecated.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_is_stale.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_is_stale.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_main.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_main.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_utility_functions.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
ERROR tests/test_utility_functions.py - DeprecationWarning: pkg_resources is deprecated as an API. See https://setu...
!!!!!!!!!!!!!!!!!!! Interrupted: 14 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 14 errors in 3.30s ==============================
@kloczek
Copy link
Author

kloczek commented Apr 4, 2024

FYI temporary in my build procedure I've added to pytest params -W ignore::DeprecationWarning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant