-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to publish to Azure Artifacts #2857
Comments
Quick update. I was able to find a work around. I proceeded with Poetry package development as I normally would. Instead of using Poetry to publish at the end though I used: > poetry build
> twine upload -r azure dist/* For this to work I just followed the instructions Azure Artifacts provides for using Twine. Are there any risks to doing it this way? Seems like it worked for me. |
I was able to upload it for our azsure devops server. We use the upload tokens in the connect feed dialog ( the one under "Upload packages with twine") Make sure they are in the auth.toml in
then |
Thanks for the feedback @maxab. Our of curiosity were you able to use Poetry with Azure Pipelines? |
I'm still a bit confused by Microsofts naming of TFS, Devops and Azure Pipelines. But if you mean the hosted build things, this I haven't tried so only used it in the on-prem installation. But in general don't you have some kind of secret store there which you then can interpolate during the run.
|
Hi, original developer of In short, artifacts-keyring wraps up a separate tool that is able to use locally cached Azure DevOps credentials (or pop up a login window) to get a temporary access token to Azure Artifacts. This token isn't tied to the user's username, but comes with the username. To support this in It looks like Poetry is currently only using the If the version of There should be no harm in deferring the |
export POETRY_REPOSITORIES_AZURE_URL="<FEED URL>"
export POETRY_HTTP_BASIC_AZURE_USERNAME="<Any Thing>"
export POETRY_HTTP_BASIC_AZURE_PASSWORD="<personal access token>" Note: When using personal access token, Then, finally, you can upload to Artifacts using the poetry publish -r azure --build |
#4086 may partially resolve the authentication issue. |
-vvv
option).Issue
I am trying to publish a python package to my companies Azure DevOps Artifacts. I have built the package using poetry. A run the following at the command line:
I have used Poetry to publish to public repos before. But not Azure or private repos. I have a hunch there may be an issue with Azure Artifacts keyring. The Azure documentation suggests to use twine, and you authenticate with the Azure keyring.
Lastly I tried to copy the code from https://www.nuomiphp.com/eplan/en/104789.html, but I was met with the same error when following this template.
Any ideas on how to publish to Azure Artifacts?
The text was updated successfully, but these errors were encountered: