Skip to content

Commit

Permalink
- update documentation and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Jan 5, 2025
1 parent 1fdac54 commit a249311
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 197 deletions.
4 changes: 2 additions & 2 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ testenv-additional = [
" coverage combine",
" coverage html",
" coverage report -m --fail-under=100",
"depends = py38,py39,py310,py311,py311-datetime,py312,py313,coverage",
"depends = py39,py310,py311,py311-datetime,py312,py313,coverage",
]
coverage-command = "pytest --cov=src --cov=tests --cov-report= tests {posargs}"
coverage-setenv = [
"COVERAGE_FILE=.coverage",
]

[coverage]
fail-under = 97.9
fail-under = 97.3

[isort]
additional-sources = "{toxinidir}/tests"
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
# Intersphinx Mapping for Links between different Documentations
intersphinx_mapping = {
'python3': ('https://docs.python.org/3', None),
'python38': ('https://docs.python.org/3.8', None),
'python39': ('https://docs.python.org/3.9', None),
'python310': ('https://docs.python.org/3.10', None),
'python311': ('https://docs.python.org/3.11', None),
Expand Down
175 changes: 0 additions & 175 deletions docs/contributing/ast/python3_7.ast

This file was deleted.

5 changes: 0 additions & 5 deletions docs/contributing/changes_from37to38.rst

This file was deleted.

16 changes: 5 additions & 11 deletions docs/contributing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ A (modified style) Copy of all Abstract Grammar Definitions for the Python versi
.. toctree::
:maxdepth: 2

changes_from37to38
changes_from38to39
changes_from39to310
changes_from310to311
Expand Down Expand Up @@ -236,12 +235,11 @@ Technical Backgrounds - Links to External Documentation

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

* `Python 3.13 AST`_ (EOL 2029-10)
* `Python 3.12 AST`_ (EOL 2028-10)
* `Python 3.11 AST`_ (EOL 2027-10)
* `Python 3.10 AST`_ (EOL 2026-10)
* `Python 3.9 AST`_ (EOL 2025-10)
* `Python 3.8 AST`_ (EOL 2024-10)
* `Python 3.7 AST`_ (EOL 2023-06-27)

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

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

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

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

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

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

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

.. _`Status of Python Versions`: https://devguide.python.org/versions/

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

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

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

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

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

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

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

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

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

.. _`AST NodeTransformer Class`: https://docs.python.org/3/library/ast.html#ast.NodeTransformer
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RestrictedPython is not a sandbox system or a secured environment, but it helps
Supported Python versions
=========================

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

Contents
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ branch = true
source = ["RestrictedPython"]

[tool.coverage.report]
fail_under = 97.9
fail_under = 97.3
precision = 2
ignore_errors = true
show_missing = true
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ commands =
coverage combine
coverage html
coverage report -m --fail-under=100
depends = py38,py39,py310,py311,py311-datetime,py312,py313,coverage
depends = py39,py310,py311,py311-datetime,py312,py313,coverage

[testenv:setuptools-latest]
basepython = python3
Expand Down

0 comments on commit a249311

Please sign in to comment.