Skip to content

Commit

Permalink
Bump extensions version to 3.4.2 (#1473)
Browse files Browse the repository at this point in the history
* update extensions version to 3.4.2

* add bin_directory option to print_extensions_version and use it in get-extensions

---------

Co-authored-by: Keith Beattie <[email protected]>
  • Loading branch information
Robbybp and ksbeattie authored Aug 22, 2024
1 parent 9dce004 commit 8bf70ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions idaes/commands/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@
_log = logging.getLogger("idaes.commands.extensions")


def print_extensions_version(library_only=False):
def print_extensions_version(library_only=False, bin_directory=None):
click.echo("---------------------------------------------------")
click.echo("IDAES Extensions Build Versions")
click.echo("===================================================")
if bin_directory is None:
bin_directory = idaes.bin_directory
if not library_only:
v = os.path.join(idaes.bin_directory, "version_solvers.txt")
v = os.path.join(bin_directory, "version_solvers.txt")
try:
with open(v, "r") as f:
v = f.readline().strip()
except FileNotFoundError:
v = "no version file found"
click.echo("Solvers: v{}".format(v))
v = os.path.join(idaes.bin_directory, "version_lib.txt")
v = os.path.join(bin_directory, "version_lib.txt")
try:
with open(v, "r") as f:
v = f.readline().strip()
Expand Down Expand Up @@ -150,7 +152,8 @@ def get_extensions(
for k, i in d.items():
click.echo(f"{k:14}: {i}")
else:
print_extensions_version(library_only)
# If `to` is None, we default to idaes.bin_directory.
print_extensions_version(library_only=library_only, bin_directory=to)
else:
click.echo("\n* You must provide a download URL for IDAES binary files.")

Expand Down
2 changes: 1 addition & 1 deletion idaes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

_log = logging.getLogger(__name__)
# Default release version if no options provided for get-extensions
default_binary_release = "3.4.0"
default_binary_release = "3.4.2"
# Where to download releases from get-extensions
release_base_url = "https://github.com/IDAES/idaes-ext/releases/download"
# Where to get release checksums
Expand Down

0 comments on commit 8bf70ee

Please sign in to comment.