def scm_version():
def local_scheme(version):
- return version.format_choice("+{node}", "+{node}.dirty")
- return {"version_scheme": "guess-next-dev", "local_scheme": local_scheme}
+ if version.tag and not version.distance:
+ return version.format_with("")
+ else:
+ return version.format_choice("+{node}", "+{node}.dirty")
+ return {
+ "relative_to": __file__,
+ "version_scheme": "guess-next-dev",
+ "local_scheme": local_scheme
+ }
setup(