]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
decouple pyproject.toml from the test suite
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Aug 2021 22:25:29 +0000 (18:25 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 26 Aug 2021 22:25:29 +0000 (18:25 -0400)
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

index 2d9efd5939798360b10a96f7eb1f731fa0d87fcf..054d27f6118514bde9a32de5d376f88ac0938e69 100644 (file)
@@ -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,
     )