You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# SPEC-0 Versions Action
2
2
3
-
This repository contains a Github Action to update python dependencies conform the SPEC 0 support schedule.
3
+
This repository contains a Github Action to update Python dependencies such that they conform to the SPEC 0 support schedule.
4
4
It also contains released versions of the schedule in various formats that that action can use to open PRs in your repository.
5
5
6
6
## Using the action
7
7
8
-
To use the action you can copy the yaml below, and paste it into `.github/workflows/update-spec-0.yaml`. The arguments bewlow are filled with heir default value, in most cases you won't have to fill them. All except for `token` are optional.
8
+
To use the action you can copy the yaml below, and paste it into `.github/workflows/update-spec-0.yaml`.
9
+
The arguments below are filled with their default value, in most cases you won't have to fill them.
10
+
All except for `token` are optional.
9
11
10
-
Whenever the action is triggered it will open a PR in your repository that will update the dependencies of SPEC 0 to the new lower bound. For this you will have to provide it with a PAT that has write permissions in the `contents` and `pull request` scopes. Please refer to the GitHub documentation for instructions on how to do this [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
12
+
Whenever the action is triggered it will open a PR in your repository that will update the dependencies of SPEC 0 to the new lower bound.
13
+
For this you will have to provide it with a PAT that has write permissions in the `contents` and `pull request` scopes.
14
+
Please refer to the GitHub documentation for instructions on how to do this [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
11
15
12
16
13
17
```yaml
@@ -29,7 +33,7 @@ jobs:
29
33
update:
30
34
runs-on: ubuntu-latest
31
35
steps:
32
-
- uses: scientific-python/spec0-action@v1
36
+
- uses: scientific-python/spec0-action@v1
33
37
with:
34
38
token: ${{ secrets.GH_PAT }}
35
39
project_file_name: "pyproject.toml"
@@ -40,6 +44,8 @@ It should update any of the packages listed in the `dependency`, or `tool.pixi.*
40
44
41
45
## Limitations
42
46
43
-
1. since this action simply parses the toml to do the upgrade and leaves any other bounds in tackt, it is possible that the environment of the PR becomes unsolvable. For example if you have a numpy dependency like so: `numpy = ">=1.25.0,<2"`this will get updated in the PR to `numpy = "2.0.0,<2"` which is infeasable. Keeping the resulting environment solvable is outside the scope of this action, so they might have to be adjusted manually.
44
-
2. Currently on `pyproject.toml` is supported by this action, though other manifest files could be considered upon request.
47
+
1. Since this action simply parses the toml to do the upgrade and leaves any other bounds intact, it is possible that the environment of the PR becomes unsolvable.
48
+
For example if you have a numpy dependency like so: `numpy = ">=1.25.0,<2"`this will get updated in the PR to `numpy = "2.0.0,<2"` which is infeasible.
49
+
Keeping the resulting environment solvable is outside the scope of this action, so you might have to be adjusted manually.
50
+
2. Currently only `pyproject.toml` is supported by this action, though other manifest files could be considered upon request.
0 commit comments