ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pip-tools / fix-setup-py-bad-syntax-detection.patch
blob6a88222139e1b9d19eb53ee9aec0eca33f6c0048
1 diff --color -ru a/piptools/scripts/compile.py b/piptools/scripts/compile.py
2 --- a/piptools/scripts/compile.py 2022-06-30 11:24:26.000000000 +0200
3 +++ b/piptools/scripts/compile.py 2022-08-01 13:40:58.392515765 +0200
4 @@ -6,7 +6,7 @@
5 from typing import IO, Any, BinaryIO, List, Optional, Tuple, Union, cast
7 import click
8 -from build import BuildBackendException
9 +from build import BuildException
10 from build.util import project_wheel_metadata
11 from click.utils import LazyFile, safecall
12 from pip._internal.commands import create_command
13 @@ -421,7 +421,7 @@
14 metadata = project_wheel_metadata(
15 os.path.dirname(os.path.abspath(src_file))
17 - except BuildBackendException as e:
18 + except (BuildException,StopIteration) as e:
19 log.error(str(e))
20 log.error(f"Failed to parse {os.path.abspath(src_file)}")
21 sys.exit(2)