Skip to content

Commit

Permalink
fix: Removed fragile determination of package version in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrod committed Sep 11, 2024
1 parent cb932e3 commit b1a8f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ commit_parser = "angular"
logging_use_named_masks = true
allow_zero_version = true
tag_format = "v{version}"
version_variables = ["pyproject.toml:version"]
version_variables = ["pyproject.toml:version", "./src/karney/__init__.py:__version__"]

commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"

Expand Down
4 changes: 2 additions & 2 deletions src/karney/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
https://doi.org/10.1007/s00190-012-0578-z
"""
from importlib.metadata import version

from . import geodesic, util, license
__version__ = version("karney") # read version from installed package
__version__ = "1.0.7"

__doc__ = (__doc__
+ geodesic.__doc__
Expand Down

0 comments on commit b1a8f00

Please sign in to comment.