Fix upload not supporting package metadata 2.3 - #690
Conversation
| page = client.get_project_page("urllib3") | ||
| for package in page.packages: | ||
| if package.filename == filename: | ||
| content = python_content_factory(filename, url=package.url) |
There was a problem hiding this comment.
I presume this downloads the file at the provided URL, then uploads it as filename?
There was a problem hiding this comment.
Correct! I recently modernize the python tests and this is one of my favorite new fixtures.
dralley
left a comment
There was a problem hiding this comment.
My thought was that it might be best to fully support metadata 2.3 before removing the path that errors out - that way there's no possibility of losing metadata.
I don't plan on releasing the next version without full 2.3 support. But if someone is encountering this error on an older supported version, I don't want them to be without a remedy until the next version comes out. |
|
Strictly speaking the user isn't without remedy at the moment, they repacked the package. Not convenient though, I agree. If it won't require much effort to add support though though (I think it won't, working on it currently), in my opinion would be better to just do a quick major release including only 2.3 support and little else. |
|
We can go that way as well. I'll leave this PR as is for now, and keep a lookout on your PR. |
|
thank's for your's velocity. |
|
I'm going to go ahead and merge this, then rebase on top, just to simplify things. |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 781b976 on top of patchback/backports/3.11/781b9767dae34e8619e3831ff8ad07de1a6222ec/pr-690 Backporting merged PR #690 into main
🤖 @patchback |
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #733 🤖 @patchback |
…e34e8619e3831ff8ad07de1a6222ec/pr-690 [PR #690/781b9767 backport][3.12] Fix upload not supporting package metadata 2.3
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 781b976 on top of patchback/backports/3.10/781b9767dae34e8619e3831ff8ad07de1a6222ec/pr-690 Backporting merged PR #690 into main
🤖 @patchback |
…67dae34e8619e3831ff8ad07de1a6222ec/pr-690 [PR #690/781b9767 backport][3.10] Fix upload not supporting package metadata 2.3
fixes: #682
@dralley This should be safe to backport. And I'll complete full 2.3 support with #689 as a new feature for a future release.