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 to Main #1

Merged
merged 35 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
da468c4
Update docstrings for secret types (#8442)
dmontagu Dec 28, 2023
1e1b257
Fix test in serialization.md (#8467)
hramezani Jan 2, 2024
3f84e44
Add missing changelog to HISTORY.md (#8428)
hramezani Jan 2, 2024
097dc7d
Bump github actions (#8482)
hramezani Jan 4, 2024
c067c1b
Fix coverage-combine in CI (#8483)
hramezani Jan 4, 2024
53bb2a8
Update docs with blog redirect (#8486)
sydney-runkle Jan 4, 2024
7eb7d84
chore: clarify `frozen` vs `allow_mutation` in docstring (#8495)
themattmorris Jan 5, 2024
8878eaa
Move `version_info` import for reporting version info on issues (#8497)
zby Jan 5, 2024
43806f5
docs: Fix "Use of stdlib dataclasses with BaseModel" bug (#8491)
patelnets Jan 5, 2024
069d020
👥 Update Pydantic People (#8490)
github-actions[bot] Jan 5, 2024
ace2748
Fix bug with schema generation with Field(...) in a forward ref (#8494)
dmontagu Jan 5, 2024
2213f3c
Fix ordering of keys in `__dict__` with `model_construct` call (#8500)
sydney-runkle Jan 5, 2024
383290f
Fix module `path_type` creation when globals does not contain `__name…
hramezani Jan 5, 2024
e4fa099
Remove duplicate `NVlabs/SPADE` entry in docs (#8503)
edwardwli Jan 7, 2024
a73e1a9
Added bits conversion to the ByteSize class feature #8415 (#8507)
luca-matei Jan 8, 2024
56d4e92
fix for namespace issue with dataclasses with from __future__ import …
sydney-runkle Jan 8, 2024
1a5d084
fix: make function validator types positional-only (#8479)
pmmmwh Jan 9, 2024
71e69ef
Introducing classproperty decorator for model_computed_fields (#8437)
Jocelyn-Gas Jan 9, 2024
dc7d01a
Update `pydantic-extra-types` to newest version (#8521)
sydney-runkle Jan 9, 2024
54d1185
Fix usage of `@deprecated` (#8294)
Viicos Jan 9, 2024
2b09cf4
Add more support for private attributes in `model_construct` call (#8…
sydney-runkle Jan 9, 2024
ea68791
Minor docs update for docs sprint progress (#8528)
sydney-runkle Jan 9, 2024
2f48249
update to pydantic-core 2.15.0 (#8533)
davidhewitt Jan 10, 2024
54a1576
Use a stack for the types namespace (#8378)
dmontagu Jan 10, 2024
953bbea
Update to `pyright==1.1.345` (#8453)
Viicos Jan 12, 2024
25471ed
docs: add replacement for 'ENCODER_BY_TYPE' to migration guide (#8501)
bL34cHig0 Jan 12, 2024
1fe90b4
Fix schema-building bug with TypeAliasType for types with refs (#8526)
dmontagu Jan 12, 2024
0e76dba
:memo: Add ISBN Documentation to navigation (#8478)
yezz123 Jan 12, 2024
2e459bb
fix: Support `pydantic.Field(repr=False)` in dataclasses (#8511)
tigeryy2 Jan 12, 2024
640ba4a
Override `dataclass_transform` behavior for `RootModel` (#8163)
Viicos Jan 15, 2024
64d5223
Docs: fix `note` and minor typo (#8550)
sydney-runkle Jan 15, 2024
c7d965c
feat: enable json schema creation with type ByteSize (#8537)
geospackle Jan 15, 2024
5de67f7
Explicitly raise an error if field names clashes with types (#8243)
Viicos Jan 15, 2024
8060fa1
Add eval_type_backport to handle union operator and builtin generic s…
alexmojaki Jan 16, 2024
2171b20
Refactor signature generation for simplicity (#8572)
sydney-runkle Jan 19, 2024
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
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ jobs:
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-with-deps

- name: store coverage files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-${{ matrix.os }}-${{ matrix.python-version }}
path: coverage

test-fastapi:
Expand All @@ -169,7 +169,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
node-version: '18'

- name: install pyright
run: npm install -g pyright@1.1.335 # try to keep this in sync with .pre-commit-config.yaml
run: npm install -g pyright@1.1.345 # try to keep this in sync with .pre-commit-config.yaml

- name: run pyright tests
run: make test-pyright
Expand All @@ -270,9 +270,9 @@ jobs:
CONTEXT: linux-py${{ matrix.python-version }}-pyright

- name: store coverage files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-${{ matrix.os }}-${{ matrix.python-version }}-mypy${{ matrix.mypy-version }}
path: coverage

coverage-combine:
Expand All @@ -282,14 +282,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: get coverage files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: coverage
merge-multiple: true
pattern: coverage-*
path: coverage

- run: pip install coverage[toml]
Expand All @@ -300,7 +301,7 @@ jobs:
- run: coverage html --show-contexts --title "pydantic coverage for ${{ github.sha }}"

- name: Store coverage html
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: htmlcov
Expand Down Expand Up @@ -382,7 +383,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand All @@ -408,7 +409,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'

- run: pip install smokeshow

- uses: dawidd6/action-download-artifact@v2
- uses: dawidd6/action-download-artifact@v3
with:
workflow: ci.yml
commit: ${{ github.event.workflow_run.head_sha }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ repos:
types: [python]
language: node
pass_filenames: false
additional_dependencies: ["pyright@1.1.335"] # try to keep this in sync with .github/workflows/ci.yml
additional_dependencies: ["pyright@1.1.345"] # try to keep this in sync with .github/workflows/ci.yml
35 changes: 35 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
## v2.5.3 (2023-12-22)

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.3)

### What's Changed

#### Packaging

* uprev `pydantic-core` to 2.14.6

#### Fixes

* Fix memory leak with recursive definitions creating reference cycles by @davidhewitt in [pydantic/pydantic-core#1125](https://github.com/pydantic/pydantic-core/pull/1125)

## v2.5.2 (2023-11-22)

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.2)

### What's Changed

#### Packaging

* uprev `pydantic-core` to 2.14.5

#### New Features

* Add `ConfigDict.ser_json_inf_nan` by @davidhewitt in [#8159](https://github.com/pydantic/pydantic/pull/8159)

#### Fixes

* Fix validation of `Literal` from JSON keys when used as `dict` key by @sydney-runkle in [pydantic/pydantic-core#1075](https://github.com/pydantic/pydantic-core/pull/1075)
* Fix bug re `custom_init` on members of `Union` by @sydney-runkle in [pydantic/pydantic-core#1076](https://github.com/pydantic/pydantic-core/pull/1076)
* Fix `JsonValue` `bool` serialization by @sydney-runkle in [#8190](https://github.com/pydantic/pydantic/pull/8159)
* Fix handling of unhashable inputs with `Literal` in `Union`s by @sydney-runkle in [pydantic/pydantic-core#1089](https://github.com/pydantic/pydantic-core/pull/1089)

## v2.5.1 (2023-11-15)

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.1)
Expand Down
1 change: 1 addition & 0 deletions docs/api/pydantic_extra_types_isbn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: pydantic_extra_types.isbn
200 changes: 0 additions & 200 deletions docs/blog/pydantic-v2-alpha.md

This file was deleted.

Loading