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
Azure Artifacts - Python Manual Configuration Settings #6456
Comments
@AjkayAlan Thank you for the feedback, assigning this to the author for review. |
Hey @AjkayAlan , Thanks for the feedback! I'm sorry about the issues and I'll be reviewing to see where we can improve the documentation. |
Totally agree with @AjkayAlan! The keyring is still in preview and I honestly prefer using some more stable tooling. PAT is OK, but there is basically no docs on that! |
I very much agree here. If I try to use
then I am being asked for user and password on the command prompt. If I omit PAT, then there is an option to authenticate through web browser. |
It is affecting us too. Surprisingly the steps that were mentioned worked till last week without a need to send the PAT token. Now it's expecting a PAT token in the pip.conf file like @AjkayAlan mentioned. |
I am also having this problem. @chasewilson any updates on this? |
The trick, which worked for me: be sure to select all accessible organizations under |
We are having the issue of automation. As you are saying its automatic (https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops#option-1-use-python-credential-provider-preview-to-automate-authentication) and at the end you are asking for user name and password. How this can be an automatic system. Guys look at this seriously as many of us are stuck at development and production. |
Hey folks,
|
@ramiMSFT Is there any movement on this issue? I'm trying to install an Azure Artifacts hosted Python package from within an AzureML experiment compute cluster, and it seems to be very unclear how to do this in an automated way. I'm sure a combination of @jeffthink's answer and a custom Dockerfile As noted by other commenters, this is something that is inhibiting me from creating enterprise AzureML pipelines for production use cases, so it would be really helpful if we could find a more elegant solution. |
As a quick additional note for those using AzureML...you can follow Jeff's answer and then include the extra index in your requirements.txt to avoid having to go through Docker. You add the extra index on the first line. Second line is the name of your Python package (
|
You're a life saver. Your solution worked for me. Thanks :) |
hi, What is process to Create a pip.conf (mac/linux) ? thanks |
Hi, I am now faced with the same issue when trying to upload a whl package to the pypi azure devops artifactory. in the docs they don't show how to do it with the PAT. when I try to run the command they provide: Was anyone able to publish whl package with the PAT? passed as an argument or in the ~/.pypirc file? thanks a lot |
@AjkayAlan My apologies for the delayed response. When you connect to Azure DevOps for the first time, you will be prompted for credentials. You can then enter your userName and PAT in the appropriate fields (ex: pip install). This is an expected behavior. The credentials will be cached locally and used to automatically log you in the next time you use the service. |
Update datadog.md
I am attempting to follow https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops#option-2-manually-configure-authentication, as artifacts-keyring doesn't work for me (making a separate issue for that). Per https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops#connect-to-your-feed, I should be able to set up via a PAT. However, the instructions for manual configuration just state to add your feed as an extra-index-url in your pip.conf, with no mention on how you should setup credentials. These steps by themselves don't work.
The docs feel unclear - can they include an example with using PAT's? For reference, the following configuration examples did not work for me:
# This is the version the docs recommend, which just results in my artifact not being found [global] extra-index-url=https://pkgs.dev.azure.com/myorg/myproject/_packaging/myfeed/pypi/simple/
The ONLY mechanism I have found that works (when doing manual auth) is:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: