setuptools_scm
setuptools_scm copied to clipboard
Be nicer about possible misconfigurations
trafficstars
Fixes https://github.com/pypa/setuptools_scm/issues/1003 by turning situations where the user might get an AssertionError and turn them into descriptive ValueErrors.
Additionally, tests have been added to test the behavior.
The situations fixed are (with the real-world facepalm situations I ended up in):
- The entrypoint for
version_schemeandlocal_schemedon't exist- :facepalm: I accidentally used the function name once, instead of the entrypoint name
- The entrypoint(s) for
version_schemeandlocal_schemedon't return anything- :facepalm: I forgot to add a
returnto my custom scheme
- :facepalm: I forgot to add a
- The
tag_regexis bad, and was loaded from the config- :facepalm: This one should be self-explanatory
- The
tag_regexmatched, but the version was blank- :facepalm: My regex was borked
i intend to merge this after hte next minor release as its a "breaking change" that should go in nonetheless