Skip to content

Migrate many types from str to Text. #2263

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

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Oct 9, 2023

This supports an up coming refactor of pex.{dist_metadata,pep_376}
which also requires re-formulating the pyc filters from Iterable ->
Iterable form to boolean predicates to make typing easier at the
loss of ~nothing.

This supports an up coming refactor of `pex.{dist_metadata,pep_376}`
which also requires re-formulating the pyc filters from `Iterable` ->
`Iterable` form to boolean predicates to making typing easier at the
loss of ~nothing.
@jsirois jsirois requested review from kaos, benjyw and huonw October 9, 2023 02:45
@jsirois
Copy link
Member Author

jsirois commented Oct 9, 2023

Like #2262, more work in support of #2097 and #1361.

@jsirois
Copy link
Member Author

jsirois commented Oct 9, 2023

I believe the CI errors are fixed by #2262. I'll wait on that and then merge it here to see if that's true.

@jsirois jsirois merged commit f9a9d94 into pex-tool:main Oct 9, 2023
@jsirois jsirois deleted the types/Text branch October 9, 2023 17:31
huonw added a commit that referenced this pull request Nov 10, 2023
This fixes #2285 by fixing a minor typo in
f9a9d94 / #2263 that caused the
computation of a PEXes code hash to not recur into the correct
directories.

I think this explains the symptoms in #2285 due to caching: if a PEX
only contains files in subdirectories, the code hash will be
`da39a3ee5e6b4b0d3255bfef95601890afd80709` (the sha256 hash of no data)
and thus potentially the `venv create` might be referring to an
incorrectly cached installation.
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.

3 participants