Skip to content
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

docs: migrate from Poetry to uv #4822

Merged
merged 2 commits into from
Nov 20, 2024
Merged

docs: migrate from Poetry to uv #4822

merged 2 commits into from
Nov 20, 2024

Conversation

neongreen
Copy link
Contributor

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

uv is a fast Python project manager written in Rust. It can automatically install Python, or use a global version if it satisfies the projects requirements.

After the switch, contributors don't need to install Python to build the docs. The single command uv run mkdocs serve will work.

I also removed the Poetry-specific keyring workarounds. if someone uses the keyring to build the docs, I'd like them to try out this PR and report any issues.

@neongreen neongreen requested a review from ilyagr November 10, 2024 17:40
@neongreen
Copy link
Contributor Author

https://github.com/martinvonz/jj/actions/runs/11767171574/job/32775551752

A flaky test?

@ilyagr
Copy link
Contributor

ilyagr commented Nov 11, 2024

Thank you very much for working on this! As I mentioned in #4815 (comment) , I think this is the way to go.

I'm not sure when I'll try this out and look at the details, but hopefully it won't take too long. Also, I'm curious if others decide to try it out in the meantime and see how well it works for them.

Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs: migrate from poetry to uv

Could you include a rationale in the commit message so the reader doesn't have to find the context somewhere else? (I haven't followed the discussion enough to know what the rationale is.)

@neongreen
Copy link
Contributor Author

Could you include a rationale in the commit message

Done

@ilyagr ilyagr self-assigned this Nov 15, 2024
.gitignore Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
.github/workflows/build.yml Show resolved Hide resolved
docs/contributing.md Show resolved Hide resolved
docs/contributing.md Show resolved Hide resolved
docs/contributing.md Show resolved Hide resolved
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.
This should cause GitHub to have a "Contributing" tab on
https://github.com/martinvonz/jj, which will make these instrictions a
lot easier to find.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.

I find that I often automatically scan for a `CONTRIBUTING.md` file in
the repo and get annoyed when it's hard to find. This should be helped
by the previus commit, but this will hopefully go further in putting
everyone on a road leading to Rome as quickly as possible.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 15, 2024
It just links to our actual docs and repeats the passage from README.

I find that I often automatically scan for a `CONTRIBUTING.md` file in
the repo and get annoyed when it's hard to find. This should be helped
by the previus commit, but this will hopefully go further in putting
everyone on a road leading to Rome as quickly as possible.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
ilyagr added a commit that referenced this pull request Nov 16, 2024
It just links to our actual docs and repeats the passage from README.

I find that I often automatically scan for a `CONTRIBUTING.md` file in
the repo and get annoyed when it's hard to find. This should be helped
by the previus commit, but this will hopefully go further in putting
everyone on a road leading to Rome as quickly as possible.

This will also hopefully mean that more people read the instructions on
our website rather than GitHub, which will be a somewhat nicer
experience after #4822.
docs/contributing.md Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
ilyagr added a commit that referenced this pull request Nov 16, 2024
People will often look for contributing instructions from
https://github.com/martinvonz/jj, this makes it easier
to find.

It will also lead more people to read the contributing
docs on the website as opposed to GitHub. This is becoming
desireable, see the discussion at
#4822 (comment)
docs/contributing.md Outdated Show resolved Hide resolved
@neongreen neongreen force-pushed the emily/uv branch 3 times, most recently from 523d85e to fce057d Compare November 16, 2024 14:56
@neongreen neongreen requested a review from ilyagr November 16, 2024 14:58
pyproject.toml Outdated Show resolved Hide resolved
Our docs are built with MkDocs, which requires Python and several deps.

Previously those deps were managed with Poetry, which is also written in Python.
This commit replaces Poetry with `uv`, a Rust-based Python
project/package manager, and thus removes several steps from the docs
build process.

Before:

  <install Python>
  <install pipx>
  pipx install poetry
  poetry install
  poetry run -- mkdocs serve

After:

  <install uv>
  uv run mkdocs serve
@neongreen
Copy link
Contributor Author

@ilyagr I addressed everything, please check again

@PhilipMetzger
Copy link
Contributor

LG, I like the restructuring.

@martinvonz
Copy link
Member

Do you need any more help from my GitHub admin role?

@neongreen
Copy link
Contributor Author

neongreen commented Nov 19, 2024 via email

Copy link
Contributor

@ilyagr ilyagr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you very much!

@neongreen neongreen merged commit c0a9e20 into main Nov 20, 2024
31 checks passed
@neongreen neongreen deleted the emily/uv branch November 20, 2024 05:06
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.

5 participants