File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
from piptools .exceptions import IncompatibleRequirements
14
14
from piptools .sync import dependency_tree , diff , merge , sync
15
+ from piptools .utils import PIP_VERSION
15
16
16
17
from .constants import PACKAGES_PATH
17
18
@@ -168,13 +169,20 @@ def test_diff_should_not_uninstall(fake_dist):
168
169
"pip-tools==1.1.1" ,
169
170
"pip-review==1.1.1" ,
170
171
"pkg-resources==0.0.0" ,
171
- "setuptools==34.0.0" ,
172
- "wheel==0.29.0" ,
173
172
"python==3.0" ,
174
- "distribute==0.1" ,
175
173
"wsgiref==0.1" ,
176
174
"argparse==0.1" ,
177
175
)
176
+ if PIP_VERSION [:3 ] < (23 , 2 ) or sys .version_info < (3 , 12 ):
177
+ # github.com/jazzband/pip-tools/pull/2148#issuecomment-2545479219
178
+ # Python 3.12 removed vendored `setuptools` and pip 23.2 reacted
179
+ # with stopping special-casing excluding the following projects:
180
+ ignored += (
181
+ "setuptools==34.0.0" ,
182
+ "wheel==0.29.0" ,
183
+ "distribute==0.1" ,
184
+ )
185
+
178
186
installed = [fake_dist (pkg ) for pkg in ignored ]
179
187
reqs = []
180
188
You can’t perform that action at this time.
0 commit comments