-
-
Couldn't load subscription status.
- Fork 684
make sagemath_categories-check, make pypi-wheels-check
#36452
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
Changes from all commits
18458bf
4a4810e
952405f
f8b93c7
91b0b83
f91c20b
0aaf02e
417de39
3c2939a
af6d0ad
22b101f
3838613
8224cb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
|
|
||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_objects/spkg-check |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_objects/spkg-check |
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../sagemath_objects/spkg-check |
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