Skip to content

Commit

Permalink
Update release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
jaladh-singhal committed May 24, 2024
1 parent 0305adb commit f869602
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/development/new-release-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,22 @@
- check it: `ls dist` should show two files a `.tar.gz` file and a `.whl` file
5. _Optional_ - At this point you could do an optional test installation ([see below](#optional-test-installation))
6. Upload to PYPI
1. _One-time-only auth setup:_ Login to pypi and then in your account settings, go to the API tokens section and select "Add API token". Give it any name and select scope to project:firefly-client and create token. To save this token for later uses, make sure to create a `$HOME/.pypirc` file (or update it if you already have it) with the following:
```ini
[distutils]
index-servers =
firefly-client #note the values here are newline-separated
[firefly-client]
repository = https://upload.pypi.org/legacy/
username = __token__
password = pypi-token-you-created
```
2. Upload dist to pypi using twine (with the auth setup in previous step)
```bash
pip install --upgrade twine
twine upload dist/*
twine upload dist/* --repository firefly-client
```
7. If any files were edited (i.e `setup.py`)
- `git commit - a`
Expand Down

0 comments on commit f869602

Please sign in to comment.