diff options
author | David Robertson <davidr@element.io> | 2022-07-15 16:18:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 16:18:47 +0100 |
commit | e9ce4d089bbb013f870bbc8d58ec796e8f315eb4 (patch) | |
tree | d4cf82e2784fce24dba420a4cf7b060e83367b14 /docs/development/dependencies.md | |
parent | Don't pull out the full state when storing state (#13274) (diff) | |
download | synapse-e9ce4d089bbb013f870bbc8d58ec796e8f315eb4.tar.xz |
Use and recommend poetry 1.1.14, up from 1.1.12 (#13285)
Diffstat (limited to '')
-rw-r--r-- | docs/development/dependencies.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/development/dependencies.md b/docs/development/dependencies.md index 8ef7d357d8..236856a6b0 100644 --- a/docs/development/dependencies.md +++ b/docs/development/dependencies.md @@ -237,3 +237,28 @@ poetry run pip install build && poetry run python -m build because [`build`](https://github.com/pypa/build) is a standardish tool which doesn't require poetry. (It's what we use in CI too). However, you could try `poetry build` too. + + +# Troubleshooting + +## Check the version of poetry with `poetry --version`. + +At the time of writing, the 1.2 series is beta only. We have seen some examples +where the lockfiles generated by 1.2 prereleasese aren't interpreted correctly +by poetry 1.1.x. For now, use poetry 1.1.14, which includes a critical +[change](https://github.com/python-poetry/poetry/pull/5973) needed to remain +[compatible with PyPI](https://github.com/pypi/warehouse/pull/11775). + +It can also be useful to check the version of `poetry-core` in use. If you've +installed `poetry` with `pipx`, try `pipx runpip poetry list | grep poetry-core`. + +## Clear caches: `poetry cache clear --all pypi`. + +Poetry caches a bunch of information about packages that isn't readily available +from PyPI. (This is what makes poetry seem slow when doing the first +`poetry install`.) Try `poetry cache list` and `poetry cache clear --all +<name of cache>` to see if that fixes things. + +## Try `--verbose` or `--dry-run` arguments. + +Sometimes useful to see what poetry's internal logic is. |