I have been investigating the use of Poetry to publish Python projects. I wanted to test the publishing process using a trivial project similar to the Python Packaging Authority tutorial. Since this is a trivial project, I want to publish it to the test instance of pypi rather than the real instance. Test.pypi requires a token to publish, but I can't figure out how to make Poetry use my test pypi token. All the documentation I can find uses HTTP basic authentication for test-pypi which no longer works.
I added the repository using this command:
poetry config.repositories.test-pypi https://test.pypi.org
I have tried creating tokens using both the following commands:
poetry config pypi-token.test-pypi my-token
poetry config test-pypi-token.test-pypi my-token
I don't find a good explanation of the syntax for adding tokens in the poetry documentation, so any help will be appreciated.