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
@@ -205,11 +205,22 @@ If you have a package that you are confident belongs on PyPI, all of the steps b
205
205
206
206
Example: `pyosPackage_yourNameHere`.
207
207
208
-
:::{todo}
209
-
Show them how to do this
208
+
:::{dropdown} Renaming your project before publishing
209
+
:color: secondary
210
+
211
+
#### Required
212
+
213
+
1. Search your publishing location(s) to make sure your new name isn't taken ([TestPyPI](https://test.pypi.org/), [PyPI](https://pypi.org/), [conda-forge](https://conda-forge.org/packages/))
214
+
2. Update the project name in your pyproject.toml file (e.g. `name = "pyospackage_yourNameHere"`)
215
+
3. Update the module folder name to be the same (e.g. `src/pyospackage_yourNameHere`)
216
+
4. Rebuild your project (`hatch build`)
217
+
5. Publish your package to capture the name (continue this tutorial!)
218
+
219
+
#### Recommended
210
220
211
-
1. update the project-name in the pyproject.toml file
212
-
2. update the module repository directory to be the same
221
+
- Update the Github repository name to align with the new package name
222
+
- Update your local project folder to match the new package name (e.g. `pyospackage_yourNameHere/src`)
223
+
- Update mentions of your repository name in other files (e.g. `README.md`)
Copy file name to clipboardExpand all lines: tutorials/pyproject-toml.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ The pyproject.toml file tells your build tool:
78
78
79
79
- What build backend to use to build your package (we are using `hatchling` in this tutorial but there are [many others to choose from](/package-structure-code/python-package-build-tools)).
80
80
- How and where to retrieve your package's version:
81
-
-**statically** where you declare the version `version = "0.1"` or
81
+
-**statically** where you declare the version `version = "0.1.0"` or
82
82
-**dynamically** where the tool looks to the most recent tag in your history to determine the current version.
83
83
- What dependencies your package needs
84
84
- What versions of Python your package supports (important for your users).
0 commit comments