Skip to content

Commit 160fb3a

Browse files
authored
Merge branch 'develop' into p/locally-remove-empty-directory
2 parents e254137 + ab24dac commit 160fb3a

File tree

457 files changed

+4673
-2552
lines changed

Some content is hidden

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

457 files changed

+4673
-2552
lines changed

.devcontainer/portability-centos-stream-8-python3.9-minimal/devcontainer.json

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

.devcontainer/portability-centos-stream-8-python3.9-minimal/portability-Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

.devcontainer/portability-centos-stream-8-python3.9-standard/devcontainer.json

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

.devcontainer/portability-centos-stream-8-python3.9-standard/portability-Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci-linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118
"linuxmint-21.2",
119119
"fedora-38",
120120
"fedora-39",
121-
"centos-stream-8-python3.9",
122121
"centos-stream-9-python3.9",
123122
"almalinux-8-python3.9",
124123
"gentoo-python3.10",

.github/workflows/doc-build.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ jobs:
130130
new_version=$(docker exec BUILD cat src/VERSION.txt)
131131
mkdir -p docs/
132132
docker cp BUILD:/sage/local/share/doc/sage/html docs/
133-
# Wipe out chronic diffs between old doc and new doc
133+
# Wipe out chronic diffs of old doc against new doc
134134
(cd docs && \
135135
find . -name "*.html" | xargs sed -i -e '/class="sidebar-brand-text"/ s/Sage [0-9a-z.]* /Sage '"$new_version"' /' \
136-
-e '/This is documentation for/ s/ built with GitHub PR [^.]*././' \
136+
-e '/<link rel="stylesheet"/ s/?v=[0-9a-f]*"/"/' \
137137
-e 's;'"$mathjax_path_from"';'"$mathjax_path_to"';' \
138138
-e '\;<script type="application/vnd\.jupyter\.widget-state+json">;,\;</script>; d')
139139
# Create git repo from old doc
@@ -166,7 +166,13 @@ jobs:
166166
docker cp BUILD:/sage/local/share/doc/sage/html docs
167167
docker cp BUILD:/sage/local/share/doc/sage/index.html docs
168168
(cd docs && git commit -a -m 'new')
169+
# Wipe out chronic diffs of new doc against old doc
170+
(cd docs && \
171+
find . -name "*.html" | xargs sed -i -e '/This is documentation for/ s/ built with GitHub PR .*. Doc/. Doc/' \
172+
-e '/<link rel="stylesheet"/ s/?v=[0-9a-f]*"/"/')
169173
.ci/create-changes-html.sh $(cd docs && git rev-parse HEAD^) docs
174+
# Restore the new doc from changes by "wipe out"
175+
(cd docs && git checkout -f)
170176
(cd docs && rm -rf .git)
171177
mv CHANGES.html docs
172178
# We also need to replace the symlinks because netlify is not following them
@@ -176,15 +182,25 @@ jobs:
176182
zip -r docs.zip docs
177183
178184
- name: Upload docs
185+
id: upload
179186
if: (success() || failure()) && steps.copy.outcome == 'success'
180187
uses: actions/upload-artifact@v3
181188
with:
182189
name: docs
183190
path: docs.zip
184191

192+
- name: Save space
193+
id: savespace
194+
if: (success() || failure()) && steps.upload.outcome == 'success' && github.repository == 'sagemath/sage' && github.ref == 'refs/heads/develop'
195+
run: |
196+
set -ex
197+
# Save space on runner device before we start to build livedoc
198+
rm -rf docs/
199+
rm -f docs.zip
200+
185201
- name: Build live doc
186202
id: buildlivedoc
187-
if: (success() || failure()) && steps.copy.outcome == 'success' && github.repository == 'sagemath/sage' && github.ref == 'refs/heads/develop'
203+
if: (success() || failure()) && steps.savespace.outcome == 'success'
188204
run: |
189205
export MAKE="make -j5 --output-sync=recurse" SAGE_NUM_THREADS=5
190206
export PATH="build/bin:$PATH"
@@ -203,11 +219,11 @@ jobs:
203219
if: (success() || failure()) && steps.buildlivedoc.outcome == 'success'
204220
run: |
205221
mkdir -p ./livedoc
206-
cp -r -L /sage/local/share/doc/sage/html ./livedoc
207-
cp -r -L /sage/local/share/doc/sage/pdf ./livedoc
208-
cp /sage/local/share/doc/sage/index.html ./livedoc
222+
# We copy everything to a local folder
223+
docker cp --follow-link BUILD:/sage/local/share/doc/sage/html livedoc
224+
docker cp --follow-link BUILD:/sage/local/share/doc/sage/pdf livedoc
225+
docker cp BUILD:/sage/local/share/doc/sage/index.html livedoc
209226
zip -r livedoc.zip livedoc
210-
shell: sh .ci/docker-exec-script.sh BUILD . {0}
211227
212228
- name: Upload live doc
213229
if: (success() || failure()) && steps.copylivedoc.outcome == 'success'

.github/workflows/docker.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ on:
4848
"fedora-39",
4949
"fedora-40",
5050
"centos-7-devtoolset-gcc_11",
51-
"centos-stream-8-python3.9",
5251
"centos-stream-9-python3.9",
5352
"almalinux-8-python3.9",
5453
"almalinux-9-python3.11",

.github/workflows/lint.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828
GH_TOKEN: ${{ github.token }}
2929
SAGE_CI_FIXES_FROM_REPOSITORIES: ${{ vars.SAGE_CI_FIXES_FROM_REPOSITORIES }}
3030

31-
- name: Set up Python
32-
uses: actions/setup-python@v5
33-
with:
34-
python-version: 3.9
35-
36-
- name: Install dependencies
31+
- name: Install test prerequisites
3732
id: deps
38-
run: pip install tox
33+
# From docker.yml
34+
run: |
35+
sudo DEBIAN_FRONTEND=noninteractive apt-get update
36+
sudo DEBIAN_FRONTEND=noninteractive apt-get install tox
3937
4038
- name: Code style check with ruff-minimal
4139
if: (success() || failure()) && steps.deps.outcome == 'success'

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: SageMath
44
abstract: SageMath is a free open-source mathematics software system.
55
authors:
66
- name: "The SageMath Developers"
7-
version: 10.4.beta9
7+
version: 10.4.rc0
88
doi: 10.5281/zenodo.8042260
9-
date-released: 2024-06-09
9+
date-released: 2024-06-22
1010
repository-code: "https://github.com/sagemath/sage"
1111
url: "https://www.sagemath.org/"

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 10.4.beta9, Release Date: 2024-06-09
1+
SageMath version 10.4.rc0, Release Date: 2024-06-22

0 commit comments

Comments
 (0)