@@ -18,3 +18,42 @@ type = [
18
18
{ name = " Improved Documentation" , directory = " doc" , showcontent = true },
19
19
{ name = " Trivial Changes" , directory = " trivial" , showcontent = false },
20
20
]
21
+
22
+ [tool .vendoring ]
23
+ destination = " src/pip/_vendor/"
24
+ requirements = " src/pip/_vendor/vendor.txt"
25
+ namespace = " pip._vendor"
26
+
27
+ protected-files = [" __init__.py" , " README.rst" , " vendor.txt" ]
28
+ patches-dir = " tools/automation/vendoring/patches"
29
+
30
+ [tool .vendoring .transformations ]
31
+ substitute = [
32
+ # pkg_resource's vendored packages are directly vendored in pip.
33
+ { match =' pkg_resources\.extern' , replace =" pip._vendor" },
34
+ { match =' from \.extern' , replace =" from pip._vendor" },
35
+ ]
36
+ drop = [
37
+ # contains unnecessary scripts
38
+ " bin/" ,
39
+ # interpreter and OS specific msgpack libs
40
+ " msgpack/*.so" ,
41
+ # unneeded parts of setuptools
42
+ " easy_install.py" ,
43
+ " setuptools" ,
44
+ " pkg_resources/_vendor/" ,
45
+ " pkg_resources/extern/" ,
46
+ ]
47
+
48
+ [tool .vendoring .typing-stubs ]
49
+ six = [" six.__init__" , " six.moves.__init__" , " six.moves.configparser" ]
50
+ appdirs = []
51
+ contextlib2 = []
52
+
53
+ [tool .vendoring .license .directories ]
54
+ setuptools = " pkg_resources"
55
+ msgpack-python = " msgpack"
56
+
57
+ [tool .vendoring .license .fallback-urls ]
58
+ pytoml = " https://github.com/avakar/pytoml/raw/master/LICENSE"
59
+ webencodings = " https://github.com/SimonSapin/python-webencodings/raw/master/LICENSE"
0 commit comments