Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Metadata 2.3 | update version of pkginfo #682

Closed
Derioss opened this issue Jun 25, 2024 · 0 comments · Fixed by #690 · May be fixed by #683
Closed

Support Metadata 2.3 | update version of pkginfo #682

Derioss opened this issue Jun 25, 2024 · 0 comments · Fixed by #690 · May be fixed by #683
Assignees
Labels
bug Something isn't working Feature

Comments

@Derioss
Copy link

Derioss commented Jun 25, 2024

Several Python packages, such as urllib3-2.2.2-py3-none-any.whl, use metadata version 2.3. We cannot upload these packages to Pulp using the following command:

pulp content upload --file "urllib3-2.2.2-py3-none-any.whl" --relative-path "urllib3-2.2.2-py3-none-any.whl"

This attempt fails with the error:

failed: 'null value in column "version" of relation "python_pythonpackagecontent" violates not-null constraint
DETAIL: Failing row contains (01904e82-d1c0-7fa8-9fff-1df6899fceef, urllib3-2.2.2-py3-none-any.whl, bdist_wheel, , null, 2.3, , <h1 align="center"

After repacking urllib3-2.2.2-py3-none-any.whl with Metadata-Version: 2.1 or Metadata-Version: 2.2, the content uploads successfully.

The issue appears to be with the pkginfo library, which does not support metadata 2.3 (this support is only available from version 1.10.0 onwards)."

@dralley dralley self-assigned this Jun 25, 2024
dralley added a commit to dralley/pulp_python that referenced this issue Jun 25, 2024
dralley added a commit to dralley/pulp_python that referenced this issue Jun 25, 2024
@gerrod3 gerrod3 added bug Something isn't working and removed Triage-Needed labels Jun 26, 2024
gerrod3 added a commit to gerrod3/pulp_python that referenced this issue Jun 26, 2024
gerrod3 added a commit to gerrod3/pulp_python that referenced this issue Jun 26, 2024
gerrod3 added a commit to gerrod3/pulp_python that referenced this issue Aug 13, 2024
gerrod3 added a commit to gerrod3/pulp_python that referenced this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Feature
Projects
No open projects
Archived in project
3 participants