tox icon indicating copy to clipboard operation
tox copied to clipboard

Using `toxinidir` in `deps` causes problems

Open dvarrazzo opened this issue 2 years ago • 4 comments

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.

dvarrazzo avatar Aug 12 '22 23:08 dvarrazzo

What tox version and OS?

gaborbernat avatar Aug 13 '22 01:08 gaborbernat

  • Tox version: 3.25.1
  • OS: Linux

dvarrazzo avatar Aug 13 '22 02:08 dvarrazzo

I think tox 4 will probably resolve this.

gaborbernat avatar Aug 13 '22 02:08 gaborbernat

@dvarrazzo Could you please try to reproduce the issue with the latest version of tox v4? (pip install --pre tox)

jugmac00 avatar Dec 06 '22 21:12 jugmac00