Skip to content

Commit

Permalink
Fix poetry install issue on platform.sh.
Browse files Browse the repository at this point in the history
`poetry install` raised: `AttributeError: 'Link' object has no attribute
'is_absolute'` during build on platform.sh.

It appears that it's possible for poetry-core to update even if poetry
is locked. Our issue wasa caused by a regression introduced in 1.0.4.

Updated poetry following the advice in the linked github issue and
updated pip to fix an issue selecting the correct wheel for cryptography
`36.0.0` on platform.sh.

Locked Poetry to `1.1.12` and pip to `21.3.1` for docker and platform.sh

Related issues:

 - [Link object being passed instead of Path to poetry.core.packages.file_dependency.FileDependency in poetry-core 1.0.5](h
 - [fix: Broken cache on Windows #4531](python-poetry/poetry#4531)
  • Loading branch information
danbentley committed Mar 22, 2022
1 parent 63faf44 commit 13ce9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ variables:

dependencies:
python3:
poetry: '1.1.4'
pip: '22.0.4'
poetry: '1.1.12'
pip: '21.3.1'

# The size of the persistent disk of the application (in MB).
disk: 256
Expand Down

0 comments on commit 13ce9e9

Please sign in to comment.