Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work when pdm is installed with pyprojectx #54

Open
DetachHead opened this issue Mar 4, 2024 · 1 comment
Open

doesn't work when pdm is installed with pyprojectx #54

DetachHead opened this issue Mar 4, 2024 · 1 comment

Comments

@DetachHead
Copy link

> tox -e old     
old: recreate env because env type changed from {'name': 'old', 'type': 'VirtualEnvRunner'} to {'name': 'old', 'type': 'PdmRunner'}
old: remove tox env folder C:\project\.tox\old
old: install_deps> python -I -m pip install pytest==8.0 robotframework==6.1.1
old: install_deps> pdm sync --no-self --group test
old: exit 2 (0.05 seconds) C:\project> pdm sync --no-self --group test
  old: FAIL code 2 (9.58 seconds)
  evaluation failed :( (9.84 seconds)

this is because it's running the command pdm sync --no-self --group test, but when pdm is installed with pyprojectx (see the "inside project" installation method) the command needs to be prefixed with ./pw:

./pw pdm sync --no-self --group test

related: pyprojectx/pyprojectx#23

@houbie
Copy link

houbie commented Mar 4, 2024

Did you try to also install tox with pyprojectx (in the same tool context as pdm)?
When running tox with ./pw tox, pdm should also be on the PATH.
Alternatively, use pyprojectx 2.1.0 and either add .pyprojectx/main to your PATH or activate the tool context with source .pyprojectx/main/activate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants