-
Notifications
You must be signed in to change notification settings - Fork 129
Updating PyPI credentials on Azure
The NEURON project's location on Azure is: https://dev.azure.com/neuronsimulator/nrn/. We currently use Azure in two scenarios:
- building wheels on x86_64 for MacOS and Linux as part of CI (activated on PRs)
- building and uploading wheels on -||- as part of a schedule
The latter is achieved using twine, through this CI file.
Twine uses a username and a password to upload the wheels to PyPI. Occasionally, one needs to update the PyPI credentials, which is what this page explains.
For security reasons, for uploading to PyPI one must generate an access token. To do this, go to this link (should also be reachable by clicking on your username on PyPI and going to "Account settings"), then scroll to the "API tokens" section, which should look like this:
Click on "Add API token", and fill in the information as below (you can change the token name):
Afterwards, click on "Copy token" below:
Then go to Azure, and go to project settings of NEURON (https://dev.azure.com/neuronsimulator/nrn/_settings/), and click on "Service connections" under "Pipelines", and click on "AzureNeuronPypiNightly" (see picture below):
Finally, click on the "Edit" button in the top-right part of the screen:
Finally paste the token you copied earlier in the "Password" field:
and scroll down to click "Save".
From that point onward, the Azure CI will use the new credentials for uploading nightly releases to PyPI.
-
NEURON developer meetings
-
Miscellaneous