Skip to content

Commit

Permalink
Try new scheme for versioning in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jochym committed Dec 7, 2024
1 parent 68ac385 commit 546d73f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ def current_version(version: ScmVersion) -> str:
return version.format_next_version(guess_next_version,
"{tag}"+ delim +"{distance}")

def myversion_func(version: ScmVersion) -> str:
from setuptools_scm.version import guess_next_version

return version.format_next_version(guess_next_version, "{tag}.{distance}")


setup(use_scm_version={"version_scheme": current_version,
"local_scheme": get_no_local_node})
# setup(use_scm_version={"version_scheme": current_version,
# "local_scheme": get_no_local_node})

setup(use_scm_version={"version_scheme": myversion_func})

0 comments on commit 546d73f

Please sign in to comment.