From: Mike Bayer Date: Thu, 26 Aug 2021 22:25:29 +0000 (-0400) Subject: decouple pyproject.toml from the test suite X-Git-Tag: rel_1_7_0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f0a33b2ff3507b257cbe8c8f5eefbde988f7e30;p=thirdparty%2Fsqlalchemy%2Falembic.git 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 --- 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, )