forked from MozillaSecurity/FuzzManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Repack wheel to exclude 'extra_requires'
fuzzing-decision (used by taskmanager) uses a direct url reference (allowed by PEP 508). But PyPI cannot accept direct url references. We don't need any of the extras anyways for the wheel (Collector/FTB only). See pypa/twine#430
- Loading branch information
1 parent
06edf9d
commit 1feb303
Showing
2 changed files
with
18 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e -x | ||
|
||
# | ||
# Remove 'extra_requires' from the wheel | ||
# | ||
# The 'extras' are only useful with the full source distribution. | ||
# | ||
|
||
WORK="$(mktemp -d -t fm-twine-repack-XXXXXX)" | ||
wheel unpack -d "$WORK" dist/FuzzManager-*.whl | ||
grep -Ev "^(Provides-Extra: .*|Requires-Dist: .* ; extra == '.*')$" "$WORK"/FuzzManager-*/FuzzManager-*.dist-info/METADATA > "$WORK"/METADATA.new | ||
mv "$WORK"/METADATA.new "$WORK"/FuzzManager-*/FuzzManager-*.dist-info/METADATA | ||
wheel pack -d dist "$WORK"/FuzzManager-* | ||
rm -rf "$WORK" |
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