Skip to content

Commit

Permalink
update dependencies and migrate to pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Sep 30, 2023
1 parent ec8e04c commit bda78b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools>=40.8.0", "wheel"]
[project]

name = "reduct-py"
version = "1.6.0"
version = "1.7.0"
description = "ReductStore Client SDK for Python"
requires-python = ">=3.8"
readme = "README.md"
Expand All @@ -30,24 +30,24 @@ classifiers = [
"License :: OSI Approved :: MIT License",
]

dependencies = ["aiohttp~=3.8", "pydantic~=1.9", "deprecation~=2.1"]
dependencies = ["aiohttp~=3.8", "pydantic~=2.4", "deprecation~=2.1"]

[project.optional-dependencies]
test = [
"pytest~=7.1",
"pytest-mock~=3.10",
"pytest-asyncio~=0.18",
"requests~=2.26",
"pytest~=7.4",
"pytest-mock~=3.11",
"pytest-asyncio~=0.21",
"requests~=2.31",
]

lint = ["pylint~=2.14"]
format = ["black>=22.6,<24.0"]
lint = ["pylint~=2.17"]
format = ["black~=23.9"]
docs = [
"mkdocs~=1.3",
"mkdocs-material~=9.0",
"plantuml-markdown~=3.5",
"mkdocs~=1.5",
"mkdocs-material~=9.4",
"plantuml-markdown~=3.9",
"mkdocs-same-dir~=0.1",
"mkdocstrings[python]~=0.19"
"mkdocstrings[python]~=0.23"
]

[project.urls]
Expand Down
8 changes: 4 additions & 4 deletions reduct/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ class QuotaType(Enum):
class BucketSettings(BaseModel):
"""Configuration for a bucket"""

max_block_size: Optional[int]
max_block_size: Optional[int] = None
"""max block size in bytes"""

max_block_records: Optional[int]
max_block_records: Optional[int] = None
"""max number of records in a block"""

quota_type: Optional[QuotaType]
quota_type: Optional[QuotaType] = None
"""quota type"""

quota_size: Optional[int]
quota_size: Optional[int] = None
"""quota size in bytes"""


Expand Down

0 comments on commit bda78b3

Please sign in to comment.