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

Python upgrade deprecation warnings #21673

Open
tdyas opened this issue Nov 20, 2024 · 1 comment
Open

Python upgrade deprecation warnings #21673

tdyas opened this issue Nov 20, 2024 · 1 comment
Assignees

Comments

@tdyas
Copy link
Contributor

tdyas commented Nov 20, 2024

Some deprecation warnings seen with the Python 3.11 upgrade in Pants sources:

src/python/pants/backend/python/subsystems/python_tool_base.py:228: DeprecationWarning: read_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
  lock_bytes = importlib.resources.read_binary(parts.netloc, lockfile_path)
src/python/pants/jvm/resolve/coursier_fetch.py:783: DeprecationWarning: read_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
  lockfile_bytes = importlib.resources.read_binary(
src/python/pants/backend/python/util_rules/pex_requirements.py:213: DeprecationWarning: read_binary is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
  importlib.resources.read_binary(parts.netloc, lockfile_path),
@tdyas tdyas added the bug label Nov 20, 2024
@tdyas
Copy link
Contributor Author

tdyas commented Nov 20, 2024

cc @cburroughs

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

2 participants