]> 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>
Fri, 12 Aug 2022 23:58:42 +0000 (01:58 +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 a1dc963dd77c293c2922274e7243f6942d60362e..be1c2557c6231069e16b0ec6757050b0c32acf79 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 ca4cfc3ac4eaaba9a158d6613d4d1a6924b489cf..007f10cd18175e33e26d918cd30fa9f8568f2b33 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 3a899ee50878e35690f90e102cfc99df91a26ed4..878be7720fb81258ab38010b8c22b4024560289e 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
 
 [testenv:codespell]
 commands = codespell