| 1 | ### Publishing new Versions |
| 2 | |
| 3 | Prereqs: |
| 4 | - Create a ~/.pypirc |
| 5 | ```toml |
| 6 | [testpypi] |
| 7 | username = __token__ |
| 8 | password = ... |
| 9 | ``` |
| 10 | (Note that `__token__` is NOT a placeholder) |
| 11 | |
| 12 | - Install `twine` |
| 13 | ```bash |
| 14 | python3 -m pip install --upgrade twine |
| 15 | ``` |
| 16 | |
| 17 | 1. Bump the version in `setup.cfg` |
| 18 | 2. `python3 -m build` |
| 19 | 3. `twine upload dist/*` |
| 20 | |
| 21 | ### Test the package |
| 22 | |
| 23 | Run `python3 -m pytest`. |