Skip to content

Commit

Permalink
Update version scheme to no-guess-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiliin committed Jun 23, 2024
1 parent 68ecb1a commit 9c348ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/binder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
except ImportError:
_default_version = "0.0.1"


__all__ = ["binder", "__version__"]


BINDER_BIN_DIR = os.path.join(os.path.dirname(__file__), "bin")


def binder():
raise SystemExit(subprocess.call([os.path.join(BINDER_BIN_DIR, "binder")] + sys.argv[1:], close_fds=False))


def _get_version():
"""Return the version string used for __version__."""
# Only shell out to a git subprocess if really needed, and not on a
Expand All @@ -29,12 +28,13 @@ def _get_version():

return setuptools_scm.get_version(
root=root,
version_scheme="post-release",
version_scheme="no-guess-dev",
fallback_version=_default_version,
)
except (ImportError, LookupError):
return _default_version
else: # Get the version from the _version.py setuptools_scm file.
return _default_version


__version__ = _get_version()
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ archs = ["universal2"]

[tool.setuptools_scm]
root = ".."
version_scheme = "post-release"
version_scheme = "no-guess-dev"
fallback_version = "0.0.1"

0 comments on commit 9c348ce

Please sign in to comment.