Skip to content

Commit

Permalink
fixup mistakes dynamically getting package version
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Oct 31, 2023
1 parent bbf8200 commit 5dd60bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools",
"setuptools-scm",
"setuptools-scm[toml]",
]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -59,8 +59,7 @@ dev = [
[tool.setuptools_scm]

[tool.setuptools.dynamic]
version = {attr = "stacterm.version.__version__"}
readme = {file = "README.md"}
readme = {file = "README.md", content-type = "text/markdown"}

[tool.isort]
profile = "black"
Expand Down
2 changes: 1 addition & 1 deletion src/stacterm/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("dbami")
__version__ = version("stacterm")
except PackageNotFoundError:
__version__ = "0.0.0"

0 comments on commit 5dd60bc

Please sign in to comment.