Skip to content

Commit

Permalink
Fixup insta-science-util download --platform option. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois authored Jan 11, 2025
1 parent a434a59 commit abfec92
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions python/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# insta-science

## 0.4.5

De-dup `insta-science-util download --platform` and fix its CLI help.

## 0.4.4

Use a 'User-Agent' header of `insta-science/<version>` when fetching URLs.
Expand Down
2 changes: 1 addition & 1 deletion python/insta_science/_internal/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Science project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).

__version__ = "0.4.4"
__version__ = "0.4.5"
4 changes: 2 additions & 2 deletions python/insta_science/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def download(
) -> Any:
dest = options.dest[0]
versions = options.versions or [configuration.science.version]
platforms = options.platforms or [CURRENT_PLATFORM]
platforms = list(dict.fromkeys(options.platforms)) if options.platforms else [CURRENT_PLATFORM]

for version in versions:
if version:
Expand Down Expand Up @@ -170,7 +170,7 @@ def main() -> Any:
choices=list(Platform),
help=(
"Download science binaries for the specified platform(s). Mutually exclusive with "
"`--platform`. By default, only binaries for the current platform are downloaded."
"`--all-platforms`. By default, only binaries for the current platform are downloaded."
),
)
download_parser.set_defaults(func=download)
Expand Down
2 changes: 1 addition & 1 deletion python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abfec92

Please sign in to comment.