Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
update version discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jan 6, 2024
1 parent 597c90d commit 1c7f193
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/gphotos_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
try:
# Use live version from git
from setuptools_scm import get_version
from importlib.metadata import version # noqa

# Warning: If the install is nested to the same depth, this will always succeed
tmp_version = get_version(root="../../", relative_to=__file__)
del get_version
except (ImportError, LookupError):
# Use installed version
from ._version import version as __version__
else:
__version__ = tmp_version
__version__ = version("gphotos-sync")
del version

__all__ = ["__version__"]

0 comments on commit 1c7f193

Please sign in to comment.