Skip to content

Commit

Permalink
Improve version specification
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Jul 24, 2023
1 parent be27d03 commit 18cba63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion data_safe_haven/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__version__ = "v0.4.0"
__version_info__ = ('5', '0', '0')
__version__ = '.'.join(__version_info__)
5 changes: 3 additions & 2 deletions data_safe_haven/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data Safe Haven"""
import pkg_resources

__version__ = pkg_resources.get_distribution("data-safe-haven").version
from .version import __version__, __version_info__

__all__ = ["__version__", "__version_info__"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies = [
dsh = "data_safe_haven.cli:main"

[tool.hatch.version]
path = "data_safe_haven/__about__.py"
path = "data_safe_haven/version.py"

[tool.hatch.envs.lint]
detached = true
Expand Down

0 comments on commit 18cba63

Please sign in to comment.