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: episodes/project_publishing.md
+115-4Lines changed: 115 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ exercises: 15
23
23
24
24
## Introduction
25
25
Once we have created our project, defined all the necessary metadata in the toml file, its time to publish our project. Let see the tools and steps we need to acheive this.
26
-
We need to install the following tools
26
+
We need to install the following tools i.e. `build` and `twine`
27
27
1.`build` : A tool to read the ['pyproject']toml file and build the package files
28
28
```bash
29
29
pip install build
@@ -63,16 +63,127 @@ We need to install the following tools
3. `twine`: A tool for securely uploading packages to PyPI and TestPyPI.
66
+
2. Create an account on TestPyPI
67
+
Visit this [URL](https://test.pypi.org/account/register/) and crete an account to generate the API keys, to be able to upload your package to TestPyPI in the next step.
68
+
69
+
4. `twine`: A tool for securely uploading packages to PyPI and TestPyPI.
67
70
```bash
68
71
pip install build twine
69
72
70
73
twine upload --repository testpypi dist/*
71
74
```
72
75
You'll be prompted to enter your TestPyPI username and password. It's recommended to use an API token instead of your password. When prompted for your password, paste the token in.
73
-
74
-
That's it! After the upload is successful, your package will be available on TestPyPI.
75
76
77
+
```output
78
+
Uploading distributions to https://test.pypi.org/legacy/
79
+
INFO dist/po_greet_me-0.1.1-py3-none-any.whl (0.8 KB)
0 commit comments