Skip to content

AttributeError: 'NoneType' object has no attribute 'groups' if tag has the wrong syntax #471

@plijnzaad

Description

@plijnzaad

(I created this issue over in the setuptools repo (see https://github.com/pypa/setuptools/issues/2326 ) but I realize that it should actually be here, sorry)

I happened to have a git tag of the wrong syntax, namely 2.0.0-alpha.5-PMC, leading to the above error. It was very difficult to track down for a lowly end-user of a package (atropos) that uses it, and which I forked in order to fix a few things. I did not know that tags were needed, let alone be of a very specific shape (and 2.0.0-alpha.5-PMC is not that extreme, right?) .

I have appended the stdout and stderr before git tag --delete 2.0.0-alpha.5-PMC (std*-bad.txt) and after deleting the offending tag (std*-good.txt) (done with export SETUPTOOLS_SCM_DEBUG=verbose)

stdout-bad.txt
stderr-bad.txt

stdout-good.txt
stderr-good.txt

I tried various older versions of setuptools-scm (back to 2.0.0 I recall correctly), all had the same or similar problem. I see several reports of people having similar trouble so it appears to be a general problem and one that occurs more often. I would love if this were more robust, i.e. I'd much rather have a version string 'unknown' or somesuch than a package that refuses to install ...

Cheers,
P

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions