build: py3.11 support (#18550)

* chore: bump RestrictedPython

* ci: use py3.11 on development version

* fix: py311 compat changes

* chore: bump to final versions
This commit is contained in:
Ankush Menat 2022-11-03 20:49:05 +05:30 committed by GitHub
parent 94915b4d6a
commit 0ed7600604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View file

@ -42,7 +42,7 @@ jobs:
- name: 'Setup Environment'
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- uses: actions/checkout@v3
- name: Validate Docs
@ -79,7 +79,7 @@ jobs:
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- uses: actions/checkout@v3
- run: |
pip install pip-audit

View file

@ -19,7 +19,7 @@ jobs:
node-version: 16
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Set up bench and build assets
run: |
npm install -g yarn

View file

@ -63,7 +63,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Check for valid Python & Merge Conflicts
run: |

View file

@ -66,7 +66,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Check for valid Python & Merge Conflicts
run: |

View file

@ -64,7 +64,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Check for valid Python & Merge Conflicts
run: |

View file

@ -3,7 +3,7 @@ import socket
import time
from collections import defaultdict
from functools import lru_cache
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, Any, Union
from uuid import uuid4
import redis
@ -61,7 +61,7 @@ def enqueue(
*,
at_front=False,
**kwargs,
) -> "Job" | Any:
) -> Union["Job", Any]:
"""
Enqueue method to be executed using a background worker

View file

@ -20,7 +20,7 @@ dependencies = [
"PyPika~=0.48.9",
"PyQRCode~=1.2.1",
"PyYAML~=5.4.1",
"RestrictedPython~=5.2",
"RestrictedPython~=6.0",
"WeasyPrint==52.5",
"Werkzeug~=2.2.2",
"Whoosh~=2.7.4",