Skip to content

Commit

Permalink
Test on Python 3.13a1.
Browse files Browse the repository at this point in the history
Update to a RestrictedPython version which can be installed on Python 3.13.
  • Loading branch information
icemac committed Nov 6, 2023
1 parent f209925 commit 87e7912
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -22,26 +22,31 @@ jobs:
- ["macos", "macos-11"]
config:
# [Python version, tox env]
- ["3.9", "release-check"]
- ["3.9", "lint"]
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.12", "py312"]
- ["3.13.0-alpha - 3.13.0", "py313"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
exclude:
- { os: ["windows", "windows-latest"], config: ["3.9", "release-check"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "lint"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "docs"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "coverage"] }
- { os: ["macos", "macos-11"], config: ["3.9", "release-check"] }
- { os: ["macos", "macos-11"], config: ["3.9", "lint"] }
- { os: ["macos", "macos-11"], config: ["3.9", "docs"] }
- { os: ["macos", "macos-11"], config: ["3.9", "coverage"] }
# macOS/Python 3.11+ is set up for universal2 architecture
# which causes build and package selection issues.
- { os: ["macos", "macos-11"], config: ["3.11", "py311"] }
- { os: ["macos", "macos-11"], config: ["3.12", "py312"] }
- { os: ["macos", "macos-11"], config: ["3.13.0-alpha - 3.13.0", "py313"] }

runs-on: ${{ matrix.os[1] }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
Expand Down
4 changes: 2 additions & 2 deletions .meta.toml
Expand Up @@ -2,15 +2,15 @@
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
[meta]
template = "zope-product"
commit-id = "13b9049c"
commit-id = "6f8d8c51"

[python]
with-pypy = false
with-docs = true
with-sphinx-doctests = false
with-windows = true
with-macos = true
with-future-python = false
with-future-python = true

[coverage]
fail-under = 80
Expand Down
2 changes: 1 addition & 1 deletion constraints.txt
Expand Up @@ -16,7 +16,7 @@ RestrictedPython==6.2; python_version == '3.11'
RestrictedPython==6.2; python_version == '3.7'
RestrictedPython==6.2; python_version == '3.8'
RestrictedPython==6.2; python_version == '3.9'
RestrictedPython==7.0a1.dev1; python_version > '3.11'
RestrictedPython==7.0a2.dev0; python_version > '3.11'
WSGIProxy2==0.5.1
WebOb==1.8.7
WebTest==3.0.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-full.txt
Expand Up @@ -17,7 +17,7 @@ RestrictedPython==6.2; python_version == '3.11'
RestrictedPython==6.2; python_version == '3.7'
RestrictedPython==6.2; python_version == '3.8'
RestrictedPython==6.2; python_version == '3.9'
RestrictedPython==7.0a1.dev1; python_version > '3.11'
RestrictedPython==7.0a2.dev0; python_version > '3.11'
WSGIProxy2==0.5.1
WebOb==1.8.7
WebTest==3.0.0
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -11,6 +11,7 @@ envlist =
py310
py311
py312
py313
docs
coverage
pre-commit
Expand Down
12 changes: 6 additions & 6 deletions versions-prod.cfg
Expand Up @@ -16,7 +16,7 @@ MultiMapping = 5.0
Paste = 3.6.0
PasteDeploy = 3.0.1
Persistence = 4.1
RestrictedPython = 7.0a1.dev1
RestrictedPython = 7.0a2.dev0
WebTest = 3.0.0
WSGIProxy2 = 0.5.1
WebOb = 1.8.7
Expand Down Expand Up @@ -87,23 +87,23 @@ zope.viewlet = 5.0
PasteDeploy = 2.1.1
# SoupSieve 2.5 and up requires Python 3.8
soupsieve = 2.4.1
# Only use dev version on Python 3.12
# Only use dev version on Python 3.12 + 3.13
RestrictedPython = 6.2
# cffi 1.16.0 requires Python 3.8
cffi = 1.15.1

[versions:python38]
# Only use dev version on Python 3.12
# Only use dev version on Python 3.12 + 3.13
RestrictedPython = 6.2

[versions:python39]
# Only use dev version on Python 3.12
# Only use dev version on Python 3.12 + 3.13
RestrictedPython = 6.2

[versions:python310]
# Only use dev version on Python 3.12
# Only use dev version on Python 3.12 + 3.13
RestrictedPython = 6.2

[versions:python311]
# Only use dev version on Python 3.12
# Only use dev version on Python 3.12 + 3.13
RestrictedPython = 6.2

0 comments on commit 87e7912

Please sign in to comment.