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
Bug report
Bug description:
For context:
My issue is that
configuration.pyis rising anEncodingWarning, andauth.pyis raising aDeprecationWarning, 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