Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and migrate to Pydantic v2 #94

Merged
merged 2 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed:

- Update dependencies and migrate to Pydantic v2, [PR-94](https://github.com/reductstore/reduct-py/pull/94)

## [1.6.0] - 2023-08-15

### Added:
Expand Down
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
Loading