bugwarrior icon indicating copy to clipboard operation
bugwarrior copied to clipboard

Upgrade to Pydantic V2

Open ryneeverett opened this issue 1 year ago • 4 comments

See #997.

https://docs.pydantic.dev/latest/migration/

ryneeverett avatar Jul 14 '23 13:07 ryneeverett

Any news on this? Is it part of the bugwarrior v2.0 release (#1030)?

I ask because the current Arch Linux packages (https://aur.archlinux.org/packages?K=bugwarrior) are both broken. The main package is broken because it's missing #1019 and the -git package because Arch's system python pydantic is now version 2.7.

ChasNelson1990 avatar May 13 '24 13:05 ChasNelson1990

At this point I'm not planning to prioritize it for the 2.0 release because it seems likely that pydantic-1.x will continue to be available for quite some time on all other major distributions. It is unfortunate that Arch doesn't have the capacity to support versioned dependencies.

ryneeverett avatar May 13 '24 15:05 ryneeverett

How about just using the compatiblilty namespace for now? This should allow running bugwarrior with pydantic v2 while avoiding the need to upgrade to v2 features immediately.

NexAdn avatar Aug 15 '24 12:08 NexAdn

I didn't know about that. Nice!

If it turns out to be as easy as it looks there's no reason this shouldn't happen for the next bugwarrior release. I've added this to the milestone because we should at least try the compatibility namespace approach even though it is unlikely this issue will be fully resolved.

ryneeverett avatar Aug 15 '24 17:08 ryneeverett

Thanks to @NexAdn we no longer have pydantic-1 as a dependency which relieves the distribution concerns. Remaining work is to actually switch over to the pydantic-2 API, but that is not urgent.

ryneeverett avatar Sep 20 '24 01:09 ryneeverett