-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Docs build.job
recipe for poetry
does not work with newer versions
#9740
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
Comments
I also noticed that the docs were out of date and I tried to update them in #9743 I think I'm facing the same issue: my package doesn't get installed. From what I can tell, the last line EDIT: see pull request for improved version: Old solution (pre-edit)
I managed to make my build work with the following solution:
build:
os: ubuntu-20.04
tools:
python: "3.9"
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions
- curl -sSL https://install.python-poetry.org | python3 -
# Tell poetry to not use a virtual environment
- $HOME/.local/bin/poetry config virtualenvs.create false
pre_install:
# Export project dependencies to requirements.txt
- $HOME/.local/bin/poetry export --with docs > docs/requirements.txt
python:
install:
# Install exported dependencies
- requirements: docs/requirements.txt
# Install the current package itself
- method: pip
path: . |
Just expanding a bit on that. I think this is what happens:
|
Maybe there needs to be an added |
Just to note that #9743 fixes this for my project. |
I'm trying to build a site for a package managed using
poetry
and following the officially documented approach in thebuild.jobs
docs section. That approach now appears to be failing:https://readthedocs.org/projects/virtual-rainforest/builds/18663328/
The TLDR on that build log error is that the old
get-poetry.py
install will not install recent versions (>1.2.0a1
) and that the newhttps://install.python-poetry.org
approach must be used instead. I tried using that approach:but that doesn't seem to be working: https://readthedocs.org/projects/virtual-rainforest/builds/18663177/
I know that is an apparent error in my package, but it doesn't occur with local
sphinx
builds and seems like a problem with the installed environment? I think @humitos tried this approach and also had problems with the resulting build environment :#9445 (comment)
Originally posted by @davidorme in #9445 (comment)
The text was updated successfully, but these errors were encountered: