Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yxjiang committed Mar 11, 2024
1 parent 2737430 commit cde2f4d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions DEV_README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Local Development

## Configure Test Pypi
1. Add the Test PyPI Repository to Poetry:
## Configure Test PyPI for Poetry

For publishing packages to Test PyPI using Poetry during development, it is recommended to use an environment variable for the Test PyPI token. This avoids issues with keychain access on macOS and is generally simpler for automation and scripting.

### Setting Up Environment Variable for Test PyPI Token

1. **Export the Test PyPI API Token**:

Export your Test PyPI token as an environment variable in your terminal session before running the publish command.

You only need to do this once per machine. This step tells Poetry where the Test PyPI repository is located.
```bash
poetry config repositories.testpypi https://test.pypi.org/legacy/
export POETRY_TEST_PYPI_API_TOKEN=<your_test_pypi_token>
```

2. Set the Test PyPI API Token:
2. **Run the local publish command**:

Replace <your_test_pypi_token> with your actual Test PyPI token. This token is used for authentication when publishing packages to Test PyPI.
In the project root folder.

```bash
poetry config http-basic.testpypi __token__ <your_test_pypi_token>
./tests/build_test_pypi.sh
```
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This is the placeholder file used by GHA.

0 comments on commit cde2f4d

Please sign in to comment.