Skip to content

Commit a68c57b

Browse files
committed
Add a small clarification about hyphens vs. underscores in tutorial
Motivated by the confusion in #1316. Links to the longer page that explains the rules in detail, which was written in response to that end user confusion (see #1426).
1 parent d7a83d1 commit a68c57b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎source/tutorials/packaging-projects.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ Create the following file structure locally:
5151
├── __init__.py
5252
└── example.py
5353
54-
The directory containing the Python files should match the project name. This
55-
simplifies the configuration and is more obvious to users who install the package.
54+
The directory containing the Python files should match the project name, with
55+
any hyphens replaced by underscores. This simplifies the configuration and is
56+
more obvious to users who install the package. See
57+
:doc:`/discussions/distribution-package-vs-import-package` for an explanation
58+
of the different naming rules.
5659

5760
Creating the file :file:`__init__.py` is recommended because the existence of an
5861
:file:`__init__.py` file allows users to import the directory as a regular package,

0 commit comments

Comments
 (0)