Skip to content

Commit

Permalink
update versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
guiwitz committed Dec 16, 2024
1 parent 3ec98f3 commit 8d823d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions microfilm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution("microfilm").version
except DistributionNotFound:
# package is not installed
pass
from ._version import version as __version__
except ImportError:
__version__ = "unknown"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ requires = [
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "microfilm/version.py"
write_to = "microfilm/_version.py"

0 comments on commit 8d823d2

Please sign in to comment.