-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
make sagemath_categories-check
, make pypi-wheels-check
#36452
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
18458bf
Rename spkg-piprm-requirements.txt to just spkg-requirements.txt
mkoeppe 4a4810e
build/make/Makefile.in (SCRIPT_PACKAGE_templ): Set more variables set…
mkoeppe 952405f
build/bin/sage-dist-helpers (sdh_store_[and_pip_install_]wheel): Reco…
mkoeppe f8b93c7
build/bin/sage-spkg: Remove unused code for packages without spkg-ins…
mkoeppe 91b0b83
build/bin/sage-spkg: Adjust to spkg-requirements.txt being installed …
mkoeppe f91c20b
build/make/Makefile.in (SCRIPT_PACKAGE_templ): Remove script dir befo…
mkoeppe 0aaf02e
build/make/Makefile.in (SCRIPT_PACKAGE_templ) [SAGE_CHECK=yes]: Call …
mkoeppe 417de39
build/pkgs/sagemath_*/spkg-postinstcheck: Break out from spkg-install
mkoeppe 3c2939a
Rename spkg-postinstcheck -> spkg-check
mkoeppe af6d0ad
build/pkgs/sage_sws2rst/spkg-install: Do not call spkg-check from her…
mkoeppe 22b101f
build/make/Makefile.in (pypi-wheels-check): New target
mkoeppe 3838613
.github/workflows/build.yml: Separate build and test
mkoeppe 8224cb0
.github/workflows/build.yml: Fix 'if' of some steps
mkoeppe 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 |
---|---|---|
|
@@ -548,7 +548,7 @@ WRAPPED_SCRIPTS="build install check preinst postinst $INSTALLED_SCRIPTS" | |
|
||
# Prepare script for uninstallation of packages that use sdh_pip_install | ||
# or sdh_store_and_pip_install_wheel. | ||
echo 'sdh_pip_uninstall -r $SAGE_SPKG_SCRIPTS/$PKG_BASE/spkg-piprm-requirements.txt' > spkg-piprm.in | ||
echo 'sdh_pip_uninstall -r $SAGE_SPKG_SCRIPTS/$PKG_BASE/spkg-requirements.txt' > spkg-piprm.in | ||
|
||
for script in $WRAPPED_SCRIPTS; do | ||
# 'Installed' scripts are not run immediately out of the package build | ||
|
@@ -567,24 +567,6 @@ for script in $WRAPPED_SCRIPTS; do | |
fi | ||
done | ||
|
||
|
||
# When there is no spkg-install, assume the "spkg" is a tarball not | ||
# specifically made for Sage. Since we want it to be as easy as | ||
# possible to install such a package, we "guess" spkg-install. | ||
if [ ! -f spkg-install ]; then | ||
echo '#!/usr/bin/env bash' > spkg-install | ||
if [ -x configure ]; then | ||
echo './configure --prefix="$SAGE_INST_LOCAL" && make && $SAGE_SUDO make install' >> spkg-install | ||
elif [ -f setup.py ]; then | ||
echo 'python setup.py install' >> spkg-install | ||
else | ||
echo >&2 "Error: There is no spkg-install script, no setup.py, and no configure" | ||
echo >&2 "script, so I do not know how to install $PKG_SRC." | ||
exit 1 | ||
fi | ||
chmod +x spkg-install | ||
fi | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this never used, and so removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's right. It was a leftover from the abandoned support for "old-style packages" |
||
echo "****************************************************" | ||
echo "Host system:" | ||
uname -a | ||
|
@@ -722,9 +704,7 @@ unset SAGE_DESTDIR_LOCAL | |
# removed by sage-spkg-uninstall | ||
INSTALLED_SCRIPTS_DEST="$SAGE_SPKG_SCRIPTS/$PKG_BASE" | ||
|
||
if [ -f spkg-piprm-requirements.txt ]; then | ||
INSTALLED_SCRIPTS="$INSTALLED_SCRIPTS piprm-requirements.txt" | ||
else | ||
if [ ! -f $INSTALLED_SCRIPTS_DEST/spkg-requirements.txt ]; then | ||
# No packages to uninstall with pip, so remove the prepared uninstall script | ||
rm -f spkg-piprm spkg-piprm.in | ||
fi | ||
|
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 |
---|---|---|
@@ -1,2 +1,11 @@ | ||
#! /bin/sh | ||
cd src && ./check.sh | ||
cd src | ||
./check.sh | ||
if [ $? -ne 0 ]; then | ||
if [ "$SAGE_CHECK" = "warn" ]; then | ||
echo >&2 "Warning: Failures testing package $PKG_NAME (ignored)" | ||
else | ||
echo >&2 "Error testing package $PKG_NAME" | ||
exit 1 | ||
fi | ||
fi |
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 @@ | ||
../sagemath_objects/spkg-check |
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 @@ | ||
../sagemath_objects/spkg-check |
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,27 @@ | ||
#!/usr/bin/env bash | ||
cd src | ||
|
||
export PIP_NO_INDEX=true | ||
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS" | ||
|
||
export TOX_PARALLEL_NO_SPINNER=1 | ||
wheel="$(sed -n '1s,.*@ file://,,p' $SAGE_SPKG_SCRIPTS/$PKG_BASE/spkg-requirements.txt)" | ||
echo Running "tox -r -p auto -v --installpkg $wheel" | ||
tox -r -p auto -v --installpkg "$wheel" | ||
status=$? | ||
case $status:$SAGE_CHECK:$([ -r known-test-failures.json ]; echo $?) in | ||
0:*:0) echo "Passed the test suite (modulo baseline known-test-failures*.json)";; | ||
0:*:*) echo "Passed the test suite";; | ||
*:warn:0) echo "Warning: New failures (not in baseline known-test-failures*.json (ignored)"; status=0;; | ||
*:warn:*) echo "Warning: Failures testing the package (ignored)"; status=0;; | ||
*:yes:0) echo "New failures, not in baseline known-test-failures*.json";; | ||
*:yes:*) echo "Failures testing the package";; | ||
esac | ||
# Show summaries of failures (suppress lines ending with '[failed in baseline]') | ||
for f in $(pwd)/.tox/sagepython-sagewheels-nopypi-norequirements*/log/*-command*.log; do | ||
if [ -r "$f" ]; then | ||
echo "$f" | ||
grep '^sage -t.*#[^]]*$' "$f" | ||
fi | ||
done | ||
exit $status |
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 @@ | ||
../sagemath_objects/spkg-check |
Oops, something went wrong.
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.
if: always() && steps.worktree.outcome == 'success'
?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.
thanks, i've made a similar change in 8224cb0