-
Notifications
You must be signed in to change notification settings - Fork 358
ctsm5.3.040: Update ctsm_pylib to 3.13.2 #2982
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
Merged
Merged
Changes from 92 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
a240f9c
Update conda_env_ctsm_py.txt to use Python 3.11.11.
samsrabin 2b8714c
Try Python 3.13.2 after removing six(_additions).py
samsrabin e56ee4d
Get Python unit tests working.
samsrabin 30d2682
Reformat with black.
samsrabin 2c3d3a5
Add previous commit to .git-blame-ignore-revs
samsrabin 3c23c96
Resolve useless-option-value pylint errors.
samsrabin 55681ee
Resolve unknown-option-value and unrecognized-option pylint errors.
samsrabin 8d64e0c
Resolve wrong-import-order pylint errors.
samsrabin d50ed55
Update black in Github workflow.
samsrabin 6c2d503
Resolve unnecessary-dunder-call pylint errors.
samsrabin 9762df9
Generate .pylintrc_3_13_2.
samsrabin 68a5907
Bring over custom things from .pylintrc to .pylintrc_3_13_2.
samsrabin 97fa595
Replace .pylintrc with .pylintrc_3_13_2.
samsrabin 6cbf4fa
Disable too-many-positional-arguments pylint error for existing funct…
samsrabin b1be486
Resolve implicit-str-concat pylint errors.
samsrabin bc3bb36
Add timeout (default 30s) to requests.get() call.
samsrabin 348e94e
Resolve (possibly-)used-before-assignment pylint errors.
samsrabin e6dc462
Remove usage of six.
samsrabin 3d04d6b
Suppress pylint consider-using-dict-items in a poorly-tested function.
samsrabin 9328d8d
Resolve pylint warnings to use {} instead of dict().
samsrabin 3048936
Resolve remaining pylint issues.
samsrabin add9933
Freeze all versions in conda_env_ctsm_pylib_3_13_2.txt.
samsrabin ea4c542
Replace conda_env_ctsm_py.txt with conda_env_ctsm_pylib_3_13_2.txt.
samsrabin 550129e
Remove empty requirements.txt.
samsrabin b8e4f87
py_env_create: Add -n/--name option for custom env name.
samsrabin a258d28
py_env_create: Ask user how to handle existing env.
samsrabin dc1ec64
py_env_create: Exit on errors.
samsrabin 391f89d
py_env_create: Rename a variable.
samsrabin 4e5a8e9
py_env_create: Add --quiet to conda remove.
samsrabin be9c170
py_env_create: Better error handling.
samsrabin b68ed0a
py_env_create: Refactor to make rename_existing_env.
samsrabin a0517bf
py_env_create: Improve a message.
samsrabin 1e5eac6
py_env_create: Don't allow running from within a conda env.
samsrabin eb52ea2
py_env_create: trap and exit on Ctrl-C.
samsrabin 5ec2e49
Many changes for testing py_env_create.
samsrabin 287503b
Move test_sys_py_env_create.py into main test dir.
samsrabin 5fab728
test_sys_py_env_create now uses standard ctsm_pylib.
samsrabin 5493aab
Slight refactor of test_sys_py_env_create.py.
samsrabin 21369a9
py_env_create: Fix default name help msg.
samsrabin 65364b4
test_sys_py_env_create: tearDown() bugfix.
samsrabin 2d2ae3e
py_env_create: Improve an error msg.
samsrabin 2d2f659
py_env_create: Error if both -r and -o given.
samsrabin b11b346
test_sys_py_env_create: Test more option flag variants.
samsrabin 87b7bd2
py_env_create: Remove untestable user interaction code.
samsrabin 5dedee2
Rename a test.
samsrabin 890b463
Rearrange test_sys_py_env_create.py.
samsrabin 0902ac0
Add previous commit to .git-blame-ignore-revs.
samsrabin 104bbca
py_env_create: Send some more messages to stderr.
samsrabin 9e282ab
Fix a subprocess.run(check=).
samsrabin 4014df7
py_env_create test: Ensure error if env exists and -r name does too.
samsrabin 1d91d78
py_env_create: Test errors in renaming/overwriting active conda env.
samsrabin c20c2e9
test_sys_py_env_create: Refactor to make _create_empty_env().
samsrabin 5a44edf
Refactor test_sys_py_env_create.py.
samsrabin 45f1f2f
test_sys_py_env_create.py: Refactor to make get_conda_envs().
samsrabin 7f825c0
test_sys_py_env_create.py: Refactor to make does_env_exist().
samsrabin c96d0f8
test_sys_py_env_create.py: _create_empty_env() now smart about check.
samsrabin 29000c5
Add ctsm_pylib doc to User's Guide.
samsrabin fbcca84
py_env_create: Remove an unnecessary line breaking portability.
samsrabin b1d7c06
py_env_create: Fallback to mamba; add -q/--quiet; improve -v/--verbose.
samsrabin 630db49
py_env_create: Messaging improvements.
samsrabin 7634832
Add note about coordinating black version.
samsrabin 7ce57dc
py_env_create: Remove refs to mamba from usage().
samsrabin 1972cef
Reformat with black.
samsrabin 8dc32f5
Add previous commit to .git-blame-ignore-revs.
samsrabin 32c103f
Add some comments about exiting py_env_create.
samsrabin 2d8464f
py_env_create: remove SCRIPT_DIR bit.
samsrabin 3fcc585
py_env_create: Explain the conda/mamba test env thing at the top.
samsrabin d047269
Add a comment explaining empty.txt.
samsrabin b24aba5
py_env_create: Better err msg if neither conda nor mamba work.
samsrabin 1c1ae01
py_env_create: conda/mamba unavailable error now goes to stderr.
samsrabin 637511d
Fix too-many-positional-arguments for some functions by making args k…
samsrabin 29ec907
Explain ignoring too-many-positional-arguments in python/ctsm/crop_ca…
samsrabin 0e14caf
Resolve more too-many-positional-arguments complaints.
samsrabin 5fd8421
Resolve even more too-many-positional-arguments complaints.
samsrabin 854ddd8
Resolve remaining too-many-positional-arguments complaints.
samsrabin a9081cd
py_env_create: --help now says -r and -o are incompatible.
samsrabin 0b996ac
testlist_clm.xml: Fix name of clm_pymods suite in a comment.
samsrabin c6d9948
Add README.updating_ctsm_pylib.md.
samsrabin 6bb60b1
Add pytest and coverage.
samsrabin d27833b
Fix 'Exit on Ctrl-C'.
samsrabin 6c9ba70
Fix SCRIPT_DIR vs. dir.
samsrabin 7cf82d7
py_env_create: Add --old option to install 3.7.9 ctsm_pylib.
samsrabin f5aa204
py_env_create: Add -d/--dry-run option.
samsrabin 9040dc3
py_env_create: Add -m/--mamba option to skip automatic determination.
samsrabin f5939b0
py_env_create: Always use conda to rename.
samsrabin 276dedb
Add tests for py_env_create dry run, old, and mamba.
samsrabin d4ada44
Merge branch 'b4b-dev' into ctsm_pylib_3.13.2
samsrabin 0da11ae
User's Guide: Link to using-ctsm-pylib page in subset-data page.
samsrabin b75d84d
Merge branch 'master-upstream' into ctsm_pylib_3.13.2
samsrabin 74adfa5
py_env_create: Improve help text for --rename-existing.
samsrabin 2be363b
py_env_create: Include new env name in help for --rename-existing.
samsrabin 34ba0d6
Merge tag 'ctsm5.3.039' into ctsm_pylib_3.13.2
samsrabin b4d07e0
Update ChangeLog and ChangeSum.
samsrabin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Submodule cdeps
updated
45 files
This file contains hidden or 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 hidden or 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
14 changes: 14 additions & 0 deletions
14
doc/source/users_guide/using-clm-tools/using-ctsm-pylib.rst
This file contains hidden or 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,14 @@ | ||
|
|
||
| .. include:: ../substitutions.rst | ||
| .. _using-ctsm-pylib: | ||
|
|
||
| Installing the CTSM Python environment | ||
| ====================================== | ||
|
|
||
| Many of our Python-based tools require non-standard Python modules to be installed. To facilitate this, you can install a CTSM-specific `Conda <https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html>`__ environment with the exact version of everything needed. From the top level of your CTSM checkout, simply do | ||
|
|
||
| .. code:: shell | ||
|
|
||
| ./py_env_create | ||
|
|
||
| and that script will install the ``ctsm_pylib`` environment for you. If ``ctsm_pylib`` already exists, it will give you options on how to handle that. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.