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: graalpython/lib-graalpython/patches/README.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,12 @@
1
-
This directory contains patches applied by pip when installing packages. There is a directory for each package that
2
-
contains patches and optionally a configuration file that can specify rules for matching patches to package versions and
3
-
can also influence pip version selection mechanism.
4
-
5
-
Configuration files are named `metadata.toml` and can contain the following:
1
+
This directory contains patches applied by pip when installing packages. There is a `metadata.toml` configuration file that specifies rules for patching and
2
+
can also influence pip version selection mechanism. It can contain the following:
6
3
7
4
```toml
8
-
# The file defines an array of tables (dicts) named `patches`. The patch selection process iterates it and picks the
9
-
# first patch one that matches in version and dist type.
5
+
# The file defines a dict whose keys are package names. The sub-key 'rules' specifies a list of patching rules.
6
+
#The patch selection process iterates it and picks the first patch one that matches in version and dist type.
10
7
# The next entry will apply to a wheel foo-1.0.0
11
-
[[rules]]
12
-
# Optional. Relative path to a patch file. May be omitted when the entry just specifies `install-priority`
8
+
[[foo.rules]]
9
+
# Optional. Relative path to a patch file. May be omitted
13
10
patch = 'foo-1.0.0.patch'
14
11
# Required if 'patch' is specified. SPDX license expression for the package (allows parentheses, 'AND', 'OR', 'WITH').
15
12
# Allowed licenses are enumerated in mx.graalpython/verify_patches.py
@@ -33,8 +30,8 @@ subdir = 'src'
33
30
# priority to 0, the version will not be shown in the suggestion list we display when we didn't find an applicable patch
34
31
install-priority = 1
35
32
36
-
# The next entry will apply to all other artifacts of foo
37
-
[[patches]]
33
+
# The next entry will apply to all other versions of foo that didn't get matched by the previous rule
0 commit comments