Skip to content

Commit f4c1c1b

Browse files
authored
Drop support for Python 3.8 and update setuptools pin (#293)
* - drop support for Python 3.8 and update setuptools pin * - update documentation and tests * - fix package version
1 parent 07950f9 commit f4c1c1b

File tree

12 files changed

+24
-209
lines changed

12 files changed

+24
-209
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
config:
2323
# [Python version, tox env]
2424
- ["3.11", "release-check"]
25-
- ["3.8", "py38"]
2625
- ["3.9", "py39"]
2726
- ["3.10", "py310"]
2827
- ["3.11", "py311"]

.meta.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "d3455844"
5+
commit-id = "d1a00d25"
66

77
[python]
88
with-pypy = false
@@ -47,15 +47,15 @@ testenv-additional = [
4747
" coverage combine",
4848
" coverage html",
4949
" coverage report -m --fail-under=100",
50-
"depends = py38,py39,py310,py311,py311-datetime,py312,py313,coverage",
50+
"depends = py39,py310,py311,py311-datetime,py312,py313,coverage",
5151
]
5252
coverage-command = "pytest --cov=src --cov=tests --cov-report= tests {posargs}"
5353
coverage-setenv = [
5454
"COVERAGE_FILE=.coverage",
5555
]
5656

5757
[coverage]
58-
fail-under = 97.9
58+
fail-under = 97.3
5959

6060
[isort]
6161
additional-sources = "{toxinidir}/tests"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ repos:
1212
- id: autopep8
1313
args: [--in-place, --aggressive, --aggressive]
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.17.0
15+
rev: v3.19.0
1616
hooks:
1717
- id: pyupgrade
18-
args: [--py38-plus]
18+
args: [--py39-plus]
1919
- repo: https://github.com/isidentical/teyit
2020
rev: 0.4.3
2121
hooks:

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Changes
44
7.5 (unreleased)
55
----------------
66

7+
- Drop support for Python 3.8.
8+
9+
- Update setuptools version pin.
10+
(`#292 <https://github.com/zopefoundation/RestrictedPython/issues/292>`_)
11+
712

813
7.4 (2024-10-09)
914
----------------

docs/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
# built documents.
6161
#
6262
# The short X.Y version.
63-
version = '7.4'
63+
version = '7.5'
6464
# The full version, including alpha/beta/rc tags.
65-
release = '7.4'
65+
release = '7.5'
6666

6767
# The language for content autogenerated by Sphinx. Refer to documentation
6868
# for a list of supported languages.
@@ -112,7 +112,6 @@
112112
# Intersphinx Mapping for Links between different Documentations
113113
intersphinx_mapping = {
114114
'python3': ('https://docs.python.org/3', None),
115-
'python38': ('https://docs.python.org/3.8', None),
116115
'python39': ('https://docs.python.org/3.9', None),
117116
'python310': ('https://docs.python.org/3.10', None),
118117
'python311': ('https://docs.python.org/3.11', None),

docs/contributing/ast/python3_7.ast

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

docs/contributing/changes_from37to38.rst

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

docs/contributing/index.rst

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ A (modified style) Copy of all Abstract Grammar Definitions for the Python versi
9898
.. toctree::
9999
:maxdepth: 2
100100

101-
changes_from37to38
102101
changes_from38to39
103102
changes_from39to310
104103
changes_from310to311
@@ -236,12 +235,11 @@ Technical Backgrounds - Links to External Documentation
236235

237236
* AST Grammar of Python (`Status of Python Versions`_)
238237

238+
* `Python 3.13 AST`_ (EOL 2029-10)
239239
* `Python 3.12 AST`_ (EOL 2028-10)
240240
* `Python 3.11 AST`_ (EOL 2027-10)
241241
* `Python 3.10 AST`_ (EOL 2026-10)
242242
* `Python 3.9 AST`_ (EOL 2025-10)
243-
* `Python 3.8 AST`_ (EOL 2024-10)
244-
* `Python 3.7 AST`_ (EOL 2023-06-27)
245243

246244
* `AST NodeVistiors Class`_
247245
* `AST NodeTransformer Class`_
@@ -259,6 +257,8 @@ Todos
259257
260258
.. _`What's new in Python`: https://docs.python.org/3/whatsnew/
261259

260+
.. _`What's new in Python 3.13`: https://docs.python.org/3.13/whatsnew/3.13.html
261+
262262
.. _`What's new in Python 3.12`: https://docs.python.org/3.12/whatsnew/3.12.html
263263

264264
.. _`What's new in Python 3.11`: https://docs.python.org/3.11/whatsnew/3.11.html
@@ -267,10 +267,6 @@ Todos
267267

268268
.. _`What's new in Python 3.9`: https://docs.python.org/3.9/whatsnew/3.9.html
269269

270-
.. _`What's new in Python 3.8`: https://docs.python.org/3.8/whatsnew/3.8.html
271-
272-
.. _`What's new in Python 3.7`: https://docs.python.org/3.7/whatsnew/3.7.html
273-
274270
.. _`Status of Python Versions`: https://devguide.python.org/versions/
275271

276272
.. _`Concept of Immutable Types and Python Example`: https://en.wikipedia.org/wiki/Immutable_object#Python
@@ -285,6 +281,8 @@ Todos
285281

286282
.. _`Python 3 AST`: https://docs.python.org/3/library/ast.html#abstract-grammar
287283

284+
.. _`Python 3.13 AST`: https://docs.python.org/3.13/library/ast.html#abstract-grammar
285+
288286
.. _`Python 3.12 AST`: https://docs.python.org/3.12/library/ast.html#abstract-grammar
289287

290288
.. _`Python 3.11 AST`: https://docs.python.org/3.11/library/ast.html#abstract-grammar
@@ -293,10 +291,6 @@ Todos
293291

294292
.. _`Python 3.9 AST`: https://docs.python.org/3.9/library/ast.html#abstract-grammar
295293

296-
.. _`Python 3.8 AST`: https://docs.python.org/3.8/library/ast.html#abstract-grammar
297-
298-
.. _`Python 3.7 AST`: https://docs.python.org/3.7/library/ast.html#abstract-grammar
299-
300294
.. _`AST NodeVistiors Class`: https://docs.python.org/3/library/ast.html#ast.NodeVisitor
301295

302296
.. _`AST NodeTransformer Class`: https://docs.python.org/3/library/ast.html#ast.NodeTransformer

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RestrictedPython is not a sandbox system or a secured environment, but it helps
1515
Supported Python versions
1616
=========================
1717

18-
RestrictedPython supports CPython 3.7 up to 3.12.
18+
RestrictedPython supports CPython 3.9 up to 3.13.
1919
It does _not_ support PyPy or other alternative Python implementations.
2020

2121
Contents

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
44

55
[build-system]
6-
requires = ["setuptools<74"]
6+
requires = ["setuptools <= 75.6.0"]
77
build-backend = "setuptools.build_meta"
88

99
[tool.coverage.run]
1010
branch = true
1111
source = ["RestrictedPython"]
1212

1313
[tool.coverage.report]
14-
fail_under = 97.9
14+
fail_under = 97.3
1515
precision = 2
1616
ignore_errors = true
1717
show_missing = true

0 commit comments

Comments
 (0)