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

[BUG] ValueError when building wheel #2682

Closed
1 task done
pkolbus opened this issue May 23, 2021 · 1 comment
Closed
1 task done

[BUG] ValueError when building wheel #2682

pkolbus opened this issue May 23, 2021 · 1 comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.

Comments

@pkolbus
Copy link

pkolbus commented May 23, 2021

setuptools version

57.0.0

Python version

3.6.0

OS

Windows 10

Additional environment information

No response

Description

With setuptools 57, I'm getting an exception ending with the following when testing several (private) packages via tox. This appears to occur while tox is running get_requires_for_build_wheel for the package.

A git bisect indicates this started with #2628. Notably, these packages do not have a long description, as https://packaging.python.org/specifications/core-metadata/ describes it as optional.

   ...
    File "C:\Users\kolbus\AppData\Local\Temp\pip-build-env-9rrfzn1k\overlay\Lib\site-packages\setuptools\build_meta.py", line 135, in _get_build_requires
      self.run_setup()
    File "C:\Users\kolbus\AppData\Local\Temp\pip-build-env-9rrfzn1k\overlay\Lib\site-packages\setuptools\build_meta.py", line 259, in run_setup
      self).run_setup(setup_script=setup_script)
    File "C:\Users\kolbus\AppData\Local\Temp\pip-build-env-9rrfzn1k\overlay\Lib\site-packages\setuptools\build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 170, in <module>
      pkg_info = dict(line.split(": ", 1) for line in content)
  ValueError: dictionary update sequence element #30 has length 1; 2 is required
  ----------------------------------------

Expected behavior

No exception

How to Reproduce

  1. TBD
  2. TBD
  3. TBD

Output

TBD

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@pkolbus pkolbus added Needs Triage Issues that need to be evaluated for severity and status. bug labels May 23, 2021
@pkolbus
Copy link
Author

pkolbus commented May 23, 2021

Apologies for the noise; this is not a setuptools issue. The offending line is in my own project's setup.py.

@pkolbus pkolbus closed this as completed May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

1 participant