You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been noticing what seems like an uptick in issues on pypa/packaging-problems/issues, particularly related to python3 -m build. That prompted me to work through the tutorial from scratch, doing my best to keep a beginner's perspective. The outcome is a bunch of thoughts on how it could be clearer, which can be viewed as annotations to the live site (via the Hyptohesis web annotation tool).
Thanks for the notes! Most of them seem reasonable (although, I don't think people would want to register in another service since everybody here can leave comments in PRs on GH already). I suggest you send a PR because this is where we can collaborate and add inline comments attached to the contexts of specific lines in code. I think you should start with the least controversial changes and send PRs with small batches of changes, this makes it easier for me to merge things while others wait for review. This is important because this repository is collectively maintained by a bunch of people each having tight time restrictions. I can merge unambiguous things while others would be blocked by slower reviewers.
How much detail is necessary for the intended audience?
I think that tutorials shouldn't be too low-level. They need to show one way, without any branching, not to confuse new users. We probably need to keep the complex details in the follow-up guides and specific project docs.
When/how should we explain "editable installs"?
I'm pretty sure it's a bit out of the scope of packaging. We could link the appropriate guides, though. Maybe add intersphinx links to the setuptools docs.
Should this whole thing be done in a virtual environment?
It should IRL. But mixing up explaining venvs into packaging is probably too confusing. Also, there's an attempt to address the "don't install into system locations as root" best practice by using --user.
FYI, some of the extra issues have been related to a few bugs in build, several of which are being fixed in the version about to be rolled out. I think the issues will slow down a little after that.
So far the changes look great. :)
I'm wondering if we could update to using pipx in the future? Using pipx run build, pipx run twine, etc. would help with the lack of virtual environments, and would remove some of the "set the next part up by installing this" steps.
I'm wondering if we could update to using pipx in the future? Using pipx run build, pipx run twine, etc. would help with the lack of virtual environments, and would remove some of the "set the next part up by installing this" steps.
While I love pipx, I'm wary of introducing an additional tool, especially one that's not a PyPA project. I'd rather encourage the use of a virtual environment, which folks should already be familiar with from the Installing Packages tutorial.
Reacted by Pradyun Gedam and 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
I'd rather not recommend pipx because we'd have to explain how to provision it on different OSs which belongs in other places. Also, I don't think we favor pipx over virtualenv.
Activity
webknjaz commentedon Mar 25, 2021
Thanks for the notes! Most of them seem reasonable (although, I don't think people would want to register in another service since everybody here can leave comments in PRs on GH already). I suggest you send a PR because this is where we can collaborate and add inline comments attached to the contexts of specific lines in code. I think you should start with the least controversial changes and send PRs with small batches of changes, this makes it easier for me to merge things while others wait for review. This is important because this repository is collectively maintained by a bunch of people each having tight time restrictions. I can merge unambiguous things while others would be blocked by slower reviewers.
I think that tutorials shouldn't be too low-level. They need to show one way, without any branching, not to confuse new users. We probably need to keep the complex details in the follow-up guides and specific project docs.
I'm pretty sure it's a bit out of the scope of packaging. We could link the appropriate guides, though. Maybe add intersphinx links to the setuptools docs.
It should IRL. But mixing up explaining venvs into packaging is probably too confusing. Also, there's an attempt to address the "don't install into system locations as root" best practice by using
--user.cc @pradyunsg WDYT?
di commentedon Apr 3, 2021
+1 to this.
@bhrutledge I'm certain your feedback is valuable, please feel free to go ahead and create a PR so we can review directly.
bhrutledge commentedon May 17, 2021
First batch submitted. I'll wait until those are merged before working on further changes.
henryiii commentedon May 21, 2021
FYI, some of the extra issues have been related to a few bugs in build, several of which are being fixed in the version about to be rolled out. I think the issues will slow down a little after that.
So far the changes look great. :)
I'm wondering if we could update to using pipx in the future? Using
pipx run build,pipx run twine, etc. would help with the lack of virtual environments, and would remove some of the "set the next part up by installing this" steps.bhrutledge commentedon May 21, 2021
While I love pipx, I'm wary of introducing an additional tool, especially one that's not a PyPA project. I'd rather encourage the use of a virtual environment, which folks should already be familiar with from the Installing Packages tutorial.
bhrutledge commentedon May 21, 2021
Thanks! My next step is to simplify/clarify the language around
setup.pyand editable installs.pradyunsg commentedon May 21, 2021
That'll change in a few days: https://mail.python.org/archives/list/pypa-committers@python.org/thread/JMT66ZZHAGY3OYU26ANKOOUXV2Q2C7O6/
pradyunsg commentedon May 21, 2021
I do think it's still worthwhile to keep recommending virtual environments for now though. pipx can probably be a separate recommendation.
webknjaz commentedon May 22, 2021
I'd rather not recommend pipx because we'd have to explain how to provision it on different OSs which belongs in other places. Also, I don't think we favor pipx over virtualenv.