Skip to content

versioning mechanism broken #7

Description

@joelb123

The versioning mechanism in setup.py sets version to "Undefined", then does an exec() from init.py to get the version number from inside the file. Presumably this was done to have the version number appear in only one place, and it must have worked for PYPI the last time the package was distributed. Unfortunately, it breaks the rules for pip installs direct from the repo, as the exec never gets done. This really matters for those of us working from a PR like the one to do v2 search.

I believe the recommended way to do it is to put the static version in the package declaration and use importlib inside the module.

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