Skip to content

Commit

Permalink
fix: dep updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 20, 2024
1 parent bf14122 commit a976233
Show file tree
Hide file tree
Showing 114 changed files with 633 additions and 496 deletions.
115 changes: 108 additions & 7 deletions .github/workflows/pre-commit-hook-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,123 @@ on:
- synchronize

jobs:
pr-title:
name: Pre commit hook check
pr-title-3_8:
name: Pre commit hook check (3.8)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.8'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
pr-title-3_9:
name: Pre commit hook check (3.9)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
pr-title-3_10:
name: Pre commit hook check (3.10)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
pr-title-3_11:
name: Pre commit hook check (3.11)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
pr-title-3_12:
name: Pre commit hook check (3.12)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
echo "# Dummy change for PR check" >> README.md
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
pr-title-3_13:
name: Pre commit hook check (3.13)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Create virtual environment and install dependencies
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install setuptools
python3 -m pip install "cython<3.0.0" wheel
python3 -m pip install "PyYAML==5.4.1" --no-build-isolation
make dev-install && rm -rf src
- name: Make a dummy change to README.md
run: |
Expand All @@ -32,4 +134,3 @@ jobs:
- run: |
source venv/bin/activate
./hooks/pre-commit.sh
6 changes: 3 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ disable=raw-checker-failed,
consider-using-f-string,
consider-using-in,
no-else-return,
no-self-use,
no-else-raise,
too-many-nested-blocks,
broad-exception-raised,


# Enable the message, report, category or checker with the given id(s). You can
Expand Down Expand Up @@ -603,5 +603,5 @@ min-public-methods=2

# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.26.0] - 2024-11-20

- Not supporting Python 3.7
- Updating dependencies for vulnerability fixes

## [0.25.1] - 2024-11-08

- Fixes issues with dashboard - userroles and tenants
Expand Down
108 changes: 20 additions & 88 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,89 +1,21 @@
aiosmtplib>=1.1.6,<4.0.0
anyio==3.5.0
asgiref==3.5.2
astroid==2.9.3
attrs==21.4.0
black==22.3.0
certifi==2021.10.8
cffi==1.15.0
chardet==4.0.0
charset-normalizer==2.0.12
click==8.1.3
cryptography==36.0.2
Deprecated==1.2.13
Django==3.2.12
django-cors-headers==3.11.0
django-stubs==1.9.0
django-stubs-ext==0.4.0
fastapi==0.68.1
filelock==3.6.0
Flask==2.0.2
Flask-Cors==3.0.10
h11==0.12.0
httpcore==0.15.0
httpx==0.23.0
idna==2.10
importlib-metadata==4.11.3
iniconfig==1.1.1
isort==5.10.1
itsdangerous==2.1.2
Jinja2==3.1.1
jsonschema==3.2.0
lazy-object-proxy==1.7.1
Mako==1.2.0
Markdown==3.3.6
MarkupSafe==2.1.1
mccabe==0.6.1
mypy==0.942
mypy-extensions==0.4.3
nest-asyncio==1.5.1
nodeenv==1.6.0
packaging==21.3
pathspec==0.9.0
pdoc3==0.10.0
phonenumbers==8.13.47
pkce==1.0.3
platformdirs==2.5.1
pluggy==1.0.0
py==1.11.0
pycodestyle==2.8.0
pycparser==2.21
pycryptodome==3.10.4
pydantic==1.9.0
PyJWT==2.6.0
pylint==2.12.2
pyparsing==3.0.7
pyright==1.1.236
pyrsistent==0.18.1
pytest==6.2.5
pytest-asyncio==0.18.0
pytest-mock==3.8.2
pytest-rerunfailures==10.3
python-dotenv==0.19.2
pytz==2022.1
PyYAML==5.4.1
requests==2.25.1
requests-file==1.5.1
requests-mock==1.9.3
respx==0.19.2
rfc3986==1.5.0
six==1.16.0
sniffio==1.2.0
sqlparse==0.4.2
starlette==0.14.2
black==24.8.0
Django==4.2.6
django-cors-headers==4.4.0
django-stubs==4.2.7
django-stubs-ext==4.2.7
fastapi==0.115.5
Flask==3.0.3
flask-cors==5.0.0
nest-asyncio==1.6.0
pylint==3.2.7
pyright==1.1.389
python-dotenv==1.0.1
pytest==8.3.3
pytest-asyncio==0.24.0
pytest-mock==3.14.0
pytest-rerunfailures==14.0
pyyaml==6.0.2
requests-mock==1.12.1
respx==0.21.1
uvicorn==0.32.0
-e .
tldextract==3.1.0
toml==0.10.2
tomli==2.0.1
twilio==9.3.3
types-pytz==2021.3.6
types-PyYAML==6.0.5
typing_extensions==4.1.1
tzdata==2021.5
urllib3==1.26.9
uvicorn==0.18.2
Werkzeug==2.0.3
wrapt==1.13.3
zipp==3.7.0
pyotp==2.9.0
aiofiles==23.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path, include

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

@verify_session()
def get_session_info(request: HttpRequest) -> JsonResponse:
if not isinstance(request.supertokens, SessionContainer): # type: ignore
raise Exception("should never happen")

session_: SessionContainer = request.supertokens # type: ignore
return JsonResponse(
{
Expand Down
4 changes: 2 additions & 2 deletions examples/with-fastapi/with-thirdpartyemailpassword/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dotenv import load_dotenv
from fastapi import Depends, FastAPI
from fastapi.responses import JSONResponse, PlainTextResponse
from starlette.exceptions import ExceptionMiddleware
from starlette.middleware.exceptions import ExceptionMiddleware
from starlette.middleware.cors import CORSMiddleware

from supertokens_python import (
Expand Down Expand Up @@ -153,7 +153,7 @@ def get_website_domain():
telemetry=False,
)

app.add_middleware(ExceptionMiddleware, handlers=app.exception_handlers)
app.add_middleware(ExceptionMiddleware, handlers=app.exception_handlers) # type: ignore


@app.get("/sessioninfo")
Expand Down
2 changes: 1 addition & 1 deletion examples/with-flask/with-thirdpartyemailpassword/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_website_domain():
@app.route("/sessioninfo", methods=["GET"]) # type: ignore
@verify_session()
def get_session_info():
session_ = g.supertokens
session_: session.SessionContainer = g.supertokens
return jsonify(
{
"sessionHandle": session_.get_handle(),
Expand Down
Loading

0 comments on commit a976233

Please sign in to comment.