Skip to content

Commit

Permalink
Merge pull request #752 from DHI/release/2.1.3
Browse files Browse the repository at this point in the history
Release/2.1.3
  • Loading branch information
ecomodeller authored Nov 19, 2024
2 parents e8c87b8 + 715b3b7 commit 81e10c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion mikeio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
from platform import architecture
from collections.abc import Sequence
Expand All @@ -21,7 +22,14 @@
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#

__version__ = "2.2.dev2" # TODO use git hash instead for dev version?
try:
# read version from installed package
__version__ = version("mikeio")
except PackageNotFoundError:
# package is not installed
__version__ = "dev"

# __version__ = "2.2.dev2" # TODO use git hash instead for dev version?
# __version__ = "1.5.0"
__dfs_version__: int = 220

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude = ["notebooks", "tests", "images", ".github", "docs", ".devcontainer", "

[project]
name="mikeio"
version="2.2.dev2"
version="2.1.3"
dependencies = [
"mikecore>=0.2.1",
"numpy>=1.22.0",
Expand Down

0 comments on commit 81e10c8

Please sign in to comment.