Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Drop Python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 26, 2022
1 parent 6f4efb0 commit 790dde8
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 44 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/python3/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SAGE_SPKG_CONFIGURE([python3], [
m4_pushdef([MIN_VERSION], [3.7.0])
m4_pushdef([MIN_NONDEPRECATED_VERSION], [3.7.0])
m4_pushdef([MIN_VERSION], [3.8.0])
m4_pushdef([MIN_NONDEPRECATED_VERSION], [3.8.0])
m4_pushdef([LT_STABLE_VERSION], [3.11.0])
m4_pushdef([LT_VERSION], [3.11.0])
AC_ARG_WITH([python],
Expand Down
3 changes: 1 addition & 2 deletions pkgs/sage-docbuild/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ classifiers =
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Mathematics

Expand Down
4 changes: 2 additions & 2 deletions pkgs/sage-setup/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ classifiers =
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Mathematics

Expand All @@ -31,7 +31,7 @@ packages =
sage_setup.autogen.interpreters.specs
sage_setup.command

python_requires = >=3.7, <3.11
python_requires = >=3.8, <3.11

install_requires =
pkgconfig
4 changes: 2 additions & 2 deletions pkgs/sagemath-categories/setup.cfg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ classifiers =
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Mathematics

[options]
python_requires = >=3.7, <3.10
python_requires = >=3.8, <3.11
install_requires =
esyscmd(`sage-get-system-packages install-requires \
cython \
Expand Down
4 changes: 2 additions & 2 deletions pkgs/sagemath-objects/setup.cfg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ classifiers =
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Mathematics

[options]
python_requires = >=3.7, <3.10
python_requires = >=3.8, <3.11
install_requires =
esyscmd(`sage-get-system-packages install-requires \
cython \
Expand Down
2 changes: 1 addition & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"root": "src"
}
],
"pythonVersion": "3.7",
"pythonVersion": "3.8",
"exclude": ["venv"],
"venvPath": "./venv/",
"venv": "./",
Expand Down
6 changes: 3 additions & 3 deletions src/doc/de/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vornehmen. Nach dem Start von Sage sehen Sie etwa folgendes:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘


Expand Down Expand Up @@ -176,7 +176,7 @@ in einer zukünftigen Sitzung (indem Sie einfach die Log-Datei laden).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: logstart setup
Expand All @@ -195,7 +195,7 @@ in einer zukünftigen Sitzung (indem Sie einfach die Log-Datei laden).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: load("setup")
Expand Down
8 changes: 4 additions & 4 deletions src/doc/en/developer/coding_in_python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ that Sage supports. The information regarding the supported versions
can be found in the files ``build/pkgs/python3/spkg-configure.m4`` and
``src/setup.cfg.m4``.

As of Sage 9.4, Python 3.7 is the oldest supported version. Hence,
all language and library features that are available in Python 3.7 can
be used; but features introduced in Python 3.8 cannot be used. If a
As of Sage 9.7, Python 3.8 is the oldest supported version. Hence,
all language and library features that are available in Python 3.8 can
be used; but features introduced in Python 3.9 cannot be used. If a
feature is deprecated in a newer supported version, it must be ensured
that deprecation warnings issued by Python do not lead to failures in
doctests.

Some key language and library features have been backported to Python 3.7
Some key language and library features have been backported to Python 3.8
using one of two mechanisms:

- ``from __future__ import annotations`` (see
Expand Down
2 changes: 1 addition & 1 deletion src/doc/en/developer/portability_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ The ``local-homebrew-macos-standard-python3_xcode`` environment
installs the same packages, but uses XCode's ``/usr/bin/python3``.

The ``local-homebrew-macos-standard-python3_pythonorg`` expects an
installation of Python 3.7 in
installation of Python 3.10 in
``/Library/Frameworks/Python.framework``; this is where the binary
packages provided by python.org install themselves.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/en/installation/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ General procedure
$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.8, Release Date: 2019-06-26 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:

Expand Down
6 changes: 3 additions & 3 deletions src/doc/en/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Sage, you get output similar to the following:
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Expand Down Expand Up @@ -174,7 +174,7 @@ file).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: logstart setup
Expand All @@ -193,7 +193,7 @@ file).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: load("setup")
Expand Down
6 changes: 3 additions & 3 deletions src/doc/fr/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ le shell Sage affiche un message de ce genre :

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘


Expand Down Expand Up @@ -183,7 +183,7 @@ session future (en rechargeant le fichier journal).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: logstart setup
Expand All @@ -202,7 +202,7 @@ session future (en rechargeant le fichier journal).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: load("setup")
Expand Down
6 changes: 3 additions & 3 deletions src/doc/ja/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sageを起動すると,すぐに次のような画面が現れる:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘


Expand Down Expand Up @@ -164,7 +164,7 @@ Sageセッションのロギングと,セッションの保存(:ref:`section-s
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: logstart setup
Expand All @@ -183,7 +183,7 @@ Sageセッションのロギングと,セッションの保存(:ref:`section-s
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: load("setup")
Expand Down
6 changes: 3 additions & 3 deletions src/doc/pt/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ obtém o seguinte:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:

Expand Down Expand Up @@ -175,7 +175,7 @@ arquivo log).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: logstart setup
Expand All @@ -194,7 +194,7 @@ arquivo log).
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: load "setup"
Expand Down
6 changes: 3 additions & 3 deletions src/doc/ru/tutorial/interactive_shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Sage вы увидите вывод, похожий на следующий:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage:
Expand Down Expand Up @@ -167,7 +167,7 @@ Notebook), то вы можете ввести ``%hist``, чтобы вывес
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: logstart setup
Expand All @@ -186,7 +186,7 @@ Notebook), то вы можете ввести ``%hist``, чтобы вывес
was@form:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help.
│ Using Python 3.10.4. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

sage: load("setup")
Expand Down
4 changes: 2 additions & 2 deletions src/setup.cfg.m4
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ classifiers =
Operating System :: POSIX
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Mathematics

[options]
python_requires = >=3.7, <3.11
python_requires = >=3.8, <3.11
install_requires =
esyscmd(`sage-get-system-packages install-requires \
sage_conf \
Expand Down
Loading

0 comments on commit 790dde8

Please sign in to comment.