GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 4.0.8 sdist tarball signature on pypi is bad · Issue #77 · gitpython-developers/gitdb

This repository was archived by the owner on Jul 26, 2026. It is now read-only.
This repository was archived by the owner on Jul 26, 2026. It is now read-only.

4.0.8 sdist tarball signature on pypi is bad #77

Copy link
Copy link
Closed as not planned
Closed as not planned
4.0.8 sdist tarball signature on pypi is bad#77
Copy link
Labels
help wanted

Description

@dvzrv
dvzrv
opened on Oct 23, 2021
Issue body actions

Hi! When trying to package 4.0.8 for Arch Linux I ran into a bad signature for the sdist tarball on pypi.org:

gpg --verify gitdb-4.0.8.tar.gz.asc
gpg: assuming signed data in 'gitdb-4.0.8.tar.gz'
gpg: Signature made 2021-10-23T02:39:33 CEST
gpg:                using RSA key EAF9CCFCD0876408F297C60A9CB5EE7895E8268B
gpg: BAD signature from "Sebastian Thiel (YubiKey USB-C) <[email protected]>" [unknown]

To reproduce:

curl -L -O https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-4.0.8.tar.gz -O https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-4.0.8.tar.gz.asc && gpg --verify gitdb-4.0.8.tar.gz.asc

Activity

  1. Byron commented on Oct 24, 2021

    @Byron
    Byron
    on Oct 24, 2021
    Member
    More actions

    Thanks for reporting, I am able to reproduce the issue as well.

    Now I wonder what could have happened there, since it looks 'like always' on my end. My gpg is able to properly sign commits, --show-signature considers these valid, so I hope this was just a cosmic ray.

  2. Byron commented on Oct 24, 2021

    @Byron
    Byron
    on Oct 24, 2021
    Member
    More actions

    curl -L -O https://files.pyAthonhosted.org/packages/source/g/gitdb/gitdb-4.0.9.tar.gz -O https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-4.0.9.tar.gz.asc && gpg --verify gitdb-4.0.9.tar.gz.asc still says it's a bad signature.

    I have no idea how to fix this or what the problem even is :/.

  3. Byron
    added
    help wanted
    on Oct 24, 2021
  4. dvzrv commented on Oct 26, 2021

    @dvzrv
    dvzrv
    on Oct 26, 2021
    Author
    More actions

    Can you create a signature locally to test whether it is also bad?

    e.g. gpg --detach-sign gitdb-4.0.9.tar.gz and then verify it via gpg --verify gitdb-4.0.9.tar.gz.asc

    How are you creating the signature and how is it pushed to pypi.org?

  5. Byron commented on Oct 26, 2021

    @Byron
    Byron
    on Oct 26, 2021
    Member
    More actions

    Great idea, as this easily reproduces the issue while showing what's going wrong:

    gpg -u 27C50E7F590947D7273A741E85194C08421980C9 --detach-sign gitdb-4.0.9.tar.gz
    gpg: error reading symlink '/proc/curproc/file': No such file or directory
    

    It still creates a signature though, which might be a signature over no bytes at all. Initially I thought it would be related to me using gpg from nix-pkg, but now I am using the homebrew one with the same outcome.

    Funnily enough, I am not the only one: https://stackoverflow.com/questions/69699986/gpg-error-reading-symlink-proc-curproc-file-no-such-file-or-directory . The issue seems to be all but harmless, and is probably related to breakage in MacOS 12/12.1. The latter one I am using.

    By the looks of it there won't be valid signatures from me for a while until this is fixed. Now that I can reproduce it, I can keep trying as updates come in.

    How are you creating the signature and how is it pushed to pypi.org?

    	twine upload -s -i 27C50E7F590947D7273A741E85194C08421980C9 dist/*
    

    Twine does it, and I wouldn't be surprised if it just calls gpg under the hood.

  6. dvzrv commented on Nov 3, 2021

    @dvzrv
    dvzrv
    on Nov 3, 2021
    Author
    More actions

    @Byron can you use a different machine/ a VM for an intermediate release?

  7. Byron commented on Nov 4, 2021

    @Byron
    Byron
    on Nov 4, 2021
    Member
    More actions

    In the linked stackoverflow question one of the answers says it's fixed in 2.3.3.1, so I upgraded to this one. Unfortunately, despite not showing the error message anymore, the signature is still bad right after creation. Maybe they also considered the issue harmless and squelched it. Maybe it's something very else.

    Setting up a VM to sign should be possible and I will see when I get to it. Alternatively I think I could try MacGPG as I'd expect them to maintain a working version.

  8. Byron commented on Nov 4, 2021

    @Byron
    Byron
    on Nov 4, 2021
    Member
    More actions

    No, MacGPG and its binary have the same issue despite claiming support for MacOS 12. I'd think my key got corrupted, but that's something it would probably detect, besides, signing commits works and yields valid signatures.
    So maybe gpg for detached signatures is thoroughly broken on MacOS right now (as are a few other things, like the linker 😅)

  9. dvzrv commented on Dec 10, 2021

    @dvzrv
    dvzrv
    on Dec 10, 2021
    Author
    More actions

    You could also have a look at sq.

    Reacted by Sebastian Thiel
  10. Byron commented on Dec 12, 2021

    @Byron
    Byron
    on Dec 12, 2021
    Member
    More actions

    I took a look and alongside the --sign-with=<path-to-gpg-wrapper> one should be able to make twine use sq for signing.

    Now one would just have to bring in the GPG keys to sq. Probably all doable and desirable to open a new chapter on the GPG story which definitely left a bitter taste thus far.

  11. dvzrv commented on Dec 12, 2021

    @dvzrv
    dvzrv
    on Dec 12, 2021
    Author
    More actions

    Probably all doable and desirable to open a new chapter on the GPG story which definitely left a bitter taste thus far.

    I agree. We also just recently switched the Arch Linux distribution keyring handling over to sq, as its tooling and CLI is less overengineered and nicer to use.

  12. dvzrv commented on Jan 17, 2022

    @dvzrv
    dvzrv
    on Jan 17, 2022
    Author
    More actions

    Any update on this? I unfortunately can not upgrade the package at the moment.

  13. Byron commented on Jan 18, 2022

    @Byron
    Byron
    on Jan 18, 2022
    Member
    More actions

    Sorry for the wait and the hassle it must be.

    For now I don't know when I will spend the time to deal with this. It's certainly not helped by my expectation that it will be painful to touch a combination of python tooling and handle loose GPG keys.

    At the latest it will happen once GitPython NG lands, the one that uses Gitoxide under the hood.

    In the mean time, after each update of MacOS or GPG I try again to see if something changes, but have no hopes.

  14. dvzrv commented on Feb 20, 2022

    @dvzrv
    dvzrv
    on Feb 20, 2022
    Author
    More actions

    I am sorry, but I will now drop all PGP signature validation from all gitpython related packages (this ticket has been open since October 2021).

    Having PGP signature validation does not justify the breakage that is caused by trying to make this work (see e.g. https://bugs.archlinux.org/task/73193) and I have spent considerable amounts of time trying to make this work by providing numerous tickets (and I do not see myself doing this anymore).
    This is not feasible and as this has been broken for months already I would suggest you consider either properly fixing this or just dropping it. As it stands it is just not possible to rely on the PGP signatures for the gitpython projects :-/

  15. Byron commented on Feb 21, 2022

    @Byron
    Byron
    on Feb 21, 2022
    Member
    More actions

    Thanks for speaking up and sharing your experience, and I am sorry to be the cause of this hassle and hope that dropping PGP signatures will fix the issue.

    Now that I know it's an option, I will do that right away which hopefully allows GitPython packages to become available again on arch linux. PGP was always a hassle for me as well and even though sequoia could be the solution, I am just unable to invest the time needed to migrate to it. It's sad that suddenly perfectly valid keys just fail to produce valid signatures in this particular setting, without error message or anything like that.

  16. Byron
    added 4 commits that reference this issue on Feb 21, 2022

    Deprecate GPG signature docs; stop signing releases

    c0f2cf3

    bump patch level in the hopes for a valid sig on release

    7c67010

    Stop signing releases (#77)

    4762d99

    Stop signing releases

    334ef84
  17. Byron commented on Feb 21, 2022

    @Byron
    Byron
    on Feb 21, 2022
    Member
    More actions

    Would re-releasing smmap, gitdb and GitPython help to get affairs back on track? If so, please let me know and it will be done. Thank you

  18. RandyMcMillan
    added a commit that references this issue on Mar 25, 2022

    bump patch level in the hopes for a valid sig on release

    1c97683
  19. Byron commented on Feb 15, 2024

    @Byron
    Byron
    on Feb 15, 2024
    Member
    More actions

    Closing this issue as signed releases, deprecated for a while, have now officially been removed from the last location that mentioned them, the main readme file.

    Please see this comment for an anchor to the conversation that led to this.

    It may well be that I am missing something which makes closing this issue the incorrect choice, and if so please let me know and we can reopen.

    Reacted by Eliah Kagan
  20. EliahKagan commented on Feb 26, 2024

    @EliahKagan
    EliahKagan
    on Feb 26, 2024
    Member
    More actions

    I've noticed this is still open. Some time has passed since #77 (comment); should this be closed?

    Reacted by Sebastian Thiel
  21. Byron
    closed this as not plannedon Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.