Skip to content

Commit 8f147de

Browse files
authored
Merge branch 'develop' into graded_lattices
2 parents 52c27bd + aa27703 commit 8f147de

File tree

1,259 files changed

+13981
-12069
lines changed

Some content is hidden

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

1,259 files changed

+13981
-12069
lines changed

.devcontainer/onCreate-meson.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ uv pip install \
2323
"cypari2 >=2.2.1" \
2424
"cysignals >=1.11.2, != 1.12.0" \
2525
"cython >=3.0, != 3.0.3, < 3.1.0" \
26-
"gmpy2 ~=2.1.b999" \
26+
"gmpy2 >=2.1.5" \
2727
memory_allocator \
2828
"numpy >=1.25" \
2929
jinja2 \
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// See https://aka.ms/devcontainer.json for format details.
2+
{
3+
"name": "debian-forky",
4+
"image": "debian:forky",
5+
"onCreateCommand": ".devcontainer/onCreate-meson.sh || true",
6+
"features": {
7+
"ghcr.io/devcontainers/features/git": {},
8+
"ghcr.io/devcontainers/features/python:1": {},
9+
"../uv": {
10+
"version": "latest"
11+
}
12+
},
13+
"containerEnv": {
14+
"devcontainerId": "${devcontainerId}",
15+
"UV_PROJECT_ENVIRONMENT": ".venv-${devcontainerId}"
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"ms-python.python"
21+
]
22+
}
23+
}
24+
}

.github/workflows/ci-distro.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@ on:
1919
paths:
2020
- '.github/workflows/ci-distro.yml'
2121
- 'build/pkgs/**'
22+
- 'build/make/**'
2223
- 'configure.ac'
23-
- '!build/pkgs/sage_conf/**'
24-
- '!build/pkgs/sage_docbuild/**'
25-
- '!build/pkgs/sage_setup/**'
26-
- '!build/pkgs/sage_sws2rst/**'
27-
- '!build/pkgs/sagelib/**'
28-
- '!build/pkgs/sagemath_*/**'
2924
push:
3025
tags:
3126
- '*'
@@ -35,7 +30,7 @@ on:
3530
env:
3631
TARGETS_PRE: all-sage-local
3732
TARGETS: build
38-
TARGETS_OPTIONAL: ptest
33+
TARGETS_OPTIONAL: ptestlong
3934

4035
permissions:
4136
packages: write
@@ -56,7 +51,7 @@ jobs:
5651
# FIXME: duplicated from env.TARGETS
5752
targets_pre: all-sage-local
5853
targets: build
59-
targets_optional: ptest
54+
targets_optional: ptestlong
6055
tox_system_factors: >-
6156
["ubuntu-jammy"]
6257
tox_packages_factors: >-
@@ -71,7 +66,7 @@ jobs:
7166
docker_targets: "with-system-packages configured with-targets-pre with-targets with-targets-optional"
7267
targets_pre: all-sage-local
7368
targets: build
74-
targets_optional: ptest
69+
targets_optional: ptestlong
7570
tox_packages_factors: >-
7671
["standard"]
7772
docker_push_repository: ghcr.io/${{ github.repository }}/

.github/workflows/ci-macos.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
version:
38-
- '13'
3938
- '14'
4039
- '15'
4140

.github/workflows/ci-meson.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,24 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: ['ubuntu', 'macos', 'windows']
31-
python: ['3.11', '3.12']
31+
python: ['3.12', '3.13']
3232
tests: ['all']
3333
editable:
3434
${{ fromJson(github.event_name == 'pull_request' && '[false]' || '[false, true]') }}
3535
include:
36+
# One run for oldest supported Python
37+
- os: 'ubuntu'
38+
python: '3.11'
39+
tests: 'all'
40+
# Test only changed files
3641
- os: 'ubuntu'
3742
python: '3.12'
3843
tests: 'new'
39-
# one additional editable run in pull_request, this has no effect if not pull_request
44+
# One additional editable run in pull_request, this has no effect if not pull_request
4045
- os: 'ubuntu'
4146
python: '3.12'
4247
editable: true
4348
tests: 'all'
44-
- os: windows
45-
python: '3.13'
46-
tests: 'all'
4749

4850
steps:
4951
- uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
container:
2424
- fedora:41
2525
- fedora:42
26+
- debian:forky
2627
- ghcr.io/void-linux/void-glibc-full
2728
- archlinux
2829
#- ubuntu:22.04 - fails due to issue with cypari2
@@ -91,7 +92,7 @@ jobs:
9192
"cypari2 >=2.2.1" \
9293
"cysignals >=1.11.2, != 1.12.0" \
9394
"cython >=3.0, != 3.0.3, < 3.1.0" \
94-
"gmpy2 ~=2.1.b999" \
95+
"gmpy2 >=2.1.5" \
9596
memory_allocator \
9697
"numpy >=1.25" \
9798
jinja2 \

.github/workflows/dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
# SPKGs to install as system packages
186186
SPKGS: _bootstrap _prereq
187187
# Non-Python packages to install as spkgs
188-
TARGETS_PRE: gmp mpfr mpc bliss coxeter3 mcqd meataxe sirocco boost_cropped tdlib
188+
TARGETS_PRE: gmp mpfr mpc bliss coxeter3 mcqd meataxe sirocco tdlib
189189
CIBW_BUILD: "*${{ matrix.build }}*"
190190
# Disable building PyPy wheels on all platforms
191191
CIBW_SKIP: "pp*"
@@ -241,7 +241,7 @@ jobs:
241241
run: |
242242
"${{ steps.python.outputs.python-path }}" -m pip install cibuildwheel==3.0.1
243243
export PATH=build/bin:$PATH
244-
echo CIBW_BEFORE_ALL="( $(sage-print-system-package-command debian --yes --no-install-recommends install $(sage-get-system-packages debian $SPKGS)) || $(sage-print-system-package-command fedora --yes --no-install-recommends install $(sage-get-system-packages fedora $SPKGS | sed s/pkg-config/pkgconfig/)) || ( $(sage-print-system-package-command homebrew --yes --no-install-recommends install $(sage-get-system-packages homebrew $SPKGS)) || $(sage-print-system-package-command alpine --yes --no-install-recommends install $(sage-get-system-packages alpine $SPKGS)) || echo error ignored) ) && if cp /host/sage-\$AUDITWHEEL_PLAT/config.status . 2>/dev/null; then chmod +x config.status; fi && if [ -x ./config.status ]; then ./config.status; else ./configure --enable-build-as-root ${{ startsWith(matrix.os, 'ubuntu') && '--prefix=/host/sage-\$AUDITWHEEL_PLAT' || '' }} && cp config.status prefix/; fi && MAKE=\"make -j6\" make V=0 $TARGETS_PRE && (echo \"sage_conf @ file://\$(pwd)/pkgs/sage-conf\" && echo \"sage_setup @ file://\$(pwd)/pkgs/sage-setup\") > constraints.txt" >> "$GITHUB_ENV"
244+
echo CIBW_BEFORE_ALL="( $(sage-print-system-package-command debian --yes --no-install-recommends install $(sage-get-system-packages debian $SPKGS)) || $(sage-print-system-package-command fedora --yes --no-install-recommends install $(sage-get-system-packages fedora $SPKGS | sed s/pkg-config/pkgconfig/)) || ( $(sage-print-system-package-command homebrew --yes --no-install-recommends install $(sage-get-system-packages homebrew $SPKGS)) || $(sage-print-system-package-command alpine --yes --no-install-recommends install $(sage-get-system-packages alpine $SPKGS)) || echo error ignored) ) && if cp /host/sage-\$AUDITWHEEL_PLAT/config.status . 2>/dev/null; then chmod +x config.status; fi && if [ -x ./config.status ]; then ./config.status; else ./configure --enable-build-as-root ${{ startsWith(matrix.os, 'ubuntu') && '--prefix=/host/sage-\$AUDITWHEEL_PLAT' || '' }} && cp config.status prefix/; fi && MAKE=\"make -j6\" make V=0 $TARGETS_PRE && echo \"sage_setup @ file://\$(pwd)/pkgs/sage-setup\") > constraints.txt" >> "$GITHUB_ENV"
245245
mkdir -p unpacked
246246
for sdist in dist/$pkg*.tar.gz; do
247247
(cd unpacked && tar xfz - ) < $sdist

.gitignore

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ __pycache__/
157157
# C header generated by Cython
158158
/src/sage/modular/arithgroup/farey_symbol.h
159159
# List of C and C++ files that are actual source files,
160-
# NOT generated by Cython. The same list appears in src/MANIFEST.in
160+
# NOT generated by Cython
161161
!/src/sage/graphs/base/boost_interface.cpp
162162
!/src/sage/graphs/cliquer/cl.c
163163
!/src/sage/graphs/graph_decompositions/sage_tdlib.cpp
@@ -170,7 +170,7 @@ __pycache__/
170170
!/src/sage/rings/bernmm/bern_modp_util.cpp
171171
!/src/sage/rings/bernmm/bern_rat.cpp
172172
!/src/sage/rings/bernmm/bernmm-test.cpp
173-
!/src/sage/rings/padics/transcendantal.c
173+
!/src/sage/rings/padics/transcendental.c
174174
!/src/sage/rings/polynomial/weil/power_sums.c
175175
!/src/sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.cpp
176176
!/src/sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.cpp
@@ -205,16 +205,6 @@ build/pkgs/wheel/version_requirements.txt
205205
/pkgs/*/venv*
206206
/pkgs/*/.venv*
207207

208-
/pkgs/sage-conf_pypi/sage_root/config.log
209-
/pkgs/sage-conf_pypi/sage_root/config.status
210-
/pkgs/sage-conf_pypi/sage_root/local/
211-
/pkgs/sage-conf_pypi/sage_root/logs/
212-
/pkgs/sage-conf_pypi/sage_root/prefix
213-
/pkgs/sage-conf_pypi/sage_root/src/bin/sage-env-config
214-
/pkgs/sage-conf_pypi/sage_root/src/bin/sage-src-env-config
215-
/pkgs/sage-conf_pypi/sage_root/upstream/
216-
/pkgs/sage-conf_pypi/sage_root/venv
217-
218208
/pkgs/sagemath-objects/setup.cfg
219209
/pkgs/sagemath-bliss/setup.cfg
220210
/pkgs/sagemath-coxeter3/setup.cfg
@@ -462,6 +452,7 @@ src/sage/graphs/graph_decompositions/__init__.py
462452
src/sage/graphs/generators/__init__.py
463453
src/sage/graphs/__init__.py
464454
src/sage/graphs/base/__init__.py
455+
src/sage/graphs/tests/__init__.py
465456
src/sage/databases/__init__.py
466457
src/sage/stats/hmm/__init__.py
467458
src/sage/stats/__init__.py

.homebrew-build-env

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ for l in bzip2 texinfo polymake; do
88
fi
99
done
1010
export PATH
11-
PKG_CONFIG_PATH="$HOMEBREW/lib/pkgconfig:$PKG_CONFIG_PATH"
11+
if [ -z "$PKG_CONFIG_PATH" ]; then
12+
PKG_CONFIG_PATH="$HOMEBREW/lib/pkgconfig"
13+
else
14+
PKG_CONFIG_PATH="$HOMEBREW/lib/pkgconfig:$PKG_CONFIG_PATH"
15+
fi
1216
# libpng.pc depends on zlib.pc
1317
for l in openblas openssl readline sqlite zlib; do
1418
if [ -d "$HOMEBREW/opt/$l/lib/pkgconfig" ]; then

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// Exclude symbolic links into SAGE_ROOT/pkgs/
99
"build/pkgs/*/src": true,
1010
// Exclude symbolic links into SAGE_ROOT/src/
11-
"pkgs/sage-conf_pypi/sage_root": true,
1211
"pkgs/sage-docbuild/sage_docbuild": true,
1312
"pkgs/sage-setup/sage_setup": true,
1413
"pkgs/sagemath-*/sage": true,
@@ -43,6 +42,7 @@
4342
"Cython",
4443
"d'Alembertian",
4544
"dalembertian",
45+
"devcontainers",
4646
"disp",
4747
"doctest",
4848
"doctests",

0 commit comments

Comments
 (0)