Skip to content

Commit b48336d

Browse files
committed
write down publishing notes
1 parent 934c177 commit b48336d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

‎publish_notes.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# how to publish to pypi
2+
3+
## start with testing if the project builds and tag the version
4+
5+
```bash
6+
python -m venv venv
7+
source venv/bin/activate
8+
pip install -e .
9+
pytest
10+
git tag v0.3.0
11+
git push origin v0.3.0
12+
```
13+
14+
## build and new package
15+
16+
(according to https://packaging.python.org/en/latest/tutorials/packaging-projects/)
17+
18+
```bash
19+
pip install build twine
20+
python3 -m build
21+
vi ~/.pypirc
22+
twine check dist/*
23+
```
24+
25+
Now, for next time.. test install the package in a new vanilla environment, then..
26+
27+
```bash
28+
twine upload dist/*
29+
```
30+
31+
## repo todos
32+
33+
- rebase development upon main
34+
- bump the pyproject version number to a new `-dev`

0 commit comments

Comments
 (0)