Python: Fix Python project metadata#13336
Conversation
Remove duplicate dependencies Fix uv lock file, many packages had mismatching wheel versions Add a miminum required uv version. 0.8.4 is the last one that changed the lockfile format. Requiring a miminum uv version avoids having the lockfile completely rewritten whenever a contributor makes changes with an old uv version.
| "nest-asyncio ~= 1.6", | ||
| "scipy>=1.15.1", | ||
| "websockets >= 13, < 16", | ||
| "aiortc>=1.9.0", |
There was a problem hiding this comment.
As per my PR description:
Remove duplicate dependencies
There was a problem hiding this comment.
they're not actually duplicate, they were first put into the realtime extra, but then we did need them installed as standard, and removing the realtime extra would be a breaking change, so we didn't want to do that. Did now remove the specifiers so we don't get mismatches in them
There was a problem hiding this comment.
What I mean is that they are actually duplicates in the dependencies table:
semantic-kernel/python/pyproject.toml
Lines 25 to 55 in 2534964
|
@Viicos thanks for having a look, I created a new PR with the same changes and also updates to the github actions to get everything running again, so I'm going to close this one. |
Remove duplicate dependencies
Make use of
dependency-groups,dev-dependenciesis deprecatedFix uv lock file, many packages had mismatching wheel versions Add a miminum required uv version. 0.8.4 is the last one that changed the lockfile format. Requiring a miminum uv version avoids having the lockfile completely rewritten whenever a contributor makes changes with an old uv version.
cc @eavanvalkenburg @moonbox3, the broken lockfile is breaking third party tests in Pydantic. This is a weird issue, so I'm not sure what was done to get the lockfile in this broken state.
Motivation and Context
Description
Contribution Checklist