Skip to content

Commit 72ad699

Browse files
Update dependecies (#305)
* update dependecies * remove Python 3.8 * revert dependency changes * update dependencies * ignore `global ANNOTATIONS` error --------- Co-authored-by: Daniel Townsend <[email protected]>
1 parent 4341c7c commit 72ad699

File tree

8 files changed

+25
-24
lines changed

8 files changed

+25
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.mypy_cache/
2+
.pytest_cache/
23
.vscode/
34
.idea/
45
*.pyc

piccolo_api/fastapi/endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(
121121

122122
self.alias = f"{piccolo_crud.table._meta.tablename}__{id(self)}"
123123

124-
global ANNOTATIONS
124+
global ANNOTATIONS # noqa: F824
125125
ANNOTATIONS[self.alias]["ModelIn"] = self.ModelIn
126126
ANNOTATIONS[self.alias]["ModelOut"] = self.ModelOut
127127
ANNOTATIONS[self.alias]["ModelOptional"] = self.ModelOptional

requirements/dev-requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
black==24.3.0
2-
isort==5.13.2
3-
twine==5.0.0
4-
mypy==1.9.0
1+
black==25.1.0
2+
isort==6.0.1
3+
twine==6.1.0
4+
mypy==1.15.0
55
pip-upgrader==1.4.15
6-
wheel==0.43.0
7-
setuptools==70.0.0
6+
wheel==0.46.1
7+
setuptools==80.8.0

requirements/doc-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Sphinx==7.2.6
2-
piccolo-theme==0.21.0
3-
sphinx-autobuild==2024.2.4
1+
Sphinx==8.3.0
2+
piccolo-theme==0.24.0
3+
sphinx-autobuild==2024.10.3

requirements/e2e-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest==8.0.1
2-
playwright==1.41.2
3-
pytest-playwright==0.4.4
1+
pytest==8.3.5
2+
playwright==1.52.0
3+
pytest-playwright==0.7.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cryptography==43.0.1
1+
cryptography==45.0.2

requirements/test-requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pytest==8.1.1
2-
requests==2.32.0
3-
uvicorn==0.29.0
4-
pytest-cov==5.0.0
5-
flake8==7.0.0
1+
pytest==8.3.5
2+
requests==2.32.3
3+
uvicorn==0.34.2
4+
pytest-cov==6.1.1
5+
flake8==7.2.0
66
piccolo[postgres,sqlite]>=1.0.0
7-
moto==4.2.14
7+
moto==5.1.4

tests/media/test_s3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import boto3
99
from botocore import UNSIGNED
1010
from botocore.config import Config
11-
from moto import mock_s3
11+
from moto import mock_aws
1212
from piccolo.columns.column_types import Array, Varchar
1313
from piccolo.table import Table
1414

@@ -39,7 +39,7 @@ def test_store_file(self, get_client: MagicMock, uuid_module: MagicMock):
3939
bucket_name = "bucket123"
4040
folder_name = "movie_posters"
4141

42-
with mock_s3():
42+
with mock_aws():
4343
s3 = boto3.resource("s3", region_name="us-east-1")
4444
s3.create_bucket(Bucket=bucket_name)
4545

@@ -142,7 +142,7 @@ def test_unsigned(self, get_client: MagicMock, uuid_module: MagicMock):
142142
bucket_name = "bucket123"
143143
folder_name = "movie_posters"
144144

145-
with mock_s3():
145+
with mock_aws():
146146
s3 = boto3.resource("s3", region_name="us-east-1")
147147
s3.create_bucket(Bucket=bucket_name)
148148

@@ -206,7 +206,7 @@ def test_no_folder(self, get_client: MagicMock, uuid_module: MagicMock):
206206
)
207207
bucket_name = "bucket123"
208208

209-
with mock_s3():
209+
with mock_aws():
210210
s3 = boto3.resource("s3", region_name="us-east-1")
211211
s3.create_bucket(Bucket=bucket_name)
212212

0 commit comments

Comments
 (0)