Docs updates and improvements
Description
Here are some documentation updates and improvements, mainly concerning beets installation and setting up a working copy for development.
f22b595 improves CONTRIBUTING.rst
poetry shellnow requires the corresponding poetry plugin to be installed- The link to the pull request "great tutorial" currently points to a conference, I retrieved the original tutorial URL via archive.org and restored it. help needed: the tutorial was last updated 5 years ago, I'm not sure if it's still up-to-date with the current state of github; maybe we should point to the github help pages instead? e.g. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
- The suggested vim editor settings were a bit outdated, the current python ftplugin shipped with vim already implements them; plus I added a couple of other plugins which might be of interest
- pre-commit: it was just mentioned shortly in the "How to Submit Your Work" section; I moved it to the "Development Tools" section, alongside poetry and poe, and added short instructions to install and setup pre-commit
57f26fe replaces pip with pipx in the documentation files
pip has long been deprecated to install end-user applications (such as beets) in favour of pipx (see PEP 668). I replaced all the occurrences where we suggest using pip to install beets, and updated the corresponding command line examples using the correct pipx options.
In some occasions, I've kept pip examples because they are still relevant (e.g. when showing how to install extras, in case a previous installation was done using pip, see below), and added the corresponding pipx examples.
help needed: BTW installation via pip is also still suggested in the beets homepage, I think we should replace it with pipx there too.
I've also made a few related improvements to some files:
README.rst: just mention the 3 main ways to install (distro packages, pipx, github) and point toguides/main.rstandfaq.rstfor detailed instructions (avoiding duplication)guides/main.rst: help needed: I don't know about installation on windows, macosx and ARM; is it OK to replace pip->pipx there too? I guess so (pipx is available for windows and macosx too), but I'd like to have confirmation; please let me know and I'll update the PRplugins/index.rst: help needed: I've also added information about how to install extras into an already existing beets installation (which I think is the most common use case: the user typically installs "plain" beets, then learns about plugins later, and then has to install extras to enable plugins). I've covered three scenarios, depending on how beets was installed (via pip, pipx, or linux distribution packages), please give some feedback about that.
To Do
- [ ] Please give feedback about the items marked above as help needed
- [X] Documentation.
- [ ] Changelog. (oops, I'll add it in a future commit)
- [x] ~Tests~
Reviewer's guide (collapsed on small PRs)
Reviewer's Guide
Refines contributing guidelines and modernizes installation documentation by migrating from pip to pipx, streamlining README and guides, and enhancing plugin installation instructions for extras.
File-Level Changes
| Change | Details | Files |
|---|---|---|
| Improve CONTRIBUTING.rst with updated guidance |
|
CONTRIBUTING.rst |
| Overhaul main installation docs to use pipx and streamline options |
|
README.rstdocs/guides/main.rstdocs/faq.rstdocs/reference/config.rst |
| Migrate plugin documentation examples from pip to pipx |
|
docs/plugins/absubmit.rstdocs/plugins/aura.rstdocs/plugins/autobpm.rstdocs/plugins/beatport.rstdocs/plugins/bpd.rstdocs/plugins/chroma.rstdocs/plugins/discogs.rstdocs/plugins/embedart.rstdocs/plugins/embyupdate.rstdocs/plugins/fetchart.rstdocs/plugins/kodiupdate.rstdocs/plugins/lastgenre.rstdocs/plugins/lastimport.rstdocs/plugins/lyrics.rstdocs/plugins/metasync.rstdocs/plugins/mpdstats.rstdocs/plugins/plexupdate.rstdocs/plugins/replaygain.rstdocs/plugins/scrub.rstdocs/plugins/sonosupdate.rstdocs/plugins/thumbnails.rstdocs/plugins/web.rst |
| Add extras installation scenarios in plugin index |
|
docs/plugins/index.rst |
Tips and commands
Interacting with Sourcery
- Trigger a new review: Comment
@sourcery-ai reviewon the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
- Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with
@sourcery-ai issueto create an issue from it. - Generate a pull request title: Write
@sourcery-aianywhere in the pull request title to generate a title at any time. You can also comment@sourcery-ai titleon the pull request to (re-)generate the title at any time. - Generate a pull request summary: Write
@sourcery-ai summaryanywhere in the pull request body to generate a PR summary at any time exactly where you want it. You can also comment@sourcery-ai summaryon the pull request to (re-)generate the summary at any time. - Generate reviewer's guide: Comment
@sourcery-ai guideon the pull request to (re-)generate the reviewer's guide at any time. - Resolve all Sourcery comments: Comment
@sourcery-ai resolveon the pull request to resolve all Sourcery comments. Useful if you've already addressed all the comments and don't want to see them anymore. - Dismiss all Sourcery reviews: Comment
@sourcery-ai dismisson the pull request to dismiss all existing Sourcery reviews. Especially useful if you want to start fresh with a new review - don't forget to comment@sourcery-ai reviewto trigger a new review!
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others.
- Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
@Vrihub If you want to give this another look, I would be happy to assist you. We just merged #5807 which should make this easier now :crossed_fingers:
@Vrihub If you want to give this another look, I would be happy to assist you. We just merged #5807 which should make this easier now 🤞
Sure. I was not aware of your PR when I opened this one (it was mainly motivated by re-reading the contribution guide after some time of not contributing to the project), so I preferred waiting for yours to be merged, before proceeding here.
I'll review, rebase and come up with other proposals and questions later this week.