Repository navigation
Clarify the packaging tutorial's importable-package scope - #2147
harshitethic wants to merge 1 commit into
Conversation
|
I feel that more little bits of this doc could be improved. I also wonder why the tutorial does not start with a single module before moving on to a package example. I could see people coming from other languages with namespaces (like npm or even github tight coupling like go) being unsure about what is happening here and confused between project directory and import package name! |
rgommers
left a comment
There was a problem hiding this comment.
Thanks @harshitethic.The first paragraph added looks fine, and addresses #614. The rest is duplicate, so can be removed. A single note with the cross-link is all that is needed here.
I feel that more little bits of this doc could be improved.
I agree, but that can be done separately I think. There are lots of pages that need a partial or full rewrite. Once we get rid of the large backlog of PRs (halfway there ....), then I think that's the thing to focus on.
| def add_one(number): | ||
| return number + 1 | ||
|
|
||
| Because this tutorial leaves :file:`__init__.py` empty, ``add_one`` belongs |
There was a problem hiding this comment.
This whole block seems unnecessary, please remove.
Addresses #614.
Summary
__init__.pydoes not automatically re-exportadd_oneValidation
main📚 Documentation preview 📚: https://python-packaging-user-guide--2147.org.readthedocs.build/en/2147/