Skip to content

Commit

Permalink
gdrivefs: fix version logic (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Mar 1, 2024
1 parent 8bbfa45 commit ab45b57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ ENV/

# mypy
.mypy_cache/

/gdrivefs/_version.py
8 changes: 5 additions & 3 deletions gdrivefs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
try:
from ._version import version as __version__
except ImportError:
__version__ = "0.dev"

from .core import GoogleDriveFileSystem
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ Source = "http://github.com/fsspec/gdrivefs"
packages = ["gdrivefs", "gdrivefs.tests"]

[tool.setuptools_scm]
version_file = "gdrivefs/_version.py"

0 comments on commit ab45b57

Please sign in to comment.