Skip to content

Commit 590fdfe

Browse files
authored
Merge pull request #4756 from pybamm-team/release/v25.1
Release 25.1.0
2 parents f73e056 + b45fe04 commit 590fdfe

File tree

245 files changed

+4682
-9561
lines changed

Some content is hidden

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

245 files changed

+4682
-9561
lines changed

.all-contributorsrc

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2+
"skipCi": false,
23
"files": [
3-
"all_contributors.md",
4-
"README.md"
4+
"all_contributors.md"
55
],
66
"imageSize": 100,
77
"commit": false,
@@ -517,10 +517,10 @@
517517
]
518518
},
519519
{
520-
"login": "abillscmu",
520+
"login": "aabills",
521521
"name": "Alec Bills",
522522
"avatar_url": "https://avatars.githubusercontent.com/u/48105066?v=4",
523-
"profile": "https://github.com/abillscmu",
523+
"profile": "https://github.com/aabills",
524524
"contributions": [
525525
"code"
526526
]
@@ -991,14 +991,50 @@
991991
"contributions": [
992992
"test"
993993
]
994+
},
995+
{
996+
"login": "isaacbasil",
997+
"name": "isaacbasil",
998+
"avatar_url": "https://avatars.githubusercontent.com/u/123981577?v=4",
999+
"profile": "https://github.com/isaacbasil",
1000+
"contributions": [
1001+
"doc"
1002+
]
1003+
},
1004+
{
1005+
"login": "AndEsterson",
1006+
"name": "Andrew Esterson",
1007+
"avatar_url": "https://avatars.githubusercontent.com/u/55912083?v=4",
1008+
"profile": "https://github.com/AndEsterson",
1009+
"contributions": [
1010+
"infra"
1011+
]
1012+
},
1013+
{
1014+
"login": "ahamed24",
1015+
"name": "ahamed24",
1016+
"avatar_url": "https://avatars.githubusercontent.com/u/153092659?v=4",
1017+
"profile": "https://github.com/ahamed24",
1018+
"contributions": [
1019+
"infra"
1020+
]
1021+
},
1022+
{
1023+
"login": "RohitP2005",
1024+
"name": "RohitP2005",
1025+
"avatar_url": "https://avatars.githubusercontent.com/u/122815777?v=4",
1026+
"profile": "https://github.com/RohitP2005",
1027+
"contributions": [
1028+
"doc",
1029+
"infra"
1030+
]
9941031
}
9951032
],
9961033
"contributorsPerLine": 7,
9971034
"projectName": "PyBaMM",
9981035
"projectOwner": "pybamm-team",
9991036
"repoType": "github",
10001037
"repoHost": "https://github.com",
1001-
"skipCi": true,
10021038
"commitConvention": "angular",
10031039
"commitType": "docs"
10041040
}

.github/PULL_REQUEST_TEMPLATE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Please add a line in the relevant section of [CHANGELOG.md](https://github.com/p
1515
# Key checklist:
1616

1717
- [ ] No style issues: `$ pre-commit run` (or `$ nox -s pre-commit`) (see [CONTRIBUTING.md](https://github.com/pybamm-team/PyBaMM/blob/develop/CONTRIBUTING.md#installing-and-using-pre-commit) for how to set this up to run automatically when committing locally, in just two lines of code)
18-
- [ ] All tests pass: `$ python run-tests.py --all` (or `$ nox -s tests`)
19-
- [ ] The documentation builds: `$ python run-tests.py --doctest` (or `$ nox -s doctests`)
18+
- [ ] All tests pass: `$ python -m pytest` (or `$ nox -s tests`)
19+
- [ ] The documentation builds: `$ python -m pytest --doctest-plus src` (or `$ nox -s doctests`)
2020

21-
You can run integration tests, unit tests, and doctests together at once, using `$ python run-tests.py --quick` (or `$ nox -s quick`).
21+
You can run integration tests, unit tests, and doctests together at once, using `$ nox -s quick`.
2222

2323
## Further checks:
2424

.github/release_workflow.md

-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ GitHub, PyPI, and conda-forge by the maintainers.
1313
- `docs/conf.py`
1414
- `CITATION.cff`
1515
- `pyproject.toml`
16-
- `vcpkg.json`
1716
- `CHANGELOG.md`
1817

1918
These changes will be automatically pushed to a new branch `vYY.MM`
@@ -42,7 +41,6 @@ If a new release is required after the release of `vYY.MM.{x-1}` -
4241
- `docs/conf.py`
4342
- `CITATION.cff`
4443
- `pyproject.toml`
45-
- `vcpkg.json`
4644
- `CHANGELOG.md`
4745

4846
Commit the changes to your release branch.
@@ -57,11 +55,6 @@ If a new release is required after the release of `vYY.MM.{x-1}` -
5755

5856
Some other essential things to check throughout the release process -
5957

60-
- If updating our custom vcpkg registry entries
61-
[sundials-vcpkg-registry][SUNDIALS_VCPKG]
62-
or [casadi-vcpkg-registry][CASADI_VCPKG] (used to build Windows
63-
wheels), make sure to update the baseline of the registries in
64-
vcpkg-configuration.json to the latest commit id.
6558
- Update jax and jaxlib to the latest version in `pybamm.util` and
6659
`pyproject.toml`, fixing any bugs that arise.
6760
- If changes are made to the API, console scripts, entry points, new optional
@@ -79,7 +72,5 @@ Some other essential things to check throughout the release process -
7972
PR **must** bump the build number in `meta.yaml` and **must** be from a
8073
personal fork of the repository.
8174

82-
[SUNDIALS_VCPKG]: https://github.com/pybamm-team/sundials-vcpkg-registry
83-
[CASADI_VCPKG]: https://github.com/pybamm-team/casadi-vcpkg-registry
8475
[PYBAMM_FEED]: https://github.com/conda-forge/pybamm-feedstock
8576
[FEED_GUIDE]: https://conda-forge.org/docs/maintainer/updating_pkgs.html#updating-the-feedstock-repository

.github/wheel_failure.md

-6
This file was deleted.

.github/workflows/benchmark_on_push.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
benchmarks:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
- name: Set up Python 3.12
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
2121
with:
2222
python-version: 3.12
2323

@@ -31,12 +31,8 @@ jobs:
3131

3232
- name: Install python dependencies
3333
run: |
34-
python -m uv pip install --upgrade pip wheel setuptools wget cmake casadi numpy
3534
python -m uv pip install asv[virtualenv]
3635
37-
- name: Install SuiteSparse and SUNDIALS
38-
run: python scripts/install_KLU_Sundials.py
39-
4036
- name: Fetch base branch
4137
run: |
4238
# This workflow also runs for merge commits
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Discussion Autoresponder
2+
3+
on:
4+
discussion:
5+
types: [created]
6+
7+
jobs:
8+
autorespond:
9+
name: Autorespond to New Discussions
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Run Discussion Autoresponder
14+
uses: wesleyscholl/[email protected]
15+
with:
16+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
17+
comment_body: "Hi! We have now moved our discussions to [Discourse](https://pybamm.discourse.group/). Please post your question there."
18+
delay_milliseconds: 0

.github/workflows/docker.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Set up QEMU
21-
uses: docker/setup-qemu-action@v3
21+
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
2222

2323
- name: Set up Docker Buildx
24-
uses: docker/setup-buildx-action@v3
24+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
2525

2626
- name: Login to Docker Hub
27-
uses: docker/login-action@v3
27+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
2828
with:
2929
username: ${{ secrets.DOCKERHUB_USERNAME }}
3030
password: ${{ secrets.DOCKERHUB_TOKEN }}
3131

3232
- name: Build and push Docker image to Docker Hub
33-
uses: docker/build-push-action@v6
33+
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
3434
with:
3535
context: .
3636
file: scripts/Dockerfile

.github/workflows/lychee_url_checker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ jobs:
1717

1818
# cache Lychee results to avoid hitting rate limits
1919
- name: Restore lychee cache
20-
uses: actions/cache@v4
20+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
2121
with:
2222
path: .lycheecache
2323
key: cache-lychee-${{ github.sha }}
2424
restore-keys: cache-lychee-
2525

2626
# check URLs with Lychee
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

2929
# use stable version for now to avoid breaking changes
3030
- name: Lychee URL checker
31-
uses: lycheeverse/lychee-action@v2.1.0
31+
uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374 # v2.2.0
3232
with:
3333
# arguments with file types to check
3434
args: >-

.github/workflows/need_reply_remove.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github.event_name != 'pull_request'
1818
steps:
1919
- name: Remove needs-reply label
20-
uses: octokit/request-action@v2.x
20+
uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
2121
continue-on-error: true
2222
with:
2323
route: DELETE /repos/:repository/issues/:issue/labels/:label

.github/workflows/needs_reply.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: github.repository_owner == 'pybamm-team'
1111
steps:
1212
- name: Close old issues that need reply
13-
uses: dwieeb/needs-reply@v2
13+
uses: dwieeb/needs-reply@71e8d5144caa0d4a1e292348bfafa3866d08c855 # v2.0.0
1414
with:
1515
repo-token: ${{ secrets.GITHUB_TOKEN }}
1616
issue-label: needs-reply

.github/workflows/periodic_benchmarks.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
benchmarks:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626

2727
- name: Set up Python 3.12
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
2929
with:
3030
python-version: 3.12
3131

@@ -39,22 +39,15 @@ jobs:
3939

4040
- name: Install python dependencies
4141
run: |
42-
python -m uv pip install --upgrade pip wheel setuptools wget cmake casadi numpy
4342
python -m uv pip install asv[virtualenv]
4443
45-
- name: Install SuiteSparse and SUNDIALS
46-
run: python scripts/install_KLU_Sundials.py
47-
4844
- name: Run benchmarks
4945
run: |
5046
asv machine --machine "GitHubRunner"
5147
asv run --machine "GitHubRunner" NEW --show-stderr -v
52-
env:
53-
SUNDIALS_INST: $HOME/.local
54-
LD_LIBRARY_PATH: $HOME/.local/lib
5548
5649
- name: Upload results as artifact
57-
uses: actions/upload-artifact@v4.4.3
50+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5851
with:
5952
name: asv_periodic_results
6053
path: results
@@ -67,21 +60,21 @@ jobs:
6760
runs-on: ubuntu-latest
6861
steps:
6962
- name: Set up Python 3.12
70-
uses: actions/setup-python@v5
63+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
7164
with:
7265
python-version: 3.12
7366

7467
- name: Install asv
7568
run: pip install asv
7669

7770
- name: Checkout pybamm-bench repo
78-
uses: actions/checkout@v4
71+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7972
with:
8073
repository: pybamm-team/pybamm-bench
8174
token: ${{ secrets.BENCH_PAT }}
8275

8376
- name: Download results artifact(s)
84-
uses: actions/download-artifact@v4
77+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8578
with:
8679
path: results
8780
merge-multiple: true

0 commit comments

Comments
 (0)