Skip to content

require poetry 1.8, recommend installing it via pipx#3758

Merged
ilyagr merged 1 commit into
jj-vcs:mainfrom
ilyagr:poetry18
May 27, 2024
Merged

require poetry 1.8, recommend installing it via pipx#3758
ilyagr merged 1 commit into
jj-vcs:mainfrom
ilyagr:poetry18

Conversation

@ilyagr
Copy link
Copy Markdown
Contributor

@ilyagr ilyagr commented May 26, 2024

I feel like recommending people install Poetry via a package manager was a mistake. Poetry only supports its latest version, and while newer versions are sort-of backward-compatible, they print warnings in different situations and have different bugs. Installing pipx via a package manager, OTOH, works fine, and its older versions work fine.

Using Poetry 1.8+ allows us to use Poetry's new "non-package" mode, which would no longer print warnings if the user does poetry install instead of poetry install --no-root. It's likely that in newer versions of Poetry, it will become an error.


I wanted to share it since it's loosely related to #3757. I think it's ready, but let me know if I forgot something.

@ilyagr ilyagr mentioned this pull request May 26, 2024
4 tasks
@ilyagr ilyagr force-pushed the poetry18 branch 2 times, most recently from fc06f15 to 4effc2e Compare May 26, 2024 04:33
@ilyagr ilyagr marked this pull request as ready for review May 26, 2024 04:40
PhilipMetzger
PhilipMetzger previously approved these changes May 26, 2024
@ilyagr
Copy link
Copy Markdown
Contributor Author

ilyagr commented May 26, 2024

I added a commit to remove the --no-root flag from the CI, and might even squash it into the original commit. I think the CI should be fine for checking that it works; I'll check the output.

@PhilipMetzger PhilipMetzger dismissed their stale review May 27, 2024 15:23

There was a new commit

Comment thread .github/scripts/docs-build-deploy
I feel like recommending people install Poetry via a package manager was
a mistake. Poetry only supports its latest version, and while newer
versions are sort-of backward-compatible, they print warnings in
different situations and have different bugs.  Installing `pipx` via a
package manager, OTOH, works fine, and its older versions work fine.

Using Poetry 1.8+ allows us to use Poetry's new "non-package" mode,
which would no longer print warnings if the user does `poetry install`
instead of `poetry install --no-root`. It's likely that in newer
versions of Poetry, it will become an error.
@ilyagr ilyagr enabled auto-merge (rebase) May 27, 2024 17:45
@ilyagr ilyagr merged commit 92403d7 into jj-vcs:main May 27, 2024
@ilyagr ilyagr deleted the poetry18 branch May 27, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants