Skip to content

Conversation

@e2thenegpii
Copy link

@e2thenegpii e2thenegpii commented Mar 6, 2021

Closes #408

@e2thenegpii

This comment was marked as outdated.

Comment on lines +105 to +106
),
],
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a test putting numpy-1.23.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl through parse_..., and putting the result through create_...?

return (name, version, build, tags)


def create_sdist_filename(name: str, version: Version) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

The parse -> create feels... asymmetric. My instinctive answer for an alternative to create is compose and a Google search got me to https://stackoverflow.com/questions/148857/what-is-the-opposite-of-parse as the first result, which makes me feel validated. :)

Let's change to this naming scheme:

Suggested change
def create_sdist_filename(name: str, version: Version) -> str:
def compose_sdist_filename(name: str, version: Version) -> str:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Utility functions to compose file distribution names

3 participants