Skip to content

Commit f80e55c

Browse files
Update 5_project_publishing.md
1 parent d97b0c7 commit f80e55c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

episodes/5_project_publishing.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,7 @@ pixi add --pypi build
4242
✔ Added build >=1.3.0, <2
4343
Added these as pypi-dependencies.
4444
```
45-
Empty the depenencies under `[project]` and move/edit them to `[tool.pixi.pypi-dependencies]` section, like shown below:
46-
47-
```toml
48-
[project]
49-
dependencies = []
50-
51-
[tool.pixi.pypi-dependencies]
52-
requests = ">=2.32.5,<3"
53-
build = ">=1.3.0,<2"
54-
```
55-
Then run the `build` command:
45+
Now run the `build` command:
5646

5747
```bash
5848
pixi run python -m build
@@ -91,7 +81,7 @@ This command creates a `dist` directory containing two files:
9181

9282
## Step 3: Upload your build
9383
The **Twine** tool is used to securely upload your package distributions.
94-
Install `twine` and modify the `pyroject.toml` file as you did for `build` tool above.
84+
Install `twine`.
9585

9686
```bash
9787
pixi add --pypi twine
@@ -187,7 +177,8 @@ ERROR HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
187177
```
188178

189179
To fix this,
190-
- Rename your Package Folder, [project].name (e.g. from `greet_me` to `greet_me1`) and also change this section, `[tool.pixi.pypi-dependencies]`
180+
- Rename your Package Folder, [project].name (e.g. from `greet_me` to `greet_me1`)
181+
- Make changes to your package name in the `pyproject.toml` file.
191182

192183
```toml
193184
[project]

0 commit comments

Comments
 (0)