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

Fix version parsing in git #1757

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdrianVollmer
Copy link
Contributor

In setup.py, the date and time of the last commit is determined using git log, but fails to take into account that users may have enabled log.showSignature in their global git config. If this option is true and a commit is signed, it breaks the parsing of the git output. As a result, the package fails to build, because the version number is invalid.

By just using the last line of the git output, we ensure that the signature is ignored.

This fixes #1756.

In `setup.py`, the date and time of the last commit is determined using
`git log`, but fails to take into account that users may have enabled
`log.showSignature` in their global git config. If this option is true
and a commit is signed, it breaks the parsing of the git output. As a
result, the package fails to build, because the version number is
invalid.

By just using the last line of the git output, we ensure that the
signature is ignored.
@anadrianmanrique anadrianmanrique added the bug Unexpected problem or unintended behavior label Jun 6, 2024
@anadrianmanrique anadrianmanrique added the low Low priority item label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior low Low priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signed commits break building and installing from git repo if log.showSignature=true in git
2 participants