Skip to content

Pin pydantic to <2.11, newer versions not supported on Python 3.8 - #353

Merged
evvaaaa merged 1 commit into
mainfrom
limit_pydantic_version
Apr 15, 2025
Merged

evvaaaa merged 1 commit into
mainfrom
limit_pydantic_version

Conversation

@Tom-Willemsen

@Tom-Willemsen Tom-Willemsen commented Apr 15, 2025 •

Copy link
Copy Markdown
Member

Description

Pin pydantic<2.11 (dev dependency only)

Pydantic 2.11 is not supported on Python 3.8, which leads to different schema generation on 3.8 versus later versions. Force all the python versions to pick up the same pydantic version.

The other option would be to drop Python 3.8 support in this repo - bluesky itself no longer supports 3.8, do other uses of event-model still need it?

Motivation and Context

At the moment it is not possible to create a PR which passes both the 3.8 build and >3.8 builds

How Has This Been Tested?

CI builds

@evvaaaa

evvaaaa commented Apr 15, 2025 •

Copy link
Copy Markdown
Collaborator

Lgtm, can make an issue for unpinning once we deprecate 3.8.

@evvaaaa
evvaaaa merged commit 08109c5 into main Apr 15, 2025
@evvaaaa
evvaaaa deleted the limit_pydantic_version branch April 15, 2025 13:24
@DiamondJoseph

Copy link
Copy Markdown
Contributor

@evvaaaa is there a timeline for deprecating 3.8?

@evvaaaa

evvaaaa commented May 22, 2025

Copy link
Copy Markdown
Collaborator

is there a timeline for deprecating 3.8?

I'd be happy to drop it now that bluesky has.

I've been quite busy so I haven't got around to making a new release in a while. I think we should drop 3.8 and then do it.

@prjemian

Copy link
Copy Markdown
Contributor

Thought we (blueskyproject "We") agreed to only support the official list of supported Python versions. That means 3.8 can be dropped now and 3.9 can be dropped after October 1.

@prjemian

Copy link
Copy Markdown
Contributor

The conversation considered a more aggressive schedule but settled on this. Should verify since this is based on my memory.

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.

4 participants