Skip to content

Support HTTP authentication for git dependencies #2050

@evgenii-petrov-arrival

Description

@evgenii-petrov-arrival
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I want to pull a dependency from a private git repo, but the repo requires HTTP authentication.

As far as I can tell, https://python-poetry.org/docs/repositories/ only supports PyPI repositories, so git repositories are not supported.

I want to be able to do something similar to:

$ poetry config repositories.git-domain-repo https://git.domain/repo/
$ poetry config http-basic.git-domain-repo username password

Or, even better, to configure auth for the whole git.domain.

Please add a way to specify a username and a password to be used when pulling a git dependency, such that the username and password are specified outside of pyproject.toml .

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions