You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if i try to run my tests with tox it crashes when installing package dependencies because it executes pip with that direct value
py312: install_package_deps> python -I -m pip install 'sub-package @ {root:uri}/sub-package' '
ERROR: Invalid requirement: 'sub-package@ {root:uri}/vendor/sub-package-0.1.0-py3-none-any.whl'
Hint: It looks like a path. File 'sub-package@ {root:uri}/vendor/sub-package-0.1.0-py3-none-any.whl' does not exist.
In the wheel tox builds (the one inside the .pkg env) the METADATA file contains a Requires-Dist line with the correct absolute path of the package like
# In .tox/.pkg/dist/mypackag-0.1.0-py3-none-any.whl/mypackage-0.1.0.dist-info/METADATA
Requires-Dist: sub-package @ file:https:///home/project/vendor/sub-package
I always thought that tox uses the package dependencies of the built wheel and not taking the dependency list directly from the pyproject.toml file.
In the documentation i can only find that the install_command uses a {packages} variable but where is that variable set?
The text was updated successfully, but these errors were encountered:
Hello,
im currently managing my python project with pdm and use it to add dependencies with
pdm add
.I can add a local package
./vendor/local.whl
withpdm add ./vendor/local.whl
as described at https://pdm-project.org/en/stable/usage/dependency/#local-dependencies.As i use hatchling as a build backend a dependency entry like
sub-package @ {root:uri}/sub-package
will be added to the pyproject.toml using its mechanism of https://hatch.pypa.io/1.9/config/context/#pathsBut if i try to run my tests with tox it crashes when installing package dependencies because it executes pip with that direct value
In the wheel tox builds (the one inside the .pkg env) the METADATA file contains a Requires-Dist line with the correct absolute path of the package like
I always thought that tox uses the package dependencies of the built wheel and not taking the dependency list directly from the pyproject.toml file.
In the documentation i can only find that the install_command uses a {packages} variable but where is that variable set?
The text was updated successfully, but these errors were encountered: