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

Fix parsing config files after updating to pydantic 2.10.3 #1166

Merged
merged 3 commits into from
Dec 16, 2024
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

Releases prior to 7.0 has been removed from this file to declutter search results; see the [archived copy](https://github.com/dipdup-io/dipdup/blob/8.0.0b5/CHANGELOG.md) for the full list.

## [Unreleased]

### Fixed

- config: Fixed parsing config files after updating to pydantic 2.10.3.

## [8.1.2] - 2024-12-10

### Fixed
Expand Down
548 changes: 289 additions & 259 deletions docs/7.references/2.config.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/9.release-notes/_8.0_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- cli: Improved logging of indexer status.
- config: Allow `sentry.dsn` to be empty string.
- config: Fixed (de)serialization of hex strings in config.
- config: Fixed parsing config files after updating to pydantic 2.10.3.
- config: Fixed setting logging levels according to the config.
- database: Fixed concurrency issue when using `get_or_create` method.
- evm.events: Fixed matching logs when filtering by topic0.
Expand Down
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@

# NOTE: Nice dataclasses
autodoc_typehints = 'description'
autodoc_typehints_format = 'short'
autodoc_typehints_format = 'short'

# NOTE: The code below is required because of `defer_build=True` in dataclass definitions

from dipdup.config import DipDupConfig
from pydantic.dataclasses import rebuild_dataclass
rebuild_dataclass(DipDupConfig)
57 changes: 29 additions & 28 deletions pdm.lock

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

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ dependencies = [
"orjson~=3.10",
"prometheus-client~=0.20",
"pycryptodome~=3.20",
# FIXME:
"pydantic~=2.9.2",
"pydantic~=2.10.3",
"pyhumps~=3.8",
"pysignalr~=1.0",
"python-dotenv~=1.0",
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ poseidon-py==0.1.5
prometheus-client==0.21.1
propcache==0.2.0
pycryptodome==3.21.0
pydantic-core==2.23.4
pydantic[email]==2.9.2; python_version ~= "3.11"
pydantic-core==2.27.1
pydantic[email]==2.10.3; python_version ~= "3.11"
pyhumps==3.8.0
pypika-tortoise==0.2.1
pysignalr==1.1.0
Expand All @@ -82,7 +82,7 @@ ruamel-yaml-clib==0.2.8; platform_python_implementation == "CPython" and python_
sentry-sdk==2.19.2
six==1.16.0
sniffio==1.3.1
sqlparse==0.5.2
sqlparse==0.5.3
starknet-py==0.24.0
strict-rfc3339==0.7
survey==5.4.2
Expand Down
Loading
Loading