Skip to content

Commit 27a2fb1

Browse files
authored
Merge pull request #2945 from Open-MSS/merge_stable_to_develop
Merge stable to develop
2 parents 35eefc4 + aa33d70 commit 27a2fb1

File tree

9 files changed

+330
-373
lines changed

9 files changed

+330
-373
lines changed

.github/workflows/build_docs_gallery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
Test-MSS-docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
10+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
1111
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
1212
with:
1313
pixi-version: latest

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 10
1919
steps:
20-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
2121
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
2222
with:
2323
pixi-version: latest
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 10
3232
steps:
33-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
33+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
3434
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
3535
with:
3636
pixi-version: latest
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
timeout-minutes: 10
4545
steps:
46-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
46+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
4747
- name: Check for CRLF in the repository
4848
run: |
4949
files_with_crlf="$(git ls-files --eol | awk '$1 ~ "crlf"')"
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: ubuntu-latest
5555
timeout-minutes: 10
5656
steps:
57-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
57+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
5858
- name: Check for whitespace issues in the repository
5959
# The two example.txt files need to be excluded because whitespace at EOL is part
6060
# of their format and they fail to parse otherwise.
@@ -72,7 +72,7 @@ jobs:
7272
ensure-sha-pinned-actions:
7373
runs-on: ubuntu-latest
7474
steps:
75-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
75+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
7676
- name: Ensure SHA pinned actions
7777
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@fc87bb5b5a97953d987372e74478de634726b3e5 # v3
7878
with:

.github/workflows/testing-all-oses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: ["macos-13", "macos-14", "ubuntu-latest"]
21+
os: ["macos-14", "macos-15", "ubuntu-latest"]
2222
steps:
23-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
23+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
2424
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
2525
with:
2626
pixi-version: latest

.github/workflows/update-pixi-lockfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
base_branch: ["develop", "stable"]
1717
steps:
18-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
18+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
1919
with:
2020
ref: ${{ matrix.base_branch }}
2121
- name: Generate new lockfile
@@ -28,7 +28,7 @@ jobs:
2828
set -o pipefail
2929
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
3030
- name: Create or update pull request
31-
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7
31+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
3232
with:
3333
token: ${{ secrets.PAT }}
3434
branch: automation/update-pixi-lockfile/${{ matrix.base_branch }}

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import zipfile
1919
import shutil
2020
import importlib
21+
from pathlib import Path
2122

2223

2324
__version__ = importlib.metadata.version("open-mss")

pixi.lock

Lines changed: 307 additions & 359 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[project]
1+
[workspace]
22
name = "MSS"
33
channels = ["conda-forge"]
44
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
@@ -32,14 +32,15 @@ hdf4 = "*"
3232
isodate = "*"
3333
itsdangerous = "*"
3434
keyring = "*"
35+
libgfortran5 = ">=14"
3536
libtiff = "*"
3637
lxml = "*"
3738
markdown = "*"
3839
matplotlib = ">=3.5.3"
3940
metpy = "*"
4041
multidict = "*"
4142
netcdf4 = "*"
42-
numpy = ">=2"
43+
numpy = ">=2.2.4"
4344
owslib = ">=0.24"
4445
passlib = "*"
4546
pillow = "*"

tests/_test_msui/test_msui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_milestone_url(self):
124124
with urlopen(self.window.milestone_url) as f:
125125
text = f.read().decode("utf-8")
126126
expected_version = __version__
127-
pattern = rf'value="is:closed milestone:{re.escape(expected_version)} "'
127+
pattern = rf'value="is:closed milestone:{re.escape(expected_version)}"'
128128
assert re.search(pattern, text), f"Expected milestone format not found: {expected_version}"
129129

130130

tests/fixtures.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,15 @@ def _running_eventlet_server(app):
201201
process = ctx.Process(target=eventlet.wsgi.server, args=(socket, app), daemon=True)
202202
try:
203203
process.start()
204+
start_time = time.time()
205+
sleep_time = 0.01
204206
while not is_url_response_ok(urllib.parse.urljoin(url, "index")):
205-
time.sleep(0.5)
207+
if (time.time() - start_time) > 5:
208+
raise RuntimeError(f"Server did not start within 5 seconds at {url}")
209+
time.sleep(sleep_time)
210+
sleep_time *= 2
211+
if sleep_time > 1:
212+
sleep_time = 1
206213
yield url
207214
finally:
208215
process.terminate()

0 commit comments

Comments
 (0)