Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 326f19c

Browse files
committed
Merge branch 'develop' into t/26254/cython-binding
2 parents 735fbcf + 84f02af commit 326f19c

File tree

531 files changed

+13995
-3708
lines changed

Some content is hidden

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

531 files changed

+13995
-3708
lines changed

.github/workflows/ci-linux.yml

Lines changed: 7 additions & 0 deletions
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,6 +83,7 @@ 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"
@@ -97,6 +99,7 @@ jobs:
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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ on:
6161
["minimal",
6262
"standard",
6363
]
64+
extra_sage_packages:
65+
description: 'Extra Sage packages to install as system packages'
66+
type: string
67+
default: ""
6468
max_parallel:
6569
type: number
6670
default: 24
71+
free_disk_space:
72+
default: false
73+
type: boolean
6774
#
6875
# Publishing to GitHub Packages
6976
#
@@ -128,14 +135,14 @@ jobs:
128135
FROM_DOCKER_TARGET: ${{ inputs.from_docker_target }}
129136
FROM_DOCKER_TAG: ${{ inputs.from_docker_tag }}
130137
EXTRA_CONFIGURE_ARGS: --enable-fat-binary
131-
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.beta3",
5-
"version": "9.8.beta3",
4+
"title": "sagemath/sage: 9.8.beta4",
5+
"version": "9.8.beta4",
66
"upload_type": "software",
7-
"publication_date": "2022-10-30",
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.beta3",
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.beta3, Release Date: 2022-10-30
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 := ,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python3.10
22
python3.10-dev
3+
python3.10-distutils
34
python3.10-venv
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python3.11
22
python3.11-dev
3+
python3.11-distutils
34
python3.11-venv

0 commit comments

Comments
 (0)