From 1f0a33b2ff3507b257cbe8c8f5eefbde988f7e30 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 26 Aug 2021 18:25:29 -0400 Subject: [PATCH] decouple pyproject.toml from the test suite tools/write_pyi.py is run as part of the test suite, which has to run from a source distribution, which does not have pyproject.toml right now due to issues reported w/ pip. these pip issues are probably resolved now however we have not gone back to including pyproject.toml at the moment. so we therefore have to hardcode the single "-l79" black config option in write_pyi.py. Change-Id: I877f69eb2322f6cbb39ed4c6d4a9adf598703223 --- tools/write_pyi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/write_pyi.py b/tools/write_pyi.py index 2d9efd59..054d27f6 100644 --- a/tools/write_pyi.py +++ b/tools/write_pyi.py @@ -77,10 +77,12 @@ def generate_pyi_for_proxy( {"entrypoint": "zimports", "options": "-e"}, ignore_output=ignore_output, ) - pyproject = Path(__file__).parent.parent / "pyproject.toml" + # note that we do not distribute pyproject.toml with the distribution + # right now due to user complaints, so we can't refer to it here because + # this all has to run as part of the test suite console_scripts( str(destination_path), - {"entrypoint": "black", "options": f"--config {pyproject}"}, + {"entrypoint": "black", "options": "-l79"}, ignore_output=ignore_output, ) -- 2.47.2