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 have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
$ export PYTHONWARNINGS=default
$ pdm init
$ pdm list
Actual behavior
pdm list shows two warnings.
/Users/inada-n/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/models/specifiers.py:17: DeprecationWarning: open_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with open_binary("pdm.models", "python_max_versions.json") as fp:
/Users/inada-n/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/models/in_process/__init__.py:17: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with importlib.resources.path(__name__, name) as script:
╭──────┬─────────┬──────────╮
│ name │ version │ location │
├──────┼─────────┼──────────┤
╰──────┴─────────┴──────────╯
Expected behavior
No deprecation warnings.
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
$ pdm info && pdm info --env
/Users/inada-n/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/models/specifiers.py:17: DeprecationWarning: open_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with open_binary("pdm.models", "python_max_versions.json") as fp:
PDM version:
2.4.2
Python Interpreter:
/Users/inada-n/work/PyMySQL/t/.venv/bin/python (3.11)
Project Root:
/Users/inada-n/work/PyMySQL/t
Project Packages:
None
/Users/inada-n/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/models/specifiers.py:17: DeprecationWarning: open_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with open_binary("pdm.models", "python_max_versions.json") as fp:
/Users/inada-n/.local/pipx/venvs/pdm/lib/python3.11/site-packages/pdm/models/in_process/__init__.py:17: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with importlib.resources.path(__name__, name) as script:
{
"implementation_name": "cpython",
"implementation_version": "3.11.1",
"os_name": "posix",
"platform_machine": "arm64",
"platform_release": "21.6.0",
"platform_system": "Darwin",
"platform_version": "Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000",
"python_full_version": "3.11.1",
"platform_python_implementation": "CPython",
"python_version": "3.11",
"sys_platform": "darwin"
}
The text was updated successfully, but these errors were encountered:
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Actual behavior
pdm list
shows two warnings.Expected behavior
No deprecation warnings.
Environment Information
The text was updated successfully, but these errors were encountered: