Closed khaeru closed 2 years ago
Some possible options:
__version__ = get_version(root=Path(__file__).parents[1])
or whatever's suggested by the README/docs of setuptools-scm.
Thanks for raising this issue here and also directly with setuptools_scm. I merged a quick-fix with a pin to ensure that any pipeline pulling the latest from GitHub works.
I'll come back to this towards the end of this week and work on a proper solution.
setuptools-scm 6.4.1 was released with a fix: https://github.com/pypa/setuptools_scm/releases/tag/v6.4.1
setuptools-scm 6.4.0 was released 17 January with an unadvertised/backwards-incompatible API change in
get_version()
: pypa/setuptools_scm#669The bug is triggered by this code: https://github.com/IAMconsortium/pyam/blob/8dc1d275a3981d16c9cf34fa7022cc407948ef64/pyam/__init__.py#L28-L30
As a result, packages that have pyam as an optional or mandatory requirement experience
TypeError
at the moment pyam is imported. See for example this test log, excerpted: