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

Bump extensions version to 3.4.2 #1473

Merged
merged 3 commits into from
Aug 22, 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
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
Loading