Closed Wurstnase closed 5 months ago
What build backend are you using?
Can't replicate this ☹️
Please check this: https://github.com/Wurstnase/minimal-tox-uv-41
pdm
and hatchling
as backend have this issue while setuptools
and flit
are working.
https://github.com/Wurstnase/minimal-tox-uv-41/actions/runs/8318218933
Thanks for that, now I see; it works on the second run, so for now, setting https://tox.wiki/en/4.14.1/config.html#fresh_subprocess works around the problem. I do not understand why this is happening 🤔
Maybe it has something todo with https://github.com/pypa/hatch/issues/1335? When I change this
[build-system]
-requires = ["hatchling"]
+requires = ["hatchling", "editables"]
build-backend = "hatchling.build"
it works.
No, it's not that. Interesting, how this happens only on macos and not elsewhere...
Seems not to help. 😔 Wurstnase/minimal-tox-uv-41@948f671
It's a package flag, not an environment one so you want:
[testenv:.pkg]
fresh_subprocess = true
This likely is an uv bug for editables...
Reported upstream via https://github.com/astral-sh/uv/issues/2530
Seems not to help. 😔 Wurstnase/minimal-tox-uv-41@948f671
It's a package flag, not an environment one so you want:
[testenv:.pkg] fresh_subprocess = true
Thank you very much. That does it for now.
Upstream fixed it.
Yes. I can confirm it. Thanks for the very fast fix.
Issue
Set
package = editable
will break first run.Environment
Provide at least:
Output of
```console Package Version Editable project location ------------- ------- ------------------------------------- cachetools 5.3.3 chardet 5.2.0 colorama 0.4.6 distlib 0.3.8 filelock 3.13.1 minimal 0.1.0 /Users/pip list
of the host Python, wheretox
is installedOutput of running tox
Output of
```console py312: 155 W remove tox env folder /Users/tox -rvv
Minimal example