Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdrivefs: fix version logic #41

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be explicit, even if it matches a default location.

Loading