Skip to content
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

allow appending deployment key to username (#2062) #96

Closed

Conversation

finswimmer
Copy link
Member

@finswimmer finswimmer commented Oct 5, 2020

This PR allows appending deployment keys to usernames as used by gitlab.

Furthermore a new property is_unsafe is introduced for ParsedUrl, which can be used for cli command like poetry add to easily return whether the git dependency contains a password.

According to gitlab's docs a + is allowed in usernames. This is fixed as well.

Fixes: python-poetry/poetry#2062

(This was initially submitted to the poetry repository: python-poetry/poetry#2169)

Pull Request Check List

This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!

  • Added tests for changed code.
  • Updated documentation for changed code.

new (vcs.git): extract user credential (passord, deployment key, ...) from git url
change (vcs.git): change order of init arguments for `ParsedUrl`
change (vcs.git): make user, password, port, name and rev optional for `ParsedUrl`
…olean whether the ParsedUrl contains a secret like a password
@setu4993
Copy link

setu4993 commented Oct 8, 2020

Thanks for this, @finswimmer!

I noticed one thing that it doesn't explicitly tests for / address is using Personal Access Tokens (python-poetry/poetry#2348). It might work, but would be nice to add a test for it to avoid issues.

GitHub docs about it.

Also, is there anything that I can contribute on this that could help speed things up? Thanks!

@setu4993
Copy link

setu4993 commented Oct 24, 2020

Bumping this up again, @finswimmer, to ask if there's any specific areas I can help building / supporting that can help speed this up?

Thanks for all your work!

@setu4993
Copy link

@finswimmer : I took a stab at the remainder items here that'd help in resolving python-poetry/poetry#2062 and python-poetry/poetry#2348, and based it off of the branch for this PR. finswimmer#1

@jedie
Copy link

jedie commented Nov 9, 2021

Any news here?!?

@finswimmer finswimmer closed this Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants