Skip to content

Commit

Permalink
Bump python version to 3.10 and fix the *loop* parameter was removed …
Browse files Browse the repository at this point in the history
…from Lock()
  • Loading branch information
reuvenstr committed Dec 8, 2024
1 parent 27ecd52 commit 412ad28
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 363 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.10.15
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.10.15
- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim
FROM python:3.10-slim

# Install python requirements
WORKDIR /opt
Expand Down
2 changes: 1 addition & 1 deletion jwthenticator/loop_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from jwthenticator.consts import DB_URI

main_event_loop = asyncio.new_event_loop()
db_lock = asyncio.Lock(loop=main_event_loop)
db_lock = asyncio.Lock()

def is_using_sqlite()->bool:
return "sqlite://" in DB_URI
Loading

0 comments on commit 412ad28

Please sign in to comment.