Skip to content

Commit 9a5b4bd

Browse files
authored
Merge pull request Open-MSS#2926 from Open-MSS/merge_stable_to_develop
Merge stable to develop
2 parents 1e9a185 + e24598d commit 9a5b4bd

File tree

10 files changed

+44
-31
lines changed

10 files changed

+44
-31
lines changed

.github/workflows/build_docs_gallery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
Test-MSS-docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
11-
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
10+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
11+
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
1212
with:
1313
pixi-version: latest
1414
cache: true

.github/workflows/lint.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 10
1919
steps:
20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
21-
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
20+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
21+
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
2222
with:
2323
pixi-version: latest
2424
cache: true
@@ -30,8 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 10
3232
steps:
33-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
34-
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
33+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
34+
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
3535
with:
3636
pixi-version: latest
3737
cache: true
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
timeout-minutes: 10
4545
steps:
46-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
46+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
57+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
75+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
matrix:
2121
os: ["macos-13", "macos-14", "ubuntu-latest"]
2222
steps:
23-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
24-
- uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
23+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
24+
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
2525
with:
2626
pixi-version: latest
2727
cache: true
@@ -31,7 +31,7 @@ jobs:
3131
run: pixi run -e dev env QT_QPA_PLATFORM=offscreen pytest -v -n logical --durations=20 --cov=mslib tests
3232
- run: pixi run -e dev coverage xml
3333
- name: Send coverage to Coveralls (parallel)
34-
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
34+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
3535
with:
3636
debug: true
3737
parallel: true
@@ -44,6 +44,6 @@ jobs:
4444
if: ${{ always() }}
4545
steps:
4646
- name: Close parallel build
47-
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
47+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
4848
with:
4949
parallel-finished: true

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
matrix:
1616
base_branch: ["develop", "stable"]
1717
steps:
18-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
18+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
1919
with:
2020
ref: ${{ matrix.base_branch }}
2121
- name: Generate new lockfile
22-
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293 # v0.9.0
22+
uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
2323
with:
2424
pixi-version: latest
2525
run-install: false
@@ -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@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
31+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7
3232
with:
3333
token: ${{ secrets.PAT }}
3434
branch: automation/update-pixi-lockfile/${{ matrix.base_branch }}

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
Version 10.2.0
5+
~~~~~~~~~~~~~~
6+
7+
Bug fix release and minor enhancements:
8+
We've modernized our project build process by switching from `setup.py` to `pyproject.toml`. This eliminates dependencies on the `past` and `future` packages.
9+
When you launch msui from the command line, the location of the log file will be displayed.
10+
11+
All changes:
12+
https://github.com/Open-MSS/MSS/milestone/113?closed=1
13+
414

515
Version 10.1.0
616
~~~~~~~~~~~~~~

docs/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
import requests
1818
import zipfile
1919
import shutil
20-
from pathlib import Path
21-
import toml
20+
import importlib
21+
22+
23+
__version__ = importlib.metadata.version("open-mss")
2224

2325

2426
def get_tutorial_images():
@@ -78,7 +80,6 @@ def get_tutorial_images():
7880

7981
import mslib.mswms.wms
8082
import mslib.mswms.gallery_builder
81-
import importlib
8283

8384
# Generate template plots
8485
from docs.gallery.plot_examples import HS_template, VS_template
@@ -95,8 +96,6 @@ def get_tutorial_images():
9596
mslib.mswms.wms.server.generate_gallery(sphinx=True, generate_code=True, all_plots=True, levels="3,4,200,300",
9697
vtimes="2012-10-18T00:00:00,2012-10-19T00:00:00")
9798

98-
with open("../pyproject.toml") as f:
99-
__version__ = toml.load(f)["project"]["version"]
10099

101100
on_rtd = os.environ.get('READTHEDOCS') == 'True'
102101

docs/environment.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: rtd
22
channels:
33
- conda-forge
44
dependencies:
5+
- python
6+
- setuptools <81
57
- pip
68
- pip:
79
- flask
@@ -12,15 +14,17 @@ dependencies:
1214
- scipy
1315
- metpy
1416
- markdown
15-
- xstatic
17+
- xstatic>=1.0.3
18+
- xstatic-jquery
19+
- xstatic-bootstrap
1620
- defusedxml
1721
- sphinx_rtd_theme
1822
- sphinxcontrib-video>=0.2.1
1923
- sphinx
2024
- netCDF4
2125
- PyQt5
2226
- owslib
23-
- future
27+
- ../
28+
2429
- basemap >=1.3.3
2530
- pint
26-
- python <3.12

pixi.lock

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

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ unicodecsv = "*"
6464
validate_email = "*"
6565
websocket-client = "*"
6666
werkzeug = ">=2.2.3, <3.0.0"
67-
xstatic = "*"
67+
xstatic = "<2.0.0"
6868
xstatic-bootstrap = "*"
6969
xstatic-jquery = "*"
7070
humanfriendly = ">=10.0,<11"

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "open-mss"
3-
version = "10.1.0"
3+
version = "10.2.0"
44
description = "MSS - Mission Support System"
55
readme = "README.md"
66
classifiers = [
@@ -30,11 +30,11 @@ mswms = "mslib.mswms.mswms:main"
3030
msui = "mslib.msui.msui:main"
3131

3232
[build-system]
33-
requires = ["setuptools >= 40.8.0"]
33+
requires = ["setuptools >= 61.0"]
3434
build-backend = "setuptools.build_meta"
3535

36-
[tool.setuptools]
37-
packages = ["mslib"]
36+
[tool.setuptools.packages.find]
37+
include = ["mslib*"]
3838

3939
[tool.codespell]
4040
exclude-file = "codespell-ignored-lines.txt"

0 commit comments

Comments
 (0)