You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An account needs to be created for Pypi and Test Pypi (separately). Account requires name, email, and password so need to determine who from CFPB will control that account.
To generate API tokens, you have to set 2FA. This means using Google Authenticator or some other app (I used GA)
API tokens can be generated per package or for the entire account. I found generating tokens on a per package basis less problematic and apparently is the preferred approach.
Poetry needs to be updated to be able to pull from testpypi using poetry config repositories.testpypi https://test.pypi.org/legacy/
Publishing does not allow overwriting existing published packages, so either you have to remove the existing, or always increment the version number
I have not been able to get the setting of the api token using poetry config to work, so I pass the --username __token__ --password <token> to the publish command. If these can be stored in env var secrets and used in the command during the pipeline, that would be ideal.
Steps to build and publish are simply:
a. poetry build
b. poetry publish --repository testpypi --username __token__ --password <token>
Look into process to place the regtech-api-commons package into TestPypi https://test.pypi.org/project/regtech-api-commons/
The text was updated successfully, but these errors were encountered: