Bug #113396 mysql-connector-python is distributed without setup.py or pyproject.toml
Submitted: 12 Dec 2023 4:08 Modified: 20 Mar 22:31
Reporter: Cameron Smith Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S2 (Serious)
Version:>=8.0.24, 8.2.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: source distribution package installation error

[12 Dec 2023 4:08] Cameron Smith
Description:
Since 8.0.24 on Apr 20, 2021; it seems this package has been distributed to PyPI without either of a setup.py or pyproject.toml in the source distribution tarball. This can be examined comparing the output of

❯ pip download mysql-connector-python==8.0.23 --no-binary :all:

versus

❯ pip download mysql-connector-python==8.0.24 --no-binary :all:

The former is successful while the latter fails with

ERROR: mysql-connector-python==8.0.24 from https://files.pythonhosted.org/packages/9e/91/aaff43b5afcd796769fca701d91ef8ed99f64a289f07... does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

This continues for all versions up to the most recent 8.2.0.

How to repeat:
❯ pip download mysql-connector-python==8.0.24 --no-binary :all:
Collecting mysql-connector-python==8.0.24
  Downloading mysql-connector-python-8.0.24.tar.gz (261 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 261.7/261.7 kB 5.3 MB/s eta 0:00:00
ERROR: mysql-connector-python==8.0.24 from https://files.pythonhosted.org/packages/9e/91/aaff43b5afcd796769fca701d91ef8ed99f64a289f07... does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Suggested fix:
Add a setup.py and/or pyproject.toml to the source distribution for future releases of mysql-connector-python.

Consider complying with https://peps.python.org/pep-0518/ .
[12 Dec 2023 7:16] MySQL Verification Team
Hello Cameron Smith,

Thank you for the report and feedback.

regards,
Umesh
[15 Dec 2023 0:23] Cameron Smith
Thank you Umesh.

Could you please comment on whether this is something that is considered an issue that will be fixed or if there is some reason this is intentional and should be expected to persist in future releases?

Best,
Cameron
[9 Apr 2024 23:54] Michael Einreinhof
Is there any update on if this is on purpose or an accident?
[20 Mar 22:31] Daniel So
Posted by developer:
 
Added the following entry to the C/Python 9.3.0 changelog: 

"The source distribution of Connector/Python on the PyPI repository was missing the setup.py file, which has now been added back to make the package buildable with pip."