Skip to content

Commit

Permalink
Merge pull request #40 from afrendeiro/main
Browse files Browse the repository at this point in the history
Fix #39: add dynamic versioning with versioningit
  • Loading branch information
Mr-Milk authored Aug 28, 2024
2 parents 1d66fc3 + 0e23331 commit 8dd29b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "versioningit"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -30,7 +30,7 @@ dependencies = [
]

[tool.hatch.version]
path = "src/lazyslide/__init__.py"
source = "versioningit"

[tool.hatch.build.targets.wheel]
packages = ["src/lazyslide", "src/lazyslide_cv", "src/wsi_data"]
Expand Down
4 changes: 4 additions & 0 deletions src/lazyslide/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import pkg_resources

from wsi_data import open_wsi
import lazyslide.pp as pp
import lazyslide.tl as tl
import lazyslide.pl as pl

version = __version__ = pkg_resources.get_distribution("lazyslide").version

0 comments on commit 8dd29b9

Please sign in to comment.