Skip to content

Commit 00ebf13

Browse files
authored
Merge pull request #409 from RoseauTechnologies/develop
Version 0.13.1
2 parents 291cdf6 + 807c607 commit 00ebf13

File tree

8 files changed

+88
-75
lines changed

8 files changed

+88
-75
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
contents: read
3434

3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3737
with:
3838
lfs: false
3939
persist-credentials: false

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
permissions:
2323
contents: read
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
with:
2727
lfs: false
2828
persist-credentials: false

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ repos:
2020
- id: check-github-workflows
2121
- id: check-dependabot
2222
- id: check-readthedocs
23-
- repo: https://github.com/crate-ci/typos
24-
rev: v1.35.6
23+
- repo: https://github.com/adhtruong/mirrors-typos
24+
# See https://github.com/crate-ci/typos/issues/390
25+
# repo: https://github.com/crate-ci/typos
26+
rev: v1.36.0
2527
hooks:
2628
- id: typos
2729
args: [--force-exclude]

doc/Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ og:description: See what's new in the latest release of Roseau Load Flow !
1919

2020
# Changelog
2121

22+
## Version 0.13.1
23+
24+
- Fix a bug where license validation failed when the English (US) language was not installed on the system (observed on
25+
Linux).
26+
27+
- {gh-pr}`408` Improve the display of C++ code error messages.
28+
2229
## Version 0.13.0
2330

2431
- {gh-pr}`402` Improve the `en.to_graph` method.

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# The full version, including alpha/beta/rc tags
2727
version = "0.13"
28-
release = "0.13.0"
28+
release = "0.13.1"
2929

3030
# -- General configuration ---------------------------------------------------
3131

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "roseau-load-flow"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
description = "Highly capable multi-phase load flow solver"
55
authors = [
66
{ name = "Ali Hamdan", email = "ali.hamdan@roseautechnologies.com" },
@@ -40,7 +40,7 @@ dependencies = [
4040
"pyproj>=3.3.0",
4141
"certifi>=2023.5.7",
4242
"platformdirs>=4.0.0",
43-
"roseau-load-flow-engine==0.18.0",
43+
"roseau-load-flow-engine==0.18.1",
4444
]
4545

4646
[project.urls]
@@ -80,7 +80,7 @@ doc = [
8080
managed = true
8181

8282
[build-system]
83-
requires = ["uv_build>=0.8.13,<0.9.0"]
83+
requires = ["uv_build>=0.8.15,<0.9.0"]
8484
build-backend = "uv_build"
8585

8686
[tool.uv.build-backend]

roseau/load_flow/license.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import datetime as dt
22
import logging
33
import os
4+
import re
45

56
import certifi
67
from platformdirs import user_cache_dir
@@ -89,7 +90,10 @@ def activate_license(key: str | None = None) -> None:
8990
cy_activate_license(key=key, cacert_filepath=certifi.where(), cache_folderpath=user_cache_dir())
9091
_license = None
9192
except RuntimeError as e:
92-
msg = f"The license cannot be activated. The detailed error message is {e.args[0][2:]!r}."
93+
err_msg = e.args[0]
94+
if re.search(r"^[0-2] ", err_msg):
95+
err_msg = err_msg[2:]
96+
msg = f"The license cannot be activated. The detailed error message is {err_msg!r}."
9397
logger.error(msg)
9498
raise RoseauLoadFlowException(msg=msg, code=RoseauLoadFlowExceptionCode.LICENSE_ERROR) from e
9599

uv.lock

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)