Skip to content

Commit 5e0c9c9

Browse files
build: Bump version to v0.30.5 (#3979)
Bump version to v0.30.5 Just adding the solution for deprecation flag. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent f49abf3 commit 5e0c9c9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/changelog.d/3953.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deprecated flag for flobject.py

src/ansys/fluent/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
from ansys.fluent.core.utils.fluent_version import FluentVersion # noqa: F401
6363
from ansys.fluent.core.utils.setup_for_fluent import setup_for_fluent # noqa: F401
6464

65-
__version__ = "0.30.4"
65+
__version__ = "0.30.5"
6666

6767
_VERSION_INFO = None
6868
"""

src/ansys/fluent/core/solver/flobject.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,9 @@ def _is_deprecated(self) -> bool:
413413
deprecated_version = (
414414
deprecated_version.get("deprecated-version") if deprecated_version else None
415415
)
416-
return deprecated_version and FluentVersion(self._version) >= FluentVersion(
417-
deprecated_version
416+
return deprecated_version and (
417+
float(deprecated_version) <= 22.2
418+
or FluentVersion(self._version) >= FluentVersion(deprecated_version)
418419
)
419420

420421
def is_active(self) -> bool:

0 commit comments

Comments
 (0)