Skip to content

Commit

Permalink
Merge branch 'develop' into oriented_matroids
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaligarmo authored Jan 1, 2025
2 parents 062f60a + c9dd1e8 commit 997704d
Show file tree
Hide file tree
Showing 885 changed files with 14,920 additions and 13,853 deletions.
4 changes: 2 additions & 2 deletions .ci/write-dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ cat <<EOF
FROM with-system-packages AS bootstrapped
#:bootstrapping:
RUN rm -rf /new /sage/.git
$ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap bootstrap-conda configure.ac sage .homebrew-build-env tox.ini Pipfile.m4 .gitignore /new/
$ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap configure.ac sage .homebrew-build-env tox.ini .gitignore /new/
$ADD config/config.rpath /new/config/config.rpath
$ADD src/doc/bootstrap /new/src/doc/bootstrap
$ADD src/bin /new/src/bin
$ADD src/Pipfile.m4 src/pyproject.toml src/requirements.txt.m4 src/setup.cfg.m4 src/VERSION.txt /new/src/
$ADD src/pyproject.toml src/requirements.txt.m4 src/setup.cfg.m4 src/VERSION.txt /new/src/
$ADD m4 /new/m4
$ADD pkgs /new/pkgs
$ADD build /new/build
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/onCreate-conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda update -y --all --override-channels -c conda-forge
conda install mamba=1 -n base -y
mamba env create -y --file environment-dev-3.11-linux.yml || mamba env update -y --file environment-dev-3.11-linux.yml
mamba env create -y --file environment-3.11-linux.yml || mamba env update -y --file environment-3.11-linux.yml
conda init bash

# Build sage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,6 @@ jobs:

- name: Upload coverage to codecov
if: (success() || failure()) && steps.container.outcome == 'success'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: .coverage/coverage-report
23 changes: 23 additions & 0 deletions .github/workflows/changelog_trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger Changelog Generation

on:
release:
types: [published]

jobs:
trigger-website-repo-workflow:
runs-on: ubuntu-latest
steps:
- name: Trigger Generate Changelog Workflow in website repo
if: "!github.event.release.prerelease"
env:
GITHUB_PAT: ${{ secrets.WEBSITE_ACCESS_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_PAT" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/sagemath/website/actions/workflows/generate_changelog.yml/dispatches \
-d '{"ref":"master","inputs":{"release_tag":"'"$RELEASE_TAG"'"}}'
2 changes: 1 addition & 1 deletion .github/workflows/ci-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
use-mamba: true
channels: conda-forge
channel-priority: true
activate-environment: sage
activate-environment: sage-dev
environment-file: ${{ matrix.conda-env }}-${{ matrix.python }}-${{ startsWith(matrix.os, 'macos') && (startsWith(runner.arch, 'ARM') && 'macos' || 'macos-x86_64') || 'linux' }}.yml

- name: Print Conda environment
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
tox_packages_factors: >-
["standard"]
docker_push_repository: ghcr.io/${{ github.repository }}/
logs_artifact: false

# All platforms. This duplicates the default platform, but why not,
# it makes it more robust regarding random timeouts.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ jobs:
key: ${{ runner.os }}-meson-${{ matrix.python }}

- name: Setup Conda environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
miniforge-version: latest
use-mamba: true
channels: conda-forge
channel-priority: true
activate-environment: sage
activate-environment: sage-dev
environment-file: environment-${{ matrix.python }}-${{ startsWith(matrix.os, 'macos') && (startsWith(runner.arch, 'ARM') && 'macos' || 'macos-x86_64') || 'linux' }}.yml

- name: Print Conda environment
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/conda-lock-update.py

This file was deleted.

9 changes: 7 additions & 2 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ jobs:
git config --global user.email "ci-sage@example.com"
git config --global user.name "Build documentation workflow"
unzip doc.zip
rm doc.zip
PR_NUMBER=""
if [[ "$GITHUB_REF" =~ refs/pull/([0-9]+)/merge ]]; then
PR_NUMBER="${BASH_REMATCH[1]}"
Expand Down Expand Up @@ -202,6 +203,10 @@ jobs:
if: steps.docbuild.outcome == 'success'
run: |
set -ex
# Remove any existing html directory before copying a new one
if [ -d "doc/html" ]; then
rm -rf doc/html
fi
# Simpler "docker cp --follow-link ... doc" does not work
mkdir -p doc
mkdir -p temp
Expand All @@ -217,7 +222,7 @@ jobs:
fi
# If so, then create CHANGES.html
if [[ -n "$PR_NUMBER" ]]; then
(cd doc && git commit -a -m 'new')
(cd doc && git add -A && git commit --quiet -m 'new')
# Wipe out chronic diffs of new doc against old doc before creating CHANGES.html
(cd doc && \
find . -name "*.html" | xargs sed -i -e '/This is documentation/ s/ built with GitHub PR .* for development/ for development/' \
Expand All @@ -229,7 +234,7 @@ jobs:
# Since HEAD is at commit 'wipe-out', HEAD~1 is commit 'new' (new doc), HEAD~2 is commit 'old' (old doc)
(cd doc && git diff $(git rev-parse HEAD~2) -- "*.html") > diff.txt
# Restore the new doc dropping changes by "wipe out"
(cd doc && git checkout -q -f HEAD~1)
(cd doc && git checkout --quiet -f HEAD~1)
.ci/create-changes-html.sh diff.txt doc
# Sometimes rm -rf .git errors out because of some diehard hidden files
# So we simply move it out of the doc directory
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ on:
description: 'Elapsed time (seconds) at which to kill the build'
default: 20000
type: number
logs_artifact:
default: true
type: boolean
#
# Publishing to GitHub Packages
#
Expand Down Expand Up @@ -260,11 +263,12 @@ jobs:
cp -r .tox/$TOX_ENV/* "artifacts/$LOGS_ARTIFACT_NAME"
rm -rf "artifacts/$LOGS_ARTIFACT_NAME"/{bin,lib,pyvenv.cfg}
if: always()
- uses: actions/upload-artifact@v4
- name: Upload logs artifact
uses: actions/upload-artifact@v4
with:
path: artifacts
name: ${{ env.LOGS_ARTIFACT_NAME }}
if: always()
if: always() && inputs.logs_artifact
- name: Print out logs for immediate inspection
# and markup the output with GitHub Actions logging commands
run: |
Expand Down
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# no longer generated, but may still be in user worktrees
/src/lib/pkgconfig

# Environment files generated by bootstrap-conda.
# The files without Python version and in src are no longer generated
# Conda environment files
# The files without Python version, with -dev or in src are no longer generated
# but may still be in users' directories.
/environment.yml
/environment-3.9.yml
Expand Down Expand Up @@ -56,10 +56,6 @@

/src/setup.cfg
/src/requirements.txt
/src/Pipfile
/src/Pipfile.lock
/Pipfile
/Pipfile.lock

# Various editors
*~
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tasks:
- name: Setup
# Create conda environment, then configure and build sage
init: >-
&& mamba env create --file environment-dev-3.11-linux.yml --prefix venv
&& mamba env create --file environment-3.11-linux.yml --prefix venv
&& conda config --append envs_dirs $(pwd)
&& conda activate $(pwd)/venv
&& ./bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .upstream.d/20-github.com-sagemath-sage-releases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Upstream packages as uploaded as GitHub release assets.
# This file is automatically updated by the sage-update-version script.
https://github.com/sagemath/sage/releases/download/10.6/
https://github.com/sagemath/sage/releases/download/10.5/
https://github.com/sagemath/sage/releases/download/10.4/
https://github.com/sagemath/sage/releases/download/10.3/
84 changes: 82 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,90 @@
],
"python.testing.unittestEnabled": false,
"cSpell.words": [
"furo",
"adic",
"arccos",
"arccosh",
"arcsin",
"arcsinh",
"arctan",
"arctanh",
"Bejger",
"bigcup",
"cachefunc",
"charpoly",
"classmethod",
"clopen",
"codim",
"codomain",
"coframe",
"coframes",
"Conda",
"cputime",
"cysignals",
"Cython",
"d'Alembertian",
"dalembertian",
"disp",
"doctest",
"doctests",
"emptyset",
"figsize",
"Florentin",
"fontsize",
"forall",
"furo",
"Gourgoulhon",
"grayskull",
"groebner",
"homeomorphic",
"homset",
"homsets",
"hypersurfaces",
"infty",
"Jaffredo",
"Katsura",
"Koeppe",
"longmapsto",
"longrightarrow",
"mapsto",
"mathbb",
"mathrm",
"Michal",
"micjung",
"Minkowski",
"Möbius",
"mpfr",
"nabla",
"Nullspace",
"padics",
"pari",
"prandom",
"Pynac",
"rightarrow",
"sagemath",
"Cython"
"scalarfield",
"SEEALSO",
"setminus",
"smithform",
"subchart",
"subcharts",
"subframe",
"subframes",
"subobjects",
"subring",
"superchart",
"supercharts",
"supersets",
"sympy",
"tensorfield",
"trigsimp",
"varphi",
"vbundle",
"vecmat",
"vectorfield",
"walltime",
"zmax",
"zmin"
],
"editor.formatOnType": true,
"esbonio.sphinx.confDir": ""
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: SageMath
abstract: SageMath is a free open-source mathematics software system.
authors:
- name: "The SageMath Developers"
version: 10.5.rc1
version: 10.6.beta2
doi: 10.5281/zenodo.8042260
date-released: 2024-11-23
date-released: 2024-12-22
repository-code: "https://github.com/sagemath/sage"
url: "https://www.sagemath.org/"
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ bootstrap-clean:
rm -rf config/install-sh config/compile config/config.guess config/config.sub config/missing configure build/make/Makefile-auto.in
rm -f src/doc/en/installation/*.txt
find src/doc/en/reference/spkg -name index.rst -prune -o -maxdepth 1 -name "*.rst" -exec rm -f {} \+
for a in environment environment-optional src/environment src/environment-dev src/environment-optional; do rm -f $$a.yml $$a-3.[89].yml $$a-3.1[0-9].yml; done
rm -f src/Pipfile
for a in environment environment-optional src/environment src/environment-optional; do rm -f $$a.yml $$a-3.[89].yml $$a-3.1[0-9].yml; done
rm -f src/requirements.txt
rm -f src/setup.cfg
rm -f build/pkgs/cypari/version_requirements.txt
Expand Down
Loading

0 comments on commit 997704d

Please sign in to comment.