Skip to content

Commit

Permalink
Add 2FA test PyPI instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Nov 29, 2023
1 parent 0d785d0 commit 67095d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,11 @@ This means that publishing is done through GitHub Actions when a [new release is

Before publishing a new release, make sure to update the changelog in `CHANGELOG.md` and the version number in `laces/__init__.py`.

To manually test a release, you can use `flit`.
To manually test publishing the package, you can use `flit`.
Be sure to configure the `testpypi` repository in your `~/.pypirc` file according to the Flit [documentation](https://flit.pypa.io/en/stable/upload.html#controlling-package-uploads).
If your PyPI account is using 2FA, you'll need to create a [PyPI API token](https://test.pypi.org/help/#apitoken) and use that as your password and `__token__` as the username.

When you're ready to test the relase, run:
When you're ready to test the publishing, run:

```shell
$ flit build
Expand Down

0 comments on commit 67095d6

Please sign in to comment.