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

Update version number to be PEP 440 compliant #18

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Update version number to be PEP 440 compliant #18

merged 2 commits into from
Jan 30, 2024

Conversation

liamtoney
Copy link
Owner

PEP 440 specifies what is and is not a valid version identifier for Python packages. Using just the first seven characters of the commit hash, as we were doing, was not compliant. This started causing an increasing number of problems as packages dropped support for non-PEP 440 compliant versions. Having to pin to an older setuptools was one of work-arounds we had to do.

Thankfully, prepending a 0+g to the commit hash is enough to make the version number compliant again. :)

[Note, the g is not strictly necessary but apparently is best practice for denoting which version control system (e.g. "g" for Git) was used to make the hash.]

@liamtoney liamtoney added the bug Something isn't working label Jan 30, 2024
@liamtoney liamtoney self-assigned this Jan 30, 2024
Copy link

@web-sys1 web-sys1 left a comment

Choose a reason for hiding this comment

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

Yes. That makes sense.

@liamtoney liamtoney merged commit 4101e31 into main Jan 30, 2024
3 checks passed
@liamtoney liamtoney deleted the pep-440 branch January 30, 2024 18:08
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