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)."
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:This attempt fails with the error:
After repacking
urllib3-2.2.2-py3-none-any.whlwithMetadata-Version: 2.1orMetadata-Version: 2.2, the content uploads successfully.The issue appears to be with the
pkginfolibrary, which does not support metadata 2.3 (this support is only available from version 1.10.0 onwards)."