Skip to content

Commit

Permalink
v2.5.0 release (#8091)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Nov 13, 2023
1 parent b514c43 commit d465ec5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
11 changes: 9 additions & 2 deletions HISTORY.md
@@ -1,12 +1,15 @@
## v2.5.0b1 (2023-11-09)
## v2.5.0 (2023-11-13)

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

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.0b1)
The code released in v2.5.0 is functionally identical to that of v2.5.0b1.

### What's Changed

#### Packaging

* Update pydantic-core from 2.10.1 to 2.14.1, significant changes from these updates are described below, full changelog [here](https://github.com/pydantic/pydantic-core/compare/v2.10.1...v2.14.1)
* Update to `pyright==1.1.335` by @Viicos in [#8075](https://github.com/pydantic/pydantic/pull/8075)

#### New Features

Expand Down Expand Up @@ -116,6 +119,10 @@
* @sisp made their first contribution in [pydantic/pydantic-core#995](https://github.com/pydantic/pydantic-core/pull/995)
* @michaelhly made their first contribution in [pydantic/pydantic-core#1015](https://github.com/pydantic/pydantic-core/pull/1015)

## v2.5.0b1 (2023-11-09)

Pre-release, see [the GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.5.0b1) for details.

## v2.4.2 (2023-09-27)

[GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.4.2)
Expand Down
2 changes: 1 addition & 1 deletion pydantic/version.py
Expand Up @@ -3,7 +3,7 @@

__all__ = 'VERSION', 'version_info'

VERSION = '2.5.0b1'
VERSION = '2.5.0'
"""The version of Pydantic."""


Expand Down
5 changes: 3 additions & 2 deletions release/make_history.py
Expand Up @@ -28,7 +28,8 @@ def main():
history_path = root_dir / 'HISTORY.md'
history_content = history_path.read_text()

if f'## v{new_version}' in history_content:
# use ( to avoid matching beta versions
if f'## v{new_version} (' in history_content:
print(f'WARNING: v{new_version} already in history, stopping')
sys.exit(1)

Expand Down Expand Up @@ -65,7 +66,7 @@ def get_notes(new_version: str) -> str:
response.raise_for_status()

body = response.json()['body']
body = body.removeprefix('<!-- Release notes generated using configuration in .github/release.yml at main -->\n\n')
body = body.replace('<!-- Release notes generated using configuration in .github/release.yml at main -->\n\n', "")

# Add one level to all headers so they match HISTORY.md, and add trailing newline
body = re.sub(pattern='^(#+ .+?)$', repl=r'#\1\n', string=body, flags=re.MULTILINE)
Expand Down

0 comments on commit d465ec5

Please sign in to comment.