Skip to content

pip 26.0.1 raises warnings with Python 3.15.0a8 #148626

@djhenderson

Description

@djhenderson

Bug report

Bug description:

For context:

> py -V
Python 3.15.0a8

> set python
PYTHONDEVMODE=1
PYTHONUTF8=1
PYTHONWARNDEFAULTENCODING=1
PYTHONWARNINGS=default

> pip -V
...
pip 26.0.1 from C:\Users\Doug\Repositories\Bluetooth\venv\Lib\site-packages\pip (python 3.15)

> pip list -o
C:\Users\Doug\Repositories\Bluetooth\venv\Lib\site-packages\pip\_internal\configuration.py:296: EncodingWarning: UTF-8 Mode affects locale.getpreferredencoding(). Consider locale.getencoding() instead.
  locale_encoding = locale.getpreferredencoding(False)
C:\Users\Doug\Repositories\Bluetooth\venv\Lib\site-packages\pip\_internal\network\auth.py:328: DeprecationWarning: os.path.commonprefix() is deprecated. Use os.path.commonpath() for longest path prefix.
  key=lambda candidate: commonprefix(

My issue is that configuration.py is rising an EncodingWarning, and auth.py is raising a DeprecationWarning, both of which modules are directly or indirectly imported into pip.

Both of these warnings appear to me to be trivial changes.

In general I want to encourage all developers to set the above environment variables to catch potential current or future problems as a standard part of the development environment.

CPython versions tested on:

3.15

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions