]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: specify non-editable install in tox tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Aug 2022 23:35:41 +0000 (01:35 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 13 Aug 2022 00:12:29 +0000 (02:12 +0200)
Work around tox-dev/tox#2479 (editable installs in tox broken by setuptools
v64) and tox-dev/tox#2480 (failure to use `toxinidir` in `deps`).

Use -e consistently in the linting steps instead, because they are
defined with skip_install=True so it seems a good idea to use it. These
steps don't seem affect by the setuptools issue.

psycopg/tox.ini
psycopg_c/tox.ini
tox.ini

index ec25df6855a3bdc877cf93e10bf9f40d7b565abb..302842d996170418083badef443095f0a243a9a7 100644 (file)
@@ -22,7 +22,7 @@ commands =
 passenv = PG* PSYCOPG_TEST_* PYTEST_ADDOPTS PSYCOPG_IMPL PIP_CONSTRAINT
 extras = test
 deps =
-    -e {toxinidir}/../psycopg_pool
+    ../psycopg_pool
 
 [testenv:dns]
 deps =
index b364c135a41cb7ac78940746eafb4a63aefb26ef..3604f34d6d3cfbd515ca1e395b9bda2721a41190 100644 (file)
@@ -10,8 +10,8 @@ commands =
     python -bb -m pytest --lf --lfnf=none --no-collect-ok --randomly-seed=last {posargs}
 passenv = PG* PSYCOPG_TEST_* PYTEST_ADDOPTS PSYCOPG_IMPL PIP_CONSTRAINT
 deps =
-    -e {toxinidir}/../psycopg[test]
-    -e {toxinidir}/../psycopg_pool
+    ../psycopg[test]
+    ../psycopg_pool
 
 [flake8]
 max-line-length = 88
diff --git a/tox.ini b/tox.ini
index c2187f2f84e4fc52630eb9e02c24657f0860b5aa..78eff5bc5361f974393ba2294f95173661a9bc0f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -24,8 +24,8 @@ deps =
 [testenv:docs]
 commands = sphinx-build -W -T -b html docs docs/_build/html
 deps =
-    ./psycopg[docs]
-    ./psycopg_pool
+    -e ./psycopg[docs]
+    -e ./psycopg_pool
 
 [flake8]
 max-line-length = 88