Skip to content

Commit dbfb953

Browse files
committed
Merge branch 'develop' into t/34693/MPL3.6_docbuilding
2 parents 8371dd7 + 84f02af commit dbfb953

File tree

749 files changed

+32996
-5550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

749 files changed

+32996
-5550
lines changed

.github/workflows/ci-linux.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
with:
5252
# Build incrementally from previous stage (pre)
5353
incremental: true
54+
free_disk_space: true
5455
from_docker_repository: ghcr.io/${{ github.repository }}/
5556
from_docker_target: "with-targets-pre"
5657
docker_targets: "with-targets with-targets-optional"
@@ -82,21 +83,23 @@ jobs:
8283
with:
8384
# Build incrementally from previous stage (pre)
8485
incremental: true
86+
free_disk_space: true
8587
from_docker_repository: ghcr.io/${{ github.repository }}/
8688
from_docker_target: "with-targets-pre"
8789
docker_targets: "with-targets with-targets-optional"
8890
# FIXME: duplicated from env.TARGETS
8991
targets: build doc-html
9092
targets_optional: ptest
9193
tox_packages_factors: >-
92-
["minimal]
94+
["minimal"]
9395
docker_push_repository: ghcr.io/${{ github.repository }}/
9496

9597
maximal-pre:
9698
if: ${{ success() || failure() }}
9799
needs: [minimal]
98100
uses: ./.github/workflows/docker.yml
99101
with:
102+
free_disk_space: true
100103
# Build from scratch
101104
docker_targets: "with-system-packages configured with-targets-pre"
102105
# FIXME: duplicated from env.TARGETS
@@ -111,6 +114,7 @@ jobs:
111114
uses: ./.github/workflows/docker.yml
112115
with:
113116
incremental: true
117+
free_disk_space: true
114118
from_docker_repository: ghcr.io/${{ github.repository }}/
115119
from_docker_target: "with-targets-pre"
116120
tox_packages_factors: >-
@@ -125,6 +129,7 @@ jobs:
125129
uses: ./.github/workflows/docker.yml
126130
with:
127131
incremental: true
132+
free_disk_space: true
128133
from_docker_repository: ghcr.io/${{ github.repository }}/
129134
from_docker_target: "with-targets-pre"
130135
tox_packages_factors: >-
@@ -138,6 +143,7 @@ jobs:
138143
uses: ./.github/workflows/docker.yml
139144
with:
140145
incremental: true
146+
free_disk_space: true
141147
from_docker_repository: ghcr.io/${{ github.repository }}/
142148
from_docker_target: "with-targets-pre"
143149
tox_packages_factors: >-
@@ -151,6 +157,7 @@ jobs:
151157
uses: ./.github/workflows/docker.yml
152158
with:
153159
incremental: true
160+
free_disk_space: true
154161
from_docker_repository: ghcr.io/${{ github.repository }}/
155162
from_docker_target: "with-targets-pre"
156163
tox_packages_factors: >-

.github/workflows/ci-macos.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ jobs:
4242
# python3_xcode is only accepted if enough packages are available from the system
4343
# --> to test "minimal", we would need https://trac.sagemath.org/ticket/30949
4444
tox_env: [homebrew-macos-usrlocal-minimal, homebrew-macos-usrlocal-standard, homebrew-macos-usrlocal-maximal, homebrew-macos-usrlocal-python3_xcode-standard, conda-forge-macos-minimal, conda-forge-macos-standard, conda-forge-macos-maximal]
45-
# As of 2021-12, default xcode
46-
# - on macos-10.15: 12.4
47-
# - on macos-latest (= macos-11): 13.1
48-
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
4945
xcode_version_factor: [default]
50-
os: [ macos-10.15, macos-latest ]
46+
os: [ macos-11, macos-12 ]
5147
env:
5248
TOX_ENV: local-${{ matrix.tox_env }}
5349
LOCAL_ARTIFACT_NAME: sage-local-commit-${{ github.sha }}-tox-local-${{ matrix.tox_env }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}
@@ -158,22 +154,10 @@ jobs:
158154
fail-fast: false
159155
max-parallel: 4
160156
matrix:
161-
os: [ macos-10.15, macos-11.0 ]
162-
tox_system_factor: [macos-nobootstrap, macos-nobootstrap-python3_pythonorg]
157+
os: [ macos-11, macos-12 ]
158+
tox_system_factor: [macos-nobootstrap]
163159
tox_packages_factor: [minimal]
164-
# As of 2021-03, default is 12.4
165-
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
166160
xcode_version_factor: [default]
167-
include:
168-
# Test xcode 11.7 only on macos-10.15
169-
- tox_system_factor: macos-nobootstrap
170-
tox_packages_factor: minimal
171-
xcode_version_factor: 11.7
172-
os: macos-10.15
173-
- tox_system_factor: macos-nobootstrap-python3_pythonorg
174-
tox_packages_factor: minimal
175-
xcode_version_factor: 11.7
176-
os: macos-10.15
177161
env:
178162
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
179163
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-xcode_${{ matrix.xcode_version_factor }}
@@ -198,13 +182,6 @@ jobs:
198182
- name: Install test prerequisites
199183
run: |
200184
sudo /usr/bin/python3 -m pip install tox
201-
- name: Install python3 from python.org
202-
# As of 2020-03-30 (https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md),
203-
# Python 3.7.7 is installed on GitHub Actions runners. But we install our own copy from the python.org binary package.
204-
run: |
205-
curl -o python3.pkg https://www.python.org/ftp/python/3.7.7/python-3.7.7-macosx10.9.pkg
206-
sudo installer -verbose -pkg python3.pkg -target /
207-
if: contains(matrix.tox_system_factor, 'python3_pythonorg')
208185
- name: Build and test with tox
209186
# We use a high parallelization on purpose in order to catch possible parallelization bugs in the build scripts.
210187
# For doctesting, we use a lower parallelization to avoid timeouts.

.github/workflows/docker.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ on:
1818
default: >-
1919
["ubuntu-trusty-toolchain-gcc_9",
2020
"ubuntu-xenial-toolchain-gcc_9",
21-
"ubuntu-bionic-gcc_8",
21+
"ubuntu-bionic-gcc_8-python3.8",
2222
"ubuntu-focal",
2323
"ubuntu-jammy",
2424
"ubuntu-kinetic",
2525
"debian-buster",
2626
"debian-bullseye",
2727
"debian-bookworm",
2828
"debian-sid",
29-
"linuxmint-19-gcc_8",
30-
"linuxmint-19.3-gcc_8",
29+
"linuxmint-19-gcc_8-python3.8",
30+
"linuxmint-19.3-gcc_8-python3.8",
3131
"linuxmint-20.1",
3232
"linuxmint-20.2",
3333
"linuxmint-20.3",
3434
"linuxmint-21",
35-
"fedora-29",
36-
"fedora-30",
35+
"fedora-29-python3.8",
36+
"fedora-30-python3.8",
3737
"fedora-31",
3838
"fedora-32",
3939
"fedora-33",
@@ -42,17 +42,16 @@ on:
4242
"fedora-36",
4343
"fedora-37",
4444
"centos-7-devtoolset-gcc_11",
45-
"centos-stream-8",
46-
"centos-stream-9",
45+
"centos-stream-8-python3.9",
46+
"centos-stream-9-python3.9",
4747
"gentoo-python3.9",
4848
"gentoo-python3.10",
4949
"archlinux-latest",
50-
"opensuse-15.3-gcc_11",
51-
"opensuse-15.4-gcc_11",
52-
"opensuse-tumbleweed",
50+
"opensuse-15.3-gcc_11-python3.9",
51+
"opensuse-15.4-gcc_11-python3.10",
52+
"opensuse-tumbleweed-python3.10",
5353
"conda-forge",
54-
"ubuntu-bionic-i386",
55-
"manylinux-2_24-i686",
54+
"ubuntu-bionic-gcc_8-i386",
5655
"debian-buster-i386",
5756
]
5857
tox_packages_factors:
@@ -62,9 +61,16 @@ on:
6261
["minimal",
6362
"standard",
6463
]
64+
extra_sage_packages:
65+
description: 'Extra Sage packages to install as system packages'
66+
type: string
67+
default: ""
6568
max_parallel:
6669
type: number
6770
default: 24
71+
free_disk_space:
72+
default: false
73+
type: boolean
6874
#
6975
# Publishing to GitHub Packages
7076
#
@@ -128,14 +134,15 @@ jobs:
128134
FROM_DOCKER_REPOSITORY: ${{ inputs.from_docker_repository }}
129135
FROM_DOCKER_TARGET: ${{ inputs.from_docker_target }}
130136
FROM_DOCKER_TAG: ${{ inputs.from_docker_tag }}
131-
137+
EXTRA_CONFIGURE_ARGS: --enable-fat-binary
138+
EXTRA_SAGE_PACKAGES: ${{ inputs.extra_sage_packages }}
132139
steps:
133140
- name: Check out SageMath
134141
uses: actions/checkout@v2
135142
with:
136143
repository: ${{ inputs.sage_repo }}
137144
ref: ${{ inputs.sage_ref }}
138-
fetch-depth: 2000
145+
fetch-depth: 10000
139146
- name: fetch tags
140147
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
141148
- name: free disk space
@@ -149,6 +156,7 @@ jobs:
149156
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 50
150157
sudo apt-get --fix-broken --yes remove $(dpkg-query -f '${Package}\n' -W | grep -E '^(ghc-|google-cloud-sdk|google-chrome|firefox|mysql-server|dotnet-sdk|hhvm|mono)') || echo "(error ignored)"
151158
df -h
159+
if: inputs.free_disk_space
152160
- name: Check out git-trac-command
153161
uses: actions/checkout@v2
154162
with:
@@ -190,7 +198,7 @@ jobs:
190198
TOKEN="${{ secrets.GITHUB_TOKEN }}"
191199
fi
192200
if echo "$TOKEN" | docker login ghcr.io -u ${{ github.actor }} --password-stdin; then
193-
echo "DOCKER_PUSH_REPOSITORY=${{ inputs.docker_push_repository }}" >> $GITHUB_ENV
201+
echo "DOCKER_PUSH_REPOSITORY=$(echo ${{ inputs.docker_push_repository }} | tr "[:upper:]" "[:lower:]")" >> $GITHUB_ENV
194202
echo "DOCKER_CONFIG_FILE=$HOME/.docker/config.json" >> $GITHUB_ENV
195203
fi
196204
# From the docker documentation via .ci/update-env.sh:

.lgtm.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.zenodo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"description": "Mirror of the Sage https://sagemath.org/ source tree",
33
"license": "other-open",
4-
"title": "sagemath/sage: 9.8.beta2",
5-
"version": "9.8.beta2",
4+
"title": "sagemath/sage: 9.8.beta4",
5+
"version": "9.8.beta4",
66
"upload_type": "software",
7-
"publication_date": "2022-10-16",
7+
"publication_date": "2022-11-21",
88
"creators": [
99
{
1010
"affiliation": "SageMath.org",
@@ -15,7 +15,7 @@
1515
"related_identifiers": [
1616
{
1717
"scheme": "url",
18-
"identifier": "https://github.com/sagemath/sage/tree/9.8.beta2",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.8.beta4",
1919
"relation": "isSupplementTo"
2020
},
2121
{

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.8.beta2, Release Date: 2022-10-16
1+
SageMath version 9.8.beta4, Release Date: 2022-11-21

build/bin/write-dockerfile.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ EOF
6363
RUN sed -i.bak $DIST_UPGRADE /etc/apt/sources.list && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
6464
EOF
6565
fi
66-
if [ -n "$EXTRA_REPOSITORY" ]; then
66+
if [ -n "$EXTRA_REPOSITORIES" ]; then
6767
cat <<EOF
6868
RUN $UPDATE $INSTALL software-properties-common && ($INSTALL gpg gpg-agent || echo "(ignored)")
69-
RUN $SUDO add-apt-repository $EXTRA_REPOSITORY
7069
EOF
70+
for repo in $EXTRA_REPOSITORIES; do
71+
cat <<EOF
72+
RUN $SUDO add-apt-repository $repo
73+
EOF
74+
done
7175
fi
7276
esac
7377
;;

build/make/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,9 @@ $(foreach pkgname, $(NORMAL_PACKAGES) $(SCRIPT_PACKAGES),\
443443
#
444444
# Since Python's self-tests seem to fail on all platforms, we disable
445445
# its test suite by default.
446+
# meson_python 0.10.0 fails on some platforms, so we reduce it to warnings.
446447
# However, if SAGE_CHECK=warn, we do not do that.
447-
SAGE_CHECK_PACKAGES_DEFAULT_yes := !python3
448+
SAGE_CHECK_PACKAGES_DEFAULT_yes := !python3,?meson_python
448449
SAGE_CHECK_PACKAGES_DEFAULT_warn :=
449450
SAGE_CHECK_PACKAGES_DEFAULT_no :=
450451
comma := ,

build/pkgs/_develop/dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
_bootstrap git pytest pytest_xdist
1+
_bootstrap git pytest pytest_xdist github_cli
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python310

0 commit comments

Comments
 (0)