Skip to content

Implement missing locate_file method in pex meta path finder#203

Merged
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:pexdistribution-locate_file
Nov 7, 2024
Merged

Implement missing locate_file method in pex meta path finder#203
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:pexdistribution-locate_file

Conversation

@chrisnovakovic
Copy link
Contributor

This is an abstract method of importlib.metadata.Distribution that must be implemented in Python >= 3.12 to avoid DeprecationWarnings. It doesn't actually make sense for locate_file to return anything in a PexDistribution, given that the files it finds exist in a zip file rather than on a real file system.

This is an abstract method of `importlib.metadata.Distribution` that
must be implemented in Python >= 3.12 to avoid `DeprecationWarning`s. It
doesn't actually make sense for `locate_file` to return anything in a
`PexDistribution`, given that the files it finds exist in a zip file
rather than on a real file system.
@chrisnovakovic chrisnovakovic merged commit 6a84483 into please-build:master Nov 7, 2024
@chrisnovakovic chrisnovakovic deleted the pexdistribution-locate_file branch November 7, 2024 17:21
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

Successfully merging this pull request may close these issues.

2 participants