Skip to content

support pydantic 2.11.9 - and remove the exclude parent fields - wip#1470

Merged
collerek merged 6 commits into
masterfrom
bump-pydantic
Jan 9, 2026
Merged

support pydantic 2.11.9 - and remove the exclude parent fields - wip#1470
collerek merged 6 commits into
masterfrom
bump-pydantic

Conversation

@collerek

@collerek collerek commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator

Release notes

0.21.0

🐛 Breaking changes

  • Drop support for Python 3.8
  • Remove possibility to exclude parents' fields in children models (discouraged as bad practice anyway)
  • Add support for Sqlalchemy 2.0

💬 Other

  • Bump dependencies to newer versions: among others pydantic, databases and fastapi
  • Move setuptools to dev dependencies

@collerek
collerek marked this pull request as draft January 8, 2026 15:12
@codecov

codecov Bot commented Jan 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bd3b4ce) to head (6b3f600).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            master     #1470    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          207       206     -1     
  Lines        14944     14840   -104     
==========================================
- Hits         14944     14840   -104     
Files with missing lines Coverage Δ
ormar/fields/base.py 100.00% <100.00%> (ø)
ormar/fields/model_fields.py 100.00% <ø> (ø)
ormar/fields/sqlalchemy_encrypted.py 100.00% <ø> (ø)
ormar/fields/sqlalchemy_uuid.py 100.00% <100.00%> (ø)
ormar/models/helpers/__init__.py 100.00% <ø> (ø)
ormar/models/helpers/pydantic.py 100.00% <100.00%> (ø)
ormar/models/helpers/relations.py 100.00% <100.00%> (ø)
ormar/models/helpers/sqlalchemy.py 100.00% <100.00%> (ø)
ormar/models/metaclass.py 100.00% <100.00%> (ø)
ormar/models/mixins/pydantic_mixin.py 100.00% <100.00%> (ø)
... and 24 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq

codspeed-hq Bot commented Jan 9, 2026

Copy link
Copy Markdown

CodSpeed Performance Report

Merging this PR will degrade performance by 37.62%

Comparing bump-pydantic (6b3f600) with master (bd3b4ce)

Summary

⚡ 1 improved benchmark
❌ 23 (👁 23) regressed benchmarks
✅ 60 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
👁 test_first[500] 3 ms 3.4 ms -10.86%
👁 test_avg[500] 3.1 ms 3.5 ms -10.23%
👁 test_avg[1000] 4.2 ms 4.8 ms -11.52%
👁 test_get_one[250] 2.4 ms 2.7 ms -11.69%
test_sum[1000] 4.2 ms 3.8 ms +11.85%
👁 test_get_one[500] 3 ms 3.4 ms -12.07%
👁 test_max[1000] 4.3 ms 4.8 ms -10.67%
👁 test_min[1000] 4.3 ms 4.8 ms -10.92%
👁 test_values_list[250] 7.9 ms 11.2 ms -29.41%
👁 test_sum[500] 3.1 ms 3.4 ms -10.41%
👁 test_values_list[1000] 22.3 ms 35.2 ms -36.73%
👁 test_making_and_inserting_models_in_bulk[40] 10 ms 11.2 ms -11.35%
👁 test_making_and_inserting_models_in_bulk[20] 5.5 ms 6.2 ms -11.24%
👁 test_values[500] 11.5 ms 17.9 ms -35.44%
👁 test_values[1000] 21.5 ms 34.4 ms -37.62%
👁 test_values[250] 6.6 ms 9.8 ms -33.13%
👁 test_get_or_create_when_get[500] 3.1 ms 3.5 ms -11.23%
👁 test_get_or_create_when_get[1000] 4.1 ms 4.7 ms -12.4%
👁 test_exists[1000] 4.2 ms 5 ms -16.55%
👁 test_exists[500] 3.2 ms 3.8 ms -16.74%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@collerek
collerek marked this pull request as ready for review January 9, 2026 12:04
@collerek
collerek merged commit c887846 into master Jan 9, 2026
19 checks passed
@collerek
collerek deleted the bump-pydantic branch January 9, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant