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 050f8c6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 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
- 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
- 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
7 changes: 3 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exclude = ["jwthenticator/tests"]


[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
sqlalchemy = ">=2.0, < 2.1.0"
sqlalchemy-utils = ">=0.33.0, < 1.0.0"
pg8000 = "1.16.6" # Constant due to - https://github.com/tlocke/pg8000/issues/53
Expand Down

0 comments on commit 050f8c6

Please sign in to comment.