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

Create new module: network.auth #7045

Merged
merged 4 commits into from
Sep 20, 2019
Merged

Conversation

chrahunt
Copy link
Member

The first of a handful of modules that can go into this package to split out the "pure" parts of pip._internal.download.

@chrahunt chrahunt added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Sep 20, 2019
@pradyunsg
Copy link
Member

nit: let's call the sub-package network? That'd be consistent with the rest of the sub-package names, none of which use the "ing" form of verbs. (I just woke up so my brain isn't giving me fancy grammar words)

@chrahunt
Copy link
Member Author

chrahunt commented Sep 20, 2019

Reopening for Appveyor...

(may have done it too soon, it was probably just queued)

@chrahunt chrahunt closed this Sep 20, 2019
@chrahunt chrahunt reopened this Sep 20, 2019
@pradyunsg pradyunsg changed the title Create new module: networking.auth Create new module: network.auth Sep 20, 2019
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK with this in principle. I've not reviewed this thoroughly.

Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One minor comment.

@@ -0,0 +1,289 @@
import logging
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a doc-string to the module describing what all is happening in it and what we expect would be used by "consumers" of the module.

In general, when we're adding new modules as a result of breaking up existing modules, we should do this so that it makes our lives easier 6 months later when we forget how exactly we'd split the functionality. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I'll create a follow-up PR later today.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #7054 for you. :)

@pradyunsg pradyunsg merged commit 0a2238a into pypa:master Sep 20, 2019
@chrahunt chrahunt deleted the refactor/networking branch September 20, 2019 20:25
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Oct 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants