Skip to content

Output the package name #162

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

edgarrmondragon
Copy link
Contributor

@edgarrmondragon edgarrmondragon commented Feb 1, 2025

Hey Hynek!

Do let me know if this going a bit far in scope for this action, but the use case is essentially what I put in the updated example 😄

Similar to #152.

@@ -251,8 +254,10 @@ runs:
if match := re.match(r"Programming Language :: Python :: (\d+\.\d+)$", classifier):
version_tokens.append(match.group(1))

package_name = pkg_info.get("Name")
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this can realistically happen (build backends should catch this), but if it does, I think we should fail with a helpful error message here?

Copy link
Contributor Author

@edgarrmondragon edgarrmondragon Feb 21, 2025

Choose a reason for hiding this comment

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

You mean if Name is missing? The spec does say it's required, but we could probably emit an error.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah that's what I mean. Emitting an error sounds great although I doubt the other tooling will allow us to get as far. :) Always good to add more assertions.

@hynek
Copy link
Owner

hynek commented Jun 2, 2025

ping? 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants