Skip to content

Commit ec54928

Browse files
authored
Merge pull request #4628 from firedrakeproject/connorjward/merge-release
2 parents aa8cdb0 + 8cfae5e commit ec54928

File tree

7 files changed

+43
-20
lines changed

7 files changed

+43
-20
lines changed

.github/workflows/core.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: Whether to run the test suite
1616
type: boolean
1717
default: true
18+
build_docs:
19+
description: Whether to build the documentation
20+
type: boolean
21+
default: true
1822
test_macos:
1923
description: Whether to test using macOS
2024
type: boolean
@@ -42,6 +46,10 @@ on:
4246
description: Whether to run the test suite
4347
type: boolean
4448
default: true
49+
build_docs:
50+
description: Whether to build the documentation
51+
type: boolean
52+
default: true
4553
test_macos:
4654
description: Whether to test using macOS
4755
type: boolean
@@ -195,7 +203,7 @@ jobs:
195203
196204
: # Install from an sdist so we can make sure that it is not ill-formed
197205
pip install build
198-
python -m build ./firedrake-repo --sdist "$EXTRA_BUILD_ARGS"
206+
python -m build ./firedrake-repo --sdist $EXTRA_BUILD_ARGS
199207
200208
pip install --verbose $EXTRA_PIP_FLAGS \
201209
--no-binary h5py \
@@ -476,6 +484,7 @@ jobs:
476484
run: make lint GITHUB_ACTIONS_FORMATTING=1
477485

478486
build_docs:
487+
if: inputs.build_docs
479488
name: Build documentation
480489
runs-on: [self-hosted, Linux]
481490
container:

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
source_ref: ${{ inputs.branch }}
4848
target_branch: release
4949
run_tests: false
50+
build_docs: false
5051
upload_pypi: true
5152
secrets: inherit
5253

@@ -57,10 +58,11 @@ jobs:
5758
permissions:
5859
contents: write
5960
steps:
61+
- uses: actions/checkout@v5
6062
- name: Create release
6163
env:
6264
GH_TOKEN: ${{ github.token }}
63-
run: gh release create ${{ inputs.version }} --title ${{ inputs.version }} --generate-notes
65+
run: gh release create --title ${{ inputs.version }} --target ${{ inputs.branch }} --generate-notes ${{ inputs.version }}
6466

6567
docker:
6668
name: Build Docker containers

demos/full_waveform_inversion/full_waveform_inversion.py.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ for 3 wave sources. Therefore, we will have 3 emsemble members, each with 2 rank
8383
processes launched by mpiexec must therefore be equal to the product of number of ensemble members
8484
(3, in this case) with the number of processes to be used for each ensemble member (``M=2``, in this case).
8585
Additional details about the ensemble parallelism can be found in the
86-
`Firedrake documentation <https://www.firedrakeproject.org/parallelism.html#ensemble-parallelism>`_.
86+
`Firedrake documentation <https://www.firedrakeproject.org/ensemble_parallelism.html>`_.
8787

8888
The subcommunicators in each ensemble member are: ``Ensemble.comm`` and ``Ensemble.ensemble_comm``.
8989
``Ensemble.comm`` is the spatial communicator. ``Ensemble.ensemble_comm`` allows communication between

docs/source/install.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,19 @@ firedrake-configure
6060
-------------------
6161

6262
To simplify the installation process, Firedrake provides a utility script called
63-
``firedrake-configure``. This script can be downloaded by executing::
63+
``firedrake-configure``. This script can be downloaded by executing:
6464

65-
$ curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/main/scripts/firedrake-configure
65+
.. only:: release
66+
67+
.. code-block:: text
68+
69+
$ curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/release/scripts/firedrake-configure
70+
71+
.. only:: main
72+
73+
.. code-block:: text
74+
75+
$ curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/main/scripts/firedrake-configure
6676
6777
Note that ``firedrake-configure`` **does not install Firedrake for you**. It
6878
is simply a helper script that emits the configuration options that Firedrake

firedrake/adjoint/ensemble_reduced_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class EnsembleReducedFunctional(AbstractReducedFunctional):
8585
The functionals :math:`J_i` and the control must be defined over a common
8686
`ensemble.comm` communicator. To understand more about how ensemble parallelism
8787
works, please refer to the `Firedrake manual
88-
<https://www.firedrakeproject.org/parallelism.html#ensemble-parallelism>`_.
88+
<https://www.firedrakeproject.org/ensemble_parallelism.html>`_.
8989
"""
9090
def __init__(self, functional, control, ensemble, scatter_control=True,
9191
gather_functional=None,

pyproject.toml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,23 @@ dependencies = [
2020
"decorator<=4.4.2",
2121
"mpi4py>3; python_version >= '3.13'",
2222
"mpi4py; python_version < '3.13'",
23-
# TODO RELEASE: use releases
23+
# TODO RELEASE
2424
"fenics-ufl @ git+https://github.com/FEniCS/ufl.git@main",
25-
"firedrake-fiat @ git+https://github.com/firedrakeproject/fiat.git",
25+
# TODO RELEASE
26+
"firedrake-fiat @ git+https://github.com/firedrakeproject/fiat.git@main",
2627
"h5py>3.12.1",
28+
"immutabledict",
2729
"libsupermesh",
2830
"loopy>2024.1",
2931
"numpy",
3032
"packaging",
3133
# TODO RELEASE
32-
# "petsc4py==3.23.4",
33-
# TODO RELEASE
34-
# "petsctools",
34+
# "petsc4py==3.24.0",
35+
"petsctools",
3536
"pkgconfig",
3637
"progress",
37-
# TODO RELEASE: use a release
38-
"pyadjoint-ad @ git+https://github.com/dolfin-adjoint/pyadjoint",
38+
# TODO RELEASE
39+
"pyadjoint-ad @ git+https://github.com/dolfin-adjoint/pyadjoint@master",
3940
"pycparser",
4041
"pytools[siphash]",
4142
"requests",
@@ -92,11 +93,11 @@ jax = [
9293
]
9394
netgen = [
9495
# TODO RELEASE
95-
# "ngsPETSc",
96+
# "ngsPETSc>=0.1.1",
9697
]
9798
slepc = [
9899
# TODO RELEASE
99-
# "slepc4py==3.23.2",
100+
# "slepc4py==3.24.0",
100101
]
101102
torch = [ # requires passing '--extra-index-url' to work
102103
"torch",
@@ -110,7 +111,8 @@ ci = [
110111
"mpi-pytest>=2025.7",
111112
"nbval",
112113
"networkx",
113-
"ngsPETSc",
114+
# TODO RELEASE
115+
# "ngsPETSc>=0.1.1",
114116
"pdf2image",
115117
"pygraphviz",
116118
"pylit",
@@ -119,7 +121,7 @@ ci = [
119121
"pytest-timeout",
120122
"pytest-xdist",
121123
# TODO RELEASE
122-
# "slepc4py==3.23.2",
124+
# "slepc4py==3.24.0",
123125
"torch", # requires passing '--extra-index-url' to work
124126
]
125127
docker = [ # Used in firedrake-vanilla container
@@ -136,7 +138,7 @@ docker = [ # Used in firedrake-vanilla container
136138
"pytest-timeout",
137139
"pytest-xdist",
138140
# TODO RELEASE
139-
# "slepc4py==3.23.2",
141+
# "slepc4py==3.24.0",
140142
]
141143

142144
[build-system]
@@ -151,7 +153,7 @@ requires = [
151153
"pybind11",
152154
"setuptools>=77.0.3",
153155
# TODO RELEASE
154-
# "petsc4py==3.23.4",
156+
# "petsc4py==3.24.0",
155157
"rtree>=1.2",
156158
]
157159
build-backend = "setuptools.build_meta"

requirements-build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mpi4py>3; python_version >= '3.13'
55
mpi4py; python_version < '3.13'
66
numpy
77
pkgconfig
8-
petsctools @ git+https://github.com/firedrakeproject/petsctools.git
8+
petsctools
99
pybind11
1010
setuptools>=77.0.3
1111
rtree>=1.2

0 commit comments

Comments
 (0)