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:
parent
94915b4d6a
commit
0ed7600604
7 changed files with 9 additions and 9 deletions
4
.github/workflows/linters.yml
vendored
4
.github/workflows/linters.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/publish-assets-develop.yml
vendored
2
.github/workflows/publish-assets-develop.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/server-mariadb-tests.yml
vendored
2
.github/workflows/server-mariadb-tests.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
2
.github/workflows/server-postgres-tests.yml
vendored
2
.github/workflows/server-postgres-tests.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
2
.github/workflows/ui-tests.yml
vendored
2
.github/workflows/ui-tests.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue