Skip to content

Commit 1fc87fd

Browse files
author
Release Manager
committed
sagemathgh-40936: Require Python 3.12 or newer; remove outdated workarounds <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> In line with [Spec 0](https://scientific- python.org/specs/spec-0000/#drop-schedule), we remove support for Python 3.11. Many outdated patches/workarounds for these older (or even older) Python versions are removed, but I cannot guarantee that I've found all obsolete ones. Also CI tests for systems using Python 3.11 are removed. For next years cleaning job: - Change version in `pyproject.toml` and `build/pkgs/python3/spkg- configure.m4` - Search for `3.12`, `312`,`3,12`, `PY_VERSION`, `PY_MINOR_VERSION` and `sys.version_info` Similar PRs: - sagemath#39251 ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> - sagemath#39163 URL: sagemath#40936 Reported by: Tobias Diez Reviewer(s): Chenxin Zhong, Dima Pasechnik
2 parents 4d31b69 + 6867d59 commit 1fc87fd

File tree

58 files changed

+51
-2678
lines changed

Some content is hidden

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

58 files changed

+51
-2678
lines changed

.devcontainer/onCreate-conda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ conda config --env --add channels conda-forge
66
conda config --env --set channel_priority strict
77
conda update -y --all --override-channels -c conda-forge
88
conda install mamba=1 -n base -y
9-
mamba env create -y --file environment-3.11-linux.yml || mamba env update --file environment-3.11-linux.yml
9+
mamba env create -y --file environment-3.12-linux.yml || mamba env update --file environment-3.12-linux.yml
1010
conda init bash
1111

1212
# Build sage
13-
conda run -n sage-dev pip install --no-build-isolation -v -v -e . --config-settings=build-dir="build/conda-cp311"
13+
conda run -n sage-dev pip install --no-build-isolation -v -v -e . --config-settings=build-dir="build/conda-cp312"

.devcontainer/portability-almalinux-8-python3.9-minimal/devcontainer.json

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

.devcontainer/portability-almalinux-8-python3.9-minimal/portability-Dockerfile

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

.devcontainer/portability-almalinux-8-python3.9-standard/devcontainer.json

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

.devcontainer/portability-almalinux-8-python3.9-standard/portability-Dockerfile

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

.devcontainer/portability-almalinux-9-python3.11-minimal/devcontainer.json

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

.devcontainer/portability-almalinux-9-python3.11-minimal/portability-Dockerfile

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

.devcontainer/portability-almalinux-9-python3.11-standard/devcontainer.json

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

.devcontainer/portability-almalinux-9-python3.11-standard/portability-Dockerfile

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

.devcontainer/portability-conda-forge-python3.11-minimal/devcontainer.json

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

0 commit comments

Comments
 (0)