Skip to content

Preleases in Python do not parse appropriately #38

@guzman-raphael

Description

@guzman-raphael

First of all, thanks for making this awesome action! I've been really needing something to essentially lint and extract CHANGELOG.md details into a GH release.

That said, I did find some issues when trying to utilize this for Python pip packages. As you may or may not know, the regex for Python pip versions in PyPi is quite strict. So there are a limited number of ways that prereleases can be defined. Specifically, when we define a version as 0.1.0a1, the parsing fails along with the prerelease designation. Did some debugging myself and determined that the only issue is that the hyphen (-) is strictly enforced for prereleases.

I have a version that works for our needs on my fork but unsure how it will affect other use-cases. I'll soon issue a PR so that we can discuss any unwanted impact to see if we can determine a good way to handle all cases including Python prereleases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions