Skip to content

Commit 59ce6d3

Browse files
committed
Merge branch 'b4b-dev' into cime_download_update
Conflicts: .gitmodules cime
2 parents 5629699 + e29e129 commit 59ce6d3

File tree

132 files changed

+6655
-2007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+6655
-2007
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ cdf40d265cc82775607a1bf25f5f527bacc97405
7575
49ad0f7ebe0b07459abc00a5c33c55a646f1e7e0
7676
ac03492012837799b7111607188acff9f739044a
7777
d858665d799690d73b56bcb961684382551193f4
78+
c0c6da391ee359f2765439426f3a2a4593a95343

.gitmodules

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
[submodule "fates"]
2929
path = src/fates
3030
url = https://github.com/NGEET/fates
31-
fxtag = sci.1.88.0_api.42.0.0
31+
fxtag = sci.1.89.0_api.43.0.0
3232
fxrequired = AlwaysRequired
3333
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
3434
fxDONOTUSEurl = https://github.com/NGEET/fates
3535

3636
[submodule "cism"]
3737
path = components/cism
3838
url = https://github.com/ESCOMP/CISM-wrapper
39-
fxtag = cismwrap_2_2_010
39+
fxtag = cismwrap_2_2_011
4040
fxrequired = ToplevelRequired
4141
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
4242
fxDONOTUSEurl = https://github.com/ESCOMP/CISM-wrapper
@@ -60,15 +60,15 @@ fxDONOTUSEurl = https://github.com/ESCOMP/MOSART
6060
[submodule "mizuRoute"]
6161
path = components/mizuroute
6262
url = https://github.com/ESCOMP/mizuRoute
63-
fxtag = cesm-coupling.n03_v2.2.0
63+
fxtag = v3.0.1
6464
fxrequired = ToplevelRequired
6565
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
6666
fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
6767

6868
[submodule "ccs_config"]
6969
path = ccs_config
7070
url = https://github.com/ESMCI/ccs_config_cesm.git
71-
fxtag = ccs_config_cesm1.0.61
71+
fxtag = ccs_config_cesm1.0.66
7272
fxrequired = ToplevelRequired
7373
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
7474
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
@@ -84,15 +84,15 @@ fxDONOTUSEurl = https://github.com/ESMCI/cime
8484
[submodule "cmeps"]
8585
path = components/cmeps
8686
url = https://github.com/ESCOMP/CMEPS.git
87-
fxtag = cmeps1.1.20
87+
fxtag = cmeps1.1.24
8888
fxrequired = ToplevelRequired
8989
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
9090
fxDONOTUSEurl = https://github.com/ESCOMP/CMEPS.git
9191

9292
[submodule "cdeps"]
9393
path = components/cdeps
9494
url = https://github.com/ESCOMP/CDEPS.git
95-
fxtag = cdeps1.0.81
95+
fxtag = cdeps1.0.84
9696
fxrequired = ToplevelRequired
9797
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
9898
fxDONOTUSEurl = https://github.com/ESCOMP/CDEPS.git

.lib/git-fleximod/.github/workflows/pytest.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ jobs:
7373
- run: |
7474
git config --global user.name "${GITHUB_ACTOR}"
7575
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
76-
poetry run pytest
77-
- name: Setup tmate session
78-
if: ${{ failure() }}
79-
uses: mxschmitt/action-tmate@v3
80-
76+
poetry run pytest --doctest-modules
77+
# - name: Setup tmate session
78+
# if: ${{ failure() }}
79+
# uses: mxschmitt/action-tmate@v3

.lib/git-fleximod/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: ^utils/.*$
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v6.0.0
66
hooks:
77
- id: end-of-file-fixer
88
- id: trailing-whitespace

.lib/git-fleximod/CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Examples of behaviors that contribute to a positive environment include:
1717
* Communicate openly with respect for others, critiquing ideas rather than individuals and gracefully accepting criticism
1818
* Acknowledging the contributions of others
1919
* Avoid personal attacks directed toward other participants
20-
* Be mindful of your surroundings and of your fellow participants
20+
* Be mindful of your surroundings and of your fellow participants
2121
* Alert UCAR staff and suppliers/vendors if you notice a dangerous situation or someone in distress
2222
* Respect the rules and policies of the project and venue
2323

@@ -29,7 +29,7 @@ Examples of unacceptable behavior include, but are not limited to:
2929
* Personal attacks directed at other guests, members, participants, etc.
3030
* Publishing others' private information, such as a physical or electronic address, without explicit permission
3131
* Alarming, intimidating, threatening, or hostile comments or conduct
32-
* Inappropriate use of nudity and/or sexual images
32+
* Inappropriate use of nudity and/or sexual images
3333
* Threatening or stalking anyone, including a participant
3434
* Other conduct which could reasonably be considered inappropriate in a professional setting
3535

@@ -60,7 +60,7 @@ the [Attribution](#attribution) section.
6060
## Reporting
6161
Instances of unacceptable behavior can be brought to the attention of the project administrator(s) who may take any action as
6262
outlined in the [Consequences](#consequences) section below.
63-
However, making a report to a project administrator is not considered an 'official report' to UCAR.
63+
However, making a report to a project administrator is not considered an 'official report' to UCAR.
6464

6565
Instances of unacceptable behavior may also be reported directly to UCAR pursuant to [UCAR's Harassment Reporting and Complaint
6666
Procedure](https://www2.fin.ucar.edu/procedures/hr/harassment-reporting-and-complaint-procedure), or anonymously through [UCAR's

.lib/git-fleximod/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Git-fleximod is a Python-based tool that extends Git's submodule and sparse chec
2525

2626
## Supported .gitmodules Variables
2727

28-
fxtag: Specify a specific tag or branch to checkout for a submodule.
28+
fxtag: Specify a specific tag or hash to checkout for a submodule. Branches are not acceptable.
2929
fxrequired: Mark a submodule's checkout behavior, with allowed values:
3030
- ToplevelRequired: Top-level and required (checked out only when this is the Toplevel module).
3131
- ToplevelOptional: Top-level and optional (checked out with --optional flag if this is the Toplevel module).

.lib/git-fleximod/git_fleximod/cli.py

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from pathlib import Path
22
import argparse, os, sys
3-
from git_fleximod import utils
43

5-
__version__ = "1.0.2"
4+
__version__ = "1.1.1"
5+
66

77
class CustomArgumentParser(argparse.ArgumentParser):
88
def print_help(self, file=None):
@@ -17,13 +17,28 @@ def print_help(self, file=None):
1717
for path in candidate_paths:
1818
if os.path.exists(path):
1919
with open(path) as f:
20-
print( f.read(), file=file)
20+
print(f.read(), file=file)
2121
return
22-
print( "README.md not found.", file=file)
22+
print("README.md not found.", file=file)
23+
2324

2425
def find_root_dir(filename=".gitmodules"):
25-
""" finds the highest directory in tree
26-
which contains a file called filename """
26+
"""
27+
Finds the highest directory in tree which contains a file called filename.
28+
29+
>>> import tempfile, os
30+
>>> cwd = os.getcwd()
31+
>>> with tempfile.TemporaryDirectory() as tmp:
32+
... subdir = Path(tmp) / 'subdir'
33+
... subdir.mkdir()
34+
... f = Path(tmp) / '.gitmodules'
35+
... _ = f.write_text('')
36+
... os.chdir(subdir)
37+
... result = find_root_dir('.gitmodules') == str(tmp)
38+
... os.chdir(cwd)
39+
... result
40+
True
41+
"""
2742
d = Path.cwd()
2843
root = Path(d.root)
2944
dirlist = []
@@ -40,6 +55,7 @@ def find_root_dir(filename=".gitmodules"):
4055
return str(dl)
4156
return None
4257

58+
4359
def get_parser():
4460
description = """
4561
%(prog)s manages checking out groups of gitsubmodules with additional support for Earth System Models
@@ -116,6 +132,13 @@ def get_parser():
116132
"verbosity level each time.",
117133
)
118134

135+
parser.add_argument(
136+
"--no-mods-details",
137+
action="store_true",
138+
default=False,
139+
help="Suppress details on local mods in status output.",
140+
)
141+
119142
parser.add_argument(
120143
"-V",
121144
"--version",

0 commit comments

Comments
 (0)