-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Vendor pypa/packaging
into micropip
#178
Merged
agriyakhetarpal
merged 15 commits into
pyodide:main
from
agriyakhetarpal:vendor/packaging
Jan 29, 2025
+89
−43
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bc4f3fb
Add `pypa/packaging` as a submodule
agriyakhetarpal e2df367
Add commit hash and tag in a comment
agriyakhetarpal 6a05638
Import `packaging` from vendored source
agriyakhetarpal 340ffdb
Mark TODO item
agriyakhetarpal cfc48ad
Drop dependency on `packaging`
agriyakhetarpal f2842e5
Checkout submodules recursively
agriyakhetarpal fa8c092
Add a CHANGELOG entry for #178
agriyakhetarpal 38c0888
Adhere to import order and location
agriyakhetarpal e5d9f7d
Keep dependencies list but keep it empty
agriyakhetarpal 1f59b01
Redirect imports from `src/packaging/`
agriyakhetarpal 8a4dfe2
Add better explanation
agriyakhetarpal b30ba38
Revert "Add better explanation"
agriyakhetarpal 8c8f0f8
Revert "Redirect imports from `src/packaging/`"
agriyakhetarpal e6932b2
Exclude unncessary files from vendored `packaging`
agriyakhetarpal f9b5172
Add reason about building from sdist
agriyakhetarpal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# d8e3b31b734926ebbcaff654279f6855a73e052f, for 24.2 release | ||
# https://github.com/pypa/packaging/releases/tag/24.2 | ||
[submodule "micropip/_vendored/packaging"] | ||
path = micropip/_vendored/packaging | ||
url = https://github.com/pypa/packaging/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
exclude micropip/_vendored/packaging/.github/* | ||
exclude micropip/_vendored/packaging/docs/* | ||
exclude micropip/_vendored/packaging/tasks/* | ||
exclude micropip/_vendored/packaging/tests/* | ||
exclude micropip/_vendored/packaging/.pre-commit-config.yaml | ||
exclude micropip/_vendored/packaging/.readthedocs.yml | ||
exclude micropip/_vendored/packaging/CHANGELOG.rst | ||
exclude micropip/_vendored/packaging/CONTRIBUTING.rst | ||
exclude micropip/_vendored/packaging/noxfile.py | ||
exclude micropip/_vendored/packaging/pyproject.toml | ||
|
||
include micropip/_vendored/packaging/LICENSE | ||
include micropip/_vendored/packaging/LICENSE.APACHE | ||
include micropip/_vendored/packaging/LICENSE.BSD | ||
|
||
include micropip/_vendored/packaging/README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had to keep this as there is some unreachable code in
src/packaging/
, which is not of concern for us, and TIL that thewarn_unreachable
option is still raised for excluded files.