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

refactor(get-modflow): don't hard-code available os tags #2426

Merged
merged 1 commit into from
Jan 26, 2025
Merged
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
14 changes: 1 addition & 13 deletions flopy/utils/get_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@
"modflow6-nightly-build": "modflow6_nightly",
}
available_repos = list(renamed_prefix.keys())
available_ostags = [
"linux",
"mac",
"macarm",
"win32",
"win64",
"win64ext",
"win64par",
]
max_http_tries = 3

# Check if this is running from flopy
Expand Down Expand Up @@ -83,9 +74,7 @@ def get_suffixes(ostag) -> Tuple[str, str]:
elif "mac" in ostag:
return "", ".dylib"
else:
raise KeyError(
f"unrecognized ostag {ostag!r}; choose one of {available_ostags}"
)
raise KeyError(f"unrecognized ostag {ostag!r}")


def get_request(url, params={}):
Expand Down Expand Up @@ -699,7 +688,6 @@ def cli_main():
)
parser.add_argument(
"--ostag",
choices=available_ostags,
help="Operating system tag; default is to automatically choose.",
)
parser.add_argument(
Expand Down
Loading