tox
tox copied to clipboard
Using `toxinidir` in `deps` causes problems
Context: in the psycopg project, there are packages psycopg
and psycopg_c
. Testing the latter requires installing the former. The psycopg_c/tox.ini
specifies:
[testenv]
changedir = ..
deps =
{toxinidir}/../psycopg[test]
with this setup, tox fails with
tox.exception.MissingDependency: MissingDependency: /home/piro/dev/psycopg3/tmp/psycopg/psycopg_c/../psycopg[test]
Using just ../psycopg[test]
as deps works as expected (although it's ambiguous as it's not clear whether changedir
takes effect before or after installing the deps
- hence the attempt to disambiguate specifying an absolute path via toxinidir
).
It isn't a problem if the dependency includes a -e
; I suspect it's the extras spec to cause problems.
See #2479 for all the repro and logs details.
What tox version and OS?
- Tox version: 3.25.1
- OS: Linux
I think tox 4 will probably resolve this.
@dvarrazzo Could you please try to reproduce the issue with the latest version of tox v4? (pip install --pre tox
)