microsoft / artifacts-keyring

Keyring backend for Azure Artifacts
MIT License
32 stars 18 forks source link

Install packages with Poetry and pyproject.toml #37

Closed lynochka closed 3 years ago

lynochka commented 3 years ago

Hei, could you please add to the readme how to use the package to add private packages to poetry evironment via pyproject.toml [[tool.poetry.source]] ).

Given that there is no username/password or explicit certificates, this is not obvious thanks!

lynochka commented 3 years ago

The reason I am asking is because I could not make it work, would you like to have my steps?

Darsstar commented 3 years ago

The last couple of days I have been leaving a paper trail on issues I looked at while trying to make things work.

Besides installing artifacts-keyring you might want to install azure-devops-artifacts-helpers which provides a virtualenv seeder called azdo-pip that installs artifacts-keyring into new virtual environments. You can configure virtualenv to use that seeder via the config file or setting the VIRTUALENV_SEEDER environment value to azdo-pip.

Poetry does not currently use keyring the same way that pip and pipenv do: python-poetry/poetry#4086.

Hopefully someone finds this helpfull.

github-actions[bot] commented 3 years ago

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community.

lynochka commented 3 years ago

Hei, I did not see the link to the specific issue in the 'Developer Community', please share

Darsstar commented 3 years ago

https://developercommunity.visualstudio.com/t/Artifact-Feed--Connect-to-feed--Pip-/1429453