Skip to content

Using PDM in readthedocs builds #1365

Answered by gjoseph92
gjoseph92 asked this question in Q&A
Discussion options

You must be logged in to vote

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 VIRTUAL_ENV=$(dirname $(dirname $(which python))) is a bit of hack to force this code path.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@gjoseph92
Comment options

Comment options

You must be logged in to vote
7 replies
@frostming
Comment options

@frostming
Comment options

@gjoseph92
Comment options

@gjoseph92
Comment options

@frostming
Comment options

Answer selected by gjoseph92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants