-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extra metadata files while building wheels
- Loading branch information
1 parent
480b3cc
commit 025b8c3
Showing
5 changed files
with
141 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 |
---|---|---|
|
@@ -73,6 +73,7 @@ jobs: | |
- rust_vendor | ||
- download_sequence | ||
- optimize_build | ||
- extra_metadata | ||
|
||
steps: | ||
- name: Get source | ||
|
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,59 @@ | ||
#!/bin/bash | ||
# -*- indent-tabs-mode: nil; tab-width: 2; sh-indentation: 2; -*- | ||
|
||
# Test whether extra metadata was added in the wheels or not | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
source "$SCRIPTDIR/common.sh" | ||
|
||
fromager \ | ||
--log-file="$OUTDIR/bootstrap.log" \ | ||
--error-log-file="$OUTDIR/fromager-errors.log" \ | ||
--sdists-repo="$OUTDIR/sdists-repo" \ | ||
--wheels-repo="$OUTDIR/wheels-repo" \ | ||
--work-dir="$OUTDIR/work-dir" \ | ||
--settings-file="$SCRIPTDIR/build_settings.yaml" \ | ||
bootstrap 'stevedore==5.2.0' | ||
|
||
find "$OUTDIR/wheels-repo/" -name '*.whl' | ||
find "$OUTDIR/sdists-repo/" -name '*.tar.gz' | ||
ls "$OUTDIR"/work-dir/*/build.log || true | ||
|
||
EXPECTED_FILES=" | ||
$OUTDIR/wheels-repo/downloads/setuptools-*.whl | ||
$OUTDIR/wheels-repo/downloads/pbr-*.whl | ||
$OUTDIR/wheels-repo/downloads/stevedore-*.whl | ||
" | ||
|
||
pass=true | ||
for pattern in $EXPECTED_FILES; do | ||
if [ ! -f "${pattern}" ]; then | ||
echo "Did not find $pattern" 1>&2 | ||
pass=false | ||
fi | ||
done | ||
|
||
$pass | ||
|
||
wheel unpack $OUTDIR/wheels-repo/downloads/stevedore-5.2.0-py3-none-any.whl -d $OUTDIR | ||
|
||
EXPECTED_FILES=" | ||
$OUTDIR/stevedore-5.2.0/stevedore-5.2.0.dist-info/fromager-build-settings | ||
$OUTDIR/stevedore-5.2.0/stevedore-5.2.0.dist-info/fromager-build-backend-requirements.txt | ||
$OUTDIR/stevedore-5.2.0/stevedore-5.2.0.dist-info/fromager-build-system-requirements.txt | ||
$OUTDIR/stevedore-5.2.0/stevedore-5.2.0.dist-info/fromager-build-sdist-requirements.txt | ||
" | ||
|
||
pass=true | ||
for pattern in $EXPECTED_FILES; do | ||
if [ ! -f "${pattern}" ]; then | ||
echo "Did not find $pattern" 1>&2 | ||
pass=false | ||
fi | ||
done | ||
|
||
$pass | ||
|
||
for file in $EXPECTED_FILES; do | ||
cat $file | ||
done |
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ stevedore | |
tomlkit | ||
tqdm | ||
virtualenv | ||
wheel |
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