lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.27k stars 662 forks source link

PyPI installation fails - pip 23.0 #301

Closed jlariza closed 1 year ago

jlariza commented 1 year ago

When trying to install the latest version, PyPI returns this message:

pip install qrcode==7.3.1
Collecting qrcode==7.3.1
  Using cached qrcode-7.3.1.tar.gz (43 kB)
  Preparing metadata (setup.py) ... done
  WARNING: Generating metadata for package qrcode produced metadata for project name unknown. Fix your #egg=qrcode fragments.
Discarding https://files.pythonhosted.org/packages/94/9f/31f33cdf3cf8f98e64c42582fb82f39ca718264df61957f28b0bbb09b134/qrcode-7.3.1.tar.gz (from https://pypi.org/simple/qrcode/) (requires-python:>=3.6): Requested unknown from https://files.pythonhosted.org/packages/94/9f/31f33cdf3cf8f98e64c42582fb82f39ca718264df61957f28b0bbb09b134/qrcode-7.3.1.tar.gz has inconsistent name: expected 'qrcode', but metadata has 'unknown'
ERROR: Could not find a version that satisfies the requirement qrcode==7.3.1 (from versions: 1.0, 1.1, 2.0, 2.3, 2.3.1, 2.4, 2.4.1, 2.4.2, 2.5, 2.5.1, 2.6, 2.7, 3.0, 3.1, 3.1.1, 4.0, 4.0.1, 4.0.2, 4.0.4, 5.0, 5.0.1, 5.1, 5.2, 5.2.1, 5.2.2, 5.3, 6.0, 6.1, 7.0, 7.1, 7.2, 7.3, 7.3.1)
ERROR: No matching distribution found for qrcode==7.3.1

It seems to be related to https://github.com/pypa/pip/issues/9203

May you please check the new metadata structure required by PyPI and update this package accordingly?

This issue is related: https://github.com/lincolnloop/python-qrcode/issues/295

Thank you,

jlariza commented 1 year ago

Related PR: https://github.com/lincolnloop/python-qrcode/pull/302