GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
746 stars 208 forks source link

Upgrade to Pydantic V2 #998

Open ryneeverett opened 1 year ago

ryneeverett commented 1 year ago

See #997.

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

ChasNelson1990 commented 6 months ago

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.

ryneeverett commented 6 months ago

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.

NexAdn commented 3 months ago

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.

ryneeverett commented 3 months ago

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 commented 2 months ago

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.