File tree Expand file tree Collapse file tree 4 files changed +8
-28
lines changed
Expand file tree Collapse file tree 4 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 22! requirements.txt
33! wsimod
44! pyproject.toml
5- ! LICENSE
5+ ! LICENSE
6+ ! .git
7+ ! README.md
Original file line number Diff line number Diff line change 2424 with :
2525 files : dist/wsimod*
2626
27- publish-TestPyPI :
28- needs : build-wheel
29- name : Publish WSIMOD to TestPyPI
30- runs-on : ubuntu-latest
31- permissions :
32- id-token : write
33-
34- steps :
35- - name : Download sdist artifact
36- uses : actions/download-artifact@v4
37- with :
38- name : artifact
39- path : dist
40-
41- - name : Display structure of downloaded files
42- run : ls -R dist
43-
44- - name : Publish package distributions to TestPyPI
45- uses : pypa/gh-action-pypi-publish@release/v1
46- with :
47- repository-url : https://test.pypi.org/legacy/
48- skip-existing : true
49-
5027 publish-PyPI :
51- needs : publish-TestPyPI
5228 name : Publish WSIMOD to PyPI
5329 runs-on : ubuntu-latest
5430 permissions :
Original file line number Diff line number Diff line change 11FROM python:3.11.5-alpine
22
3+ RUN apk update && apk add git
4+
35COPY --chown=nobody . /usr/src/app
46WORKDIR /usr/src/app
57RUN pip install --no-cache-dir .
68USER nobody
79
8- ENV WSIMOD_SETTINGS settings.yaml
10+ ENV WSIMOD_SETTINGS= settings.yaml
911
1012CMD wsimod /data/inputs/${WSIMOD_SETTINGS} --inputs /data/inputs --outputs /data/outputs
Original file line number Diff line number Diff line change 3434 >>> return {}
3535
3636If patching a method of an attribute, the `is_attr` argument should be set to `True` and
37- the target should include the attribute name and the method name, all separated by
37+ the target should include the attribute name and the method name, all separated by
3838periods, eg. `attribute_name.method_name`.
3939
4040It should be noted that the patched function should have the same signature as the
4343should be the node object itself, which will typically be named `self`.
4444
4545The overridden method or attribute can be accessed within the patched function using the
46- `_patched_{method_name}` attribute of the object, eg. `self._patched_pull_distributed`.
46+ `_patched_{method_name}` attribute of the object, eg. `self._patched_pull_distributed`.
4747The exception to this is when patching an item, in which case the original item is no
4848available to be used within the overriding function.
4949
You can’t perform that action at this time.
0 commit comments