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

Fix trailing commas on Requires-Python in HTML indexes #1507

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

davidszotten
Copy link
Contributor

illustration and suggested fix for #1464

@charliermarsh
Copy link
Member

We tend to fix this via our lenient_requirements.rs thing -- can you take a look at that file?

@davidszotten
Copy link
Contributor Author

ah i see. how does this look?

@charliermarsh
Copy link
Member

Ahh yes, this looks good.

@charliermarsh charliermarsh self-requested a review February 16, 2024 21:54
@charliermarsh charliermarsh added the bug Something isn't working label Feb 16, 2024
@charliermarsh charliermarsh changed the title Fix trailing commas Fix trailing commas onRequires-Python in HTML indexes Feb 16, 2024
@charliermarsh charliermarsh changed the title Fix trailing commas onRequires-Python in HTML indexes Fix trailing commas on Requires-Python in HTML indexes Feb 16, 2024
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@charliermarsh charliermarsh enabled auto-merge (squash) February 16, 2024 22:00
@charliermarsh charliermarsh merged commit 8050370 into astral-sh:main Feb 16, 2024
7 checks passed
@@ -137,7 +138,7 @@ impl SimpleHtml {
{
let requires_python = std::str::from_utf8(requires_python.as_bytes())?;
let requires_python = html_escape::decode_html_entities(requires_python);
Some(LenientVersionSpecifiers::from_str(&requires_python).map(Into::into))
Some(LenientVersionSpecifiers::from_str(&requires_python).map(VersionSpecifiers::from))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come from is preferable? (to help me learn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants