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

twine check should catch quotes in URLs #701

Closed
henryiii opened this issue Sep 30, 2020 · 2 comments
Closed

twine check should catch quotes in URLs #701

henryiii opened this issue Sep 30, 2020 · 2 comments

Comments

@henryiii
Copy link

henryiii commented Sep 30, 2020

Currently, twine check doesn't catch this in a setup.cfg file:

url = "https://github.com/pybind/pybind11"

which creates this in pybind11-2.6.0b1.dist-info/METADATA:

Home-page: "https://github.com/pybind/pybind11"

which fails to upload to PyPI.

HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
24
'"https://github.com/pybind/pybind11"' is an invalid value for Home-Page. Error: Invalid URI See https://packaging.python.org/specifications/core-metadata for more information.
@sigmavirus24
Copy link
Member

Yeah, that makes sense. It's not terribly hard to do either.

@bhrutledge bhrutledge added this to To do in Better `check` via automation Oct 1, 2020
@bhrutledge
Copy link
Contributor

This feels like a duplicate of #430, along with #589, which is currently blocked by pypa/packaging#147.

I've started keeping track of all of these related issues in https://github.com/pypa/twine/projects/2.

Better `check` automation moved this from To do to Done Oct 3, 2020
@bhrutledge bhrutledge moved this from Done to Duplicates in Better `check` Oct 3, 2020
@bhrutledge bhrutledge moved this from Duplicates to Done in Better `check` Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants