Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.1.3 #752

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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