-
I'm trying to switch a poetry-based library to PDM, but having a hard time getting PDM to install dependencies into the virtualenv that readthedocs creates and uses automatically. Note that I don't want to just do: python:
install:
- method: pip
path: . because a) I want to install dependencies from the lockfile, and b) I want to install specific groups of dev dependencies ( A few things that might be causing problems:
Is there a recommended way to do this with PDM right now? (When there is, might be a good thing to put in the docs too.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
This is just a display issue, verify the python path by |
Beta Was this translation helpful? Give feedback.
-
This seems to be working for PDM 2.1.3: version: 2
sphinx:
configuration: docs/conf.py
build:
os: ubuntu-20.04
tools:
python: "3.8"
jobs:
post_install:
- pip install --upgrade pdm
- VIRTUAL_ENV=$(dirname $(dirname $(which python))) pdm install -dG docs The |
Beta Was this translation helpful? Give feedback.
This seems to be working for PDM 2.1.3:
The
VIRTUAL_ENV=$(dirname $(dirname $(which python)))
is a bit of hack to force this code path.