Skip to content

Commit

Permalink
better place to put __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
matin committed Jul 23, 2023
1 parent 0eb6041 commit 815c87f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion garth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
from .http import client
from .version import __version__

__version__ = "0.2.1"
__all__ = [
"client",
"configure",
"login",
"connectapi",
"save",
"resume",
"__version__",
]

configure = client.configure
login = client.login
Expand Down
1 change: 1 addition & 0 deletions garth/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.2.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"
license = {text = "MIT"}

[tool.pdm]
version = { source = "file", path = "garth/__init__.py" }
version = { source = "file", path = "garth/version.py" }

[build-system]
requires = ["pdm-backend"]
Expand Down

0 comments on commit 815c87f

Please sign in to comment.