Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Aug 7, 2022
2 parents ffa339d + 1fe31c8 commit 29e247b
Show file tree
Hide file tree
Showing 448 changed files with 4,169 additions and 2,667 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
push:
workflow_dispatch:
# Allow to run manually
inputs:
platform:
description: 'Platform'
required: true
default: 'ubuntu-focal-standard'
docker_tag:
description: 'Docker tag'
required: true
default: 'dev'

concurrency:
# Cancel previous runs of this workflow for the same branch
Expand All @@ -13,7 +22,7 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/sagemath/sage/sage-docker-ubuntu-focal-standard-with-targets:dev
container: ghcr.io/sagemath/sage/sage-docker-${{ github.event.inputs.platform || 'ubuntu-focal-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}}
steps:
- name: Checkout
id: checkout
Expand All @@ -23,10 +32,16 @@ jobs:
id: prepare
run: |
# Install test tools.
# Installation of python3-venv can be removed as soon as a
# base image with a release including #33822 is available
apt-get update
apt-get install -y git python3-venv
if apt-get update && apt-get install -y git python3-venv; then
# Debian-specific temporary code:
# Installation of python3-venv can be removed as soon as a
# base image with a release including #33822 is available
:
else
export PATH="build/bin:$PATH"
eval $(sage-print-system-package-command auto update)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git)
fi
# Reuse built SAGE_LOCAL contained in the Docker image
./bootstrap
./configure --enable-build-as-root --prefix=/sage/local --with-sage-venv --enable-editable --enable-download-from-upstream-url
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ jobs:
run: pip install tox relint
- name: Lint using relint
run: tox -e relint src/sage/
lint-rst:
name: Validate docstring markup as RST
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tox
run: pip install tox
- name: Lint using tox -e rst
run: tox -e rst
# Until all errors are fixed:
continue-on-error: true
8 changes: 4 additions & 4 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"description": "Mirror of the Sage https://sagemath.org/ source tree",
"license": "other-open",
"title": "sagemath/sage: 9.7.beta5",
"version": "9.7.beta5",
"title": "sagemath/sage: 9.7.beta6",
"version": "9.7.beta6",
"upload_type": "software",
"publication_date": "2022-07-10",
"publication_date": "2022-07-24",
"creators": [
{
"affiliation": "SageMath.org",
Expand All @@ -15,7 +15,7 @@
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/sagemath/sage/tree/9.7.beta5",
"identifier": "https://github.com/sagemath/sage/tree/9.7.beta6",
"relation": "isSupplementTo"
},
{
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SageMath version 9.7.beta5, Release Date: 2022-07-10
SageMath version 9.7.beta6, Release Date: 2022-07-24
2 changes: 1 addition & 1 deletion bootstrap-conda
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ for PKG_BASE in $(sage-package list --has-file distros/conda.txt); do
fi
fi
done
echo >&2 $0:$LINENO: generate conda enviroment files
echo >&2 $0:$LINENO: generate conda environment files
echo "name: sage-build" > environment.yml
echo "channels:" >> environment.yml
echo " - conda-forge" >> environment.yml
Expand Down
2 changes: 1 addition & 1 deletion build/bin/sage-logger
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if [ -n "$SAGE_SILENT_BUILD" -a ${use_prefix} = true ]; then
status=$?
if [[ $status != 0 ]]; then
echo " [$logname] error installing, exit status $status. End of log file:"
tail -n 40 "$logfile" | sed "/Please email sage-devel/,$ d;s;^; [$logname] ;" >&2
tail -n 72 "$logfile" | sed "/Please email sage-devel/,$ d;s;^; [$logname] ;" >&2
echo " [$logname] Full log file: $logfile"
else
echo " [$logname] successfully installed."
Expand Down
4 changes: 2 additions & 2 deletions build/bin/sage-sdist
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ if [ $# -gt 1 ]; then
fi

if [ -z "$SAGE_ROOT" ]; then
die "must be run from within a Sage enviroment, or with SAGE_ROOT provided"
die "must be run from within a Sage environment, or with SAGE_ROOT provided"
fi

if [ -z "$SAGE_SRC" ]; then
die "must be run from within a Sage enviroment, or with SAGE_SRC provided"
die "must be run from within a Sage environment, or with SAGE_SRC provided"
fi

if [ "$#" -gt 0 ]; then
Expand Down
8 changes: 5 additions & 3 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -625,17 +625,19 @@ $(1)-$(4)-no-deps:
SAGE_INST_LOCAL=$$($(4)) \
sage-logger -p 'SAGE_CHECK=$$(SAGE_CHECK_$(1)) $$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' '$$(SAGE_LOGS)/$(1)-$(2).log' && \
touch "$$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2)"; \
else \
else ( \
echo; \
echo "Error: $(1) is a dummy script package that the Sage distribution uses"; \
echo "Note: $(1) is a dummy script package that the Sage distribution uses"; \
echo "to provide information about equivalent system packages."; \
echo "It cannot be installed using the Sage distribution."; \
echo "Please install it manually, for example using the system packages"; \
echo "recommended at the end of a run of './configure'"; \
echo "See below for package-specific information."; \
echo; \
$$(SAGE_ROOT)/build/bin/sage-spkg-info $(1); \
exit 1; \
echo; \
echo "Error: $(1) is a dummy script package and "; \
echo "cannot be installed using the Sage distribution." ) | sage-logger -p 'cat; exit 1' '$$(SAGE_LOGS)/$(1)-$(2).log'; \
fi

$(1)-no-deps: $(1)-$(4)-no-deps
Expand Down
18 changes: 0 additions & 18 deletions build/pkgs/build/SPKG.rst

This file was deleted.

6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=b5a2cfbb85e9d1afd3c151429525944f1e0ca84f
md5=8cf9a8e717fe11a7c6fb7aa41975a7a1
cksum=2226307451
sha1=7df04dc0c2e0d7cdfd767dfb86dd3a60d3af1767
md5=f8e92133f5447c39196fc45a026ed49d
cksum=1963708627
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
413ff13c54c4738b14d64eb7e7e6b2d06439d12c
e3ababd22689e7cc6e89a01b1e8bd6d770e7b1cf
8 changes: 4 additions & 4 deletions build/pkgs/giac/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tarball=giac-VERSION.tar.bz2
sha1=b0e81969eb2527964efc802bf35c31d140031571
md5=f8253082e5dcde5724b4d6f2300d8669
cksum=3973759340
upstream_url=https://trac.sagemath.org/raw-attachment/ticket/31562/giac-VERSION.tar.bz2
sha1=78c15badd19b49b7d111ac204b611a4378ce3d15
md5=8fbd43a5c60848b6813b7fc8698a0199
cksum=1923149665
upstream_url=https://trac.sagemath.org/raw-attachment/ticket/31563/giac-VERSION.tar.bz2
2 changes: 1 addition & 1 deletion build/pkgs/giac/dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
readline libpng $(MP_LIBRARY) mpfr mpfi ntl gsl pari glpk curl cliquer $(findstring libnauty,$(OPTIONAL_INSTALLED_PACKAGES))
readline libpng $(MP_LIBRARY) mpfr mpfi ntl gsl pari glpk curl cliquer ecm $(findstring libnauty,$(OPTIONAL_INSTALLED_PACKAGES))

----------
All lines of this file are ignored except the first.
2 changes: 1 addition & 1 deletion build/pkgs/giac/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.0.47p3.p0
1.9.0.15p0
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ diff --git a/src/global.cc b/src/global.cc
index c343aea..87e4575 100755
--- a/src/global.cc
+++ b/src/global.cc
@@ -1978,7 +1978,7 @@ extern "C" void Sleep(unsigned int miliSecond);
@@ -3762,7 +3762,7 @@ extern "C" void Sleep(unsigned int miliSecond);
void ctrl_c_signal_handler(int signum){
ctrl_c=true;
#if !defined KHICAS && !defined NSPIRE_NEWLIB && !defined WIN32 && !defined BESTA_OS && !defined NSPIRE && !defined FXCG && !defined POCKETCAS
#if !defined KHICAS && !defined NSPIRE_NEWLIB && !defined WIN32 && !defined BESTA_OS && !defined NSPIRE && !defined FXCG && !defined POCKETCAS && !defined __MINGW_H
- if (child_id)
+ if (child_id && child_id != 1)
kill(child_id,SIGINT);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ index b5dd325..d45b553 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -14,6 +14,8 @@ libgiac_la_SOURCES = input_lexer.ll sym2poly.cc gausspol.cc threaded.cc \
help.cc lpsolve.cc optimization.cc signalprocessing.cc \
graphe.cc graphtheory.cc nautywrapper.c markup.cc kdisplay.cc kadd.cc # Ugh..
caseval.c cutils.c graphic.c libbf.c libregexp.c libunicode.c \
qjsgiac.c quickjs.c quickjs-libc.c js.c

-libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS)
-libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS)
+libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS)
+
+AM_LDFLAGS = -no-undefined
Expand Down
15 changes: 7 additions & 8 deletions build/pkgs/giac/patches/macos-ifactor.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
--- a/src/ifactor.cc 2014-10-11 16:29:01.000000000 +0200
+++ b/src/ifactor.cc 2014-10-11 16:29:28.000000000 +0200
@@ -4007,7 +4007,7 @@
@@ -4034,7 +4034,4 @@
#endif
#ifdef HAVE_LIBPARI
#ifdef __APPLE__
- return vecteur(1,gensizeerr(gettext("(Mac OS) Large number, you can try pari(); pari_factor(")+n0.print(contextptr)+")"));
+ // return vecteur(1,gensizeerr(gettext("(Mac OS) Large number, you can try pari(); pari_factor(")+n0.print(contextptr)+")"));
#endif
gen g(pari_ifactor(n0),contextptr);
if (g.type==_VECT){

if (ifactor_pari){
-#ifdef __APPLE__
- return vecteur(1,gensizeerr(gettext("(Mac OS) Large number, you can try pari(); pari_factor(")+n0.print(contextptr)+")"));
-#endif
gen g(pari_ifactor(n0),contextptr);
if (g.type==_VECT){
5 changes: 4 additions & 1 deletion build/pkgs/giac/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if [ `uname -m` = "ppc64" ]; then
CPPFLAGS="-Dx86_64 $CPPFLAGS"
fi

# #31563: Kick the can down the road
CPPFLAGS="-DUSE_OBJET_BIDON=1 $CPPFLAGS"

# Using pari in a C++17 file with "using namespace std doesn't
# work due to a conflict between std::rank and pari's rank
# -std=c++17 is in the default flags on conda;
Expand Down Expand Up @@ -53,7 +56,7 @@ if [ "$UNAME" = "CYGWIN" ]; then
export ac_cv_header_nauty_naututil_h=no
fi

sdh_configure --disable-gui --disable-ao "$DISABLENLS" --enable-png=no --disable-samplerate --disable-static --disable-micropy
sdh_configure --disable-gui --disable-ao "$DISABLENLS" --enable-png=no --disable-samplerate --disable-static --disable-micropy --disable-quickjs

#############################################################
# Build
Expand Down
9 changes: 6 additions & 3 deletions build/pkgs/giac/spkg-src
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ fi
# Exit on failure
set -e

VERSION="1.6.0"
VERSIONREV="47"
PATCHSUFFIX="p3"
VERSION="1.9.0"
VERSIONREV="15"
PATCHSUFFIX="p0"

# The upstream tarball name is: giac"$SOURCEORIG".tar.gz
SOURCEORIG=_"$VERSION"-"$VERSIONREV"
Expand Down Expand Up @@ -49,6 +49,9 @@ mv giac-"$VERSION" src
# remove unnecessary files
rm -rf src/doc/pari/*.html

rm -f src/doc/*.wasm src/doc/*.js
sed -E -i.bak '/XCASHTML/s/[^ ]*[.](wasm|js)//g' src/doc/Makefile.am

# removing french html doc, but keep keywords, and working makefiles.
# NB: the french html doc is huge and not GPL.
# it is freely redistributable only for non commercial purposes.
Expand Down
18 changes: 18 additions & 0 deletions build/pkgs/python_build/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
python_build: A simple, correct PEP517 package builder
======================================================

Description
-----------

``build`` is a simple, correct PEP517 package builder

License
-------

MIT

Upstream Contact
----------------

https://pypi.org/project/build/

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion build/pkgs/sage_conf/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sage-conf ~= 9.7.b3
# This file is updated on every release by the sage-update-version script
sage-conf ~= 9.7b6
3 changes: 2 additions & 1 deletion build/pkgs/sage_docbuild/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sage_docbuild
# This file is updated on every release by the sage-update-version script
sage-docbuild ~= 9.7b6
3 changes: 2 additions & 1 deletion build/pkgs/sage_setup/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sage-setup ~= 9.7.b3
# This file is updated on every release by the sage-update-version script
sage-setup ~= 9.7b6
3 changes: 2 additions & 1 deletion build/pkgs/sage_sws2rst/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sage_sws2rst
# This file is updated on every release by the sage-update-version script
sage-sws2rst ~= 9.7b6
3 changes: 2 additions & 1 deletion build/pkgs/sagelib/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sagemath-standard
# This file is updated on every release by the sage-update-version script
sagelib ~= 9.7b6
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_categories/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$(PYTHON) cysignals gmpy2 sagemath_objects | $(PYTHON_TOOLCHAIN) sagemath_environment sage_setup cython pkgconfig build $(and $(filter-out no,$(SAGE_CHECK_sagemath_categories)), tox sagemath_repl)
$(PYTHON) cysignals gmpy2 sagemath_objects | $(PYTHON_TOOLCHAIN) sagemath_environment sage_setup cython pkgconfig python_build
1 change: 1 addition & 0 deletions build/pkgs/sagemath_categories/dependencies_check
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tox sagemath_repl
3 changes: 2 additions & 1 deletion build/pkgs/sagemath_categories/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sagemath-categories ~= 9.5b6
# This file is updated on every release by the sage-update-version script
sagemath-categories ~= 9.7b6
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_environment/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$(PYTHON) | $(PYTHON_TOOLCHAIN) build $(and $(filter-out no,$(SAGE_CHECK_sagemath_environment)), tox)
$(PYTHON) | $(PYTHON_TOOLCHAIN) python_build
1 change: 1 addition & 0 deletions build/pkgs/sagemath_environment/dependencies_check
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tox
3 changes: 2 additions & 1 deletion build/pkgs/sagemath_environment/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sagemath-environment ~= 9.6rc3
# This file is updated on every release by the sage-update-version script
sagemath-environment ~= 9.7b6
4 changes: 3 additions & 1 deletion build/pkgs/sagemath_objects/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
FORCE $(PYTHON) cysignals gmpy2 | $(PYTHON_TOOLCHAIN) sagemath_environment sage_setup cython pkgconfig build
FORCE $(PYTHON) cysignals gmpy2 | $(PYTHON_TOOLCHAIN) sagemath_environment sage_setup cython pkgconfig python_build

# FORCE: Always run the spkg-install script
4 changes: 2 additions & 2 deletions build/pkgs/sagemath_objects/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Pinned in Trac #29941 until proper namespace packages are supported in #28925.
sagemath-objects == 9.6rc3.post4
# This file is updated on every release by the sage-update-version script
sagemath-objects ~= 9.7b6
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_objects/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel)
ls -l "$wheel"

if [ "$SAGE_CHECK" != no ]; then
tox -r -v -e sagepython-norequirements-sagewheels-nopypi --installpkg $wheel
tox -r -v -e sagepython-sagewheels-nopypi-norequirements --installpkg $wheel
fi
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_repl/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$(PYTHON) sagemath_objects ipython | $(PYTHON_TOOLCHAIN) build $(and $(filter-out no,$(SAGE_CHECK_sagemath_repl)), tox)
$(PYTHON) sagemath_objects ipython | $(PYTHON_TOOLCHAIN) python_build
1 change: 1 addition & 0 deletions build/pkgs/sagemath_repl/dependencies_check
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tox
3 changes: 2 additions & 1 deletion build/pkgs/sagemath_repl/install-requires.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sagemath-repl
# This file is updated on every release by the sage-update-version script
sagemath-repl ~= 9.7b6
Loading

0 comments on commit 29e247b

Please sign in to comment.