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
Copy file name to clipboardExpand all lines: pages/source/new-software.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,16 +67,15 @@ Once the repository has been created from the template, a small amount of initia
67
67
68
68
2. **Rename the Python package**
69
69
70
-
The directory under `src/` defines the import name of your Python package. This name will be used when importing the package in code and when the project is installed.
70
+
The directory under `example_package/` defines the import name of your Python package. This name will be used when importing the package in code and when the project is installed.
71
71
72
-
- Locate the package directory under `src/`
72
+
- Locate the package directory under `example_package/`
73
73
- Rename it to match your chosen package name
74
74
- Ensure the name is a valid Python identifier (lowercase, underscores allowed)
75
75
76
76
Example:
77
77
78
-
src/
79
-
your_package_name/
78
+
example_package/
80
79
81
80
3. **Update project metadata**
82
81
@@ -155,7 +154,7 @@ This template follows a standard Python project layout designed to support devel
155
154
The repository is organized as follows:
156
155
157
156
docs/
158
-
src/example_package_YOUR_USERNAME_HERE/
157
+
example_package/
159
158
tests/
160
159
pyproject.toml
161
160
README.md
@@ -166,7 +165,7 @@ The repository is organized as follows:
166
165
.gitignore
167
166
168
167
- `docs/` - Sphinx documentation source
169
-
- `src/` - Python source code
168
+
- `example_package/` - Python source code
170
169
- `tests/` - Unit and integration tests
171
170
- `pyproject.toml` - Project metadata and dependencies
172
171
- `README.md` / `LICENSE` - Standard project documentation
@@ -179,22 +178,22 @@ The repository is organized as follows:
179
178
180
179
---
181
180
182
-
##### Source Code (`src/`)
181
+
##### Source Code (`example_package/`)
183
182
184
-
All Python code lives under `src/`, using the **package name** you specify:
183
+
All Python code lives under `example_package/`, using the **package name** you specify:
185
184
186
-
src/example_package_YOUR_USERNAME_HERE/
185
+
example_package/
187
186
__init__.py
188
187
example.py
189
188
190
189
- `__init__.py` - Makes the directory a Python package
191
190
- `example.py` - Minimal placeholder functionincludedfor coverage and testing
192
191
193
-
>**Tip:** Rename the `example_package_YOUR_USERNAME_HERE` folder to match your project’s package name. Make sure it’s a valid Python identifier (lowercase letters, underscores allowed).
192
+
>**Tip:** Rename the `example_project` folder to match your project’s package name. Make sure it’s a valid Python identifier (lowercase letters, underscores allowed).
0 commit comments