Skip to content

Fix PyPI publish test script #14116

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

Merged
merged 2 commits into from
Jun 18, 2025
Merged

Fix PyPI publish test script #14116

merged 2 commits into from
Jun 18, 2025

Conversation

konstin
Copy link
Member

@konstin konstin commented Jun 17, 2025

The script stumbled over a newline introduced in pypi/warehouse#18266 (which is valid).

Also fixed: Don't read versions for the same package from other indexes. We were using project_name here instead of target, while using the latter and only reading from a single index simplifies the code too.

konstin added 2 commits June 17, 2025 20:45
The script stumbled over a newline introduced in pypi/warehouse#18266 (which is valid).
Don't read versions for the same package from other indexes. We were using `project_name` here instead of `target`, while using the latter and only reading from a single index simplifies the code too.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Jun 17, 2025
@@ -223,7 +221,7 @@ def get_filenames(url: str, client: httpx.Client) -> list[str]:
response = client.get(url)
data = response.text
# Works for the indexes in the list
href_text = r"<a(?: +[\w-]+=(?:'[^']+'|\"[^\"]+\"))* *>([^<>]+)</a>"
href_text = r"<a(?:\s*[\w-]+=(?:'[^']+'|\"[^\"]+\"))* *>([^<>]+)</a>"
Copy link
Member Author

Choose a reason for hiding this comment

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

The star also handles #14116

@konstin konstin temporarily deployed to uv-test-publish June 17, 2025 18:48 — with GitHub Actions Inactive
@konstin konstin merged commit 499c8aa into main Jun 18, 2025
86 checks passed
@konstin konstin deleted the konsti/fix-pypi-publish-test branch June 18, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants