-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from MODFLOW-USGS/v1.0.0
Release 1.0.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: w-bonelli <[email protected]>
- Loading branch information
Showing
20 changed files
with
431 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# OS Tags | ||
|
||
MODFLOW 6, Python3, build servers, and other systems may refer to operating systems by different names. Utilities are provided in the `modflow_devtools.ostags` module to convert between | ||
|
||
- the output of `platform.system()` | ||
- GitHub Actions `runner.os` tags | ||
- MODFLOW 6 release asset OS tags | ||
|
||
Only Linux, Mac and Windows are supported. | ||
|
||
## Tag specification | ||
|
||
Python3's `platform.system()` returns "Linux", "Darwin", and "Windows", respectively. | ||
|
||
GitHub Actions (e.g. `runner.os` context) use "Linux", "macOS" and "Windows". | ||
|
||
MODFLOW 6 release asset names end with "linux", "mac" or "win64". | ||
|
||
## Getting tags | ||
|
||
To get the MODFLOW 6 or GitHub tag for the current OS, use: | ||
|
||
- `get_modflow_ostag()` | ||
- `get_github_ostag()` | ||
|
||
## Converting tags | ||
|
||
Conversion functions are available for each direction: | ||
|
||
- `python_to_modflow_ostag(tag)` | ||
- `modflow_to_python_ostag(tag)` | ||
- `modflow_to_github_ostag(tag)` | ||
- `github_to_modflow_ostag(tag)` | ||
- `python_to_github_ostag(tag)` | ||
- `github_to_python_ostag(tag)` | ||
|
||
Alternatively: | ||
|
||
```python | ||
OSTag.convert(platform.system(), "py2mf") | ||
``` | ||
|
||
The second argument specifies the mapping in format `<source>2<target>`, where `<source>` and `<target>` may take values `py`, `mf`, or `gh`. | ||
|
||
**Note**: source and target must be different. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
__author__ = "Joseph D. Hughes" | ||
__date__ = "Aug 04, 2023" | ||
__version__ = "0.3.0" | ||
__date__ = "Aug 05, 2023" | ||
__version__ = "1.0.0" | ||
__maintainer__ = "Joseph D. Hughes" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.