Skip to content

Commit

Permalink
Updated twine upload instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc committed May 24, 2023
1 parent 23d11c8 commit 99a5c54
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ $ python setup.py test # run tests. Make sure they pass.
$ python setup.py docs # create API docs (for main project page)
$ python setup.py sdist bdist_wheel
$ twine check dist/*
$ twine upload --repository-url https://test.pypi.org/legacy dist/*
```

At this point, go to <https://test.pypi.org/> and ensure that the package
is there. If all looks good:
If all looks good, then:

```
$ twine upload dist/*
$ twine -r pypi upload dist/*
```

Note: This assumes the existence of something like the following in
`~/.pypirc`:

```
[pypi]
[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = <pypi API token goes here>
```

0 comments on commit 99a5c54

Please sign in to comment.