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

Move ui helpers to cli subpackage #6727

Merged
merged 15 commits into from
Feb 21, 2020

Conversation

sinscary
Copy link
Contributor

Closes #6531

  • Separated spinners and progress_bars to separate modules
  • Moved these modules under pip._internal.cli.*

@sinscary sinscary changed the title Move cli helpers to cli subpackage Move ui helpers to cli subpackage Jul 18, 2019
@@ -38,7 +38,7 @@
)
from pip._internal.utils.setuptools_build import make_setuptools_shim_args
from pip._internal.utils.temp_dir import AdjacentTempDirectory, TempDirectory
from pip._internal.utils.ui import SpinnerInterface
from pip._internal.cli.spinners import SpinnerInterface
Copy link
Member

Choose a reason for hiding this comment

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

Tests for this should probably move into a test_cli_spinners.py file. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure will do that.

@pradyunsg pradyunsg added the type: refactor Refactoring code label Jul 18, 2019
@pradyunsg
Copy link
Member

Thanks for your work here @sinscary! :D

I won't be able to review this thoroughly right now; working on #6630 for at least this week.

@pradyunsg
Copy link
Member

@sinscary could you update this PR (merge or rebase)?

@BrownTruck
Copy link
Contributor

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will be eligible for code review and hopefully merging!

@BrownTruck BrownTruck added the needs rebase or merge PR has conflicts with current master label Jul 20, 2019
@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from c3253ad to e3a4d5d Compare July 24, 2019 11:52
@pypa-bot pypa-bot removed the needs rebase or merge PR has conflicts with current master label Jul 24, 2019
@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from e3a4d5d to 9cb49c8 Compare July 25, 2019 05:02
@BrownTruck
Copy link
Contributor

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will be eligible for code review and hopefully merging!

@BrownTruck BrownTruck added the needs rebase or merge PR has conflicts with current master label Aug 5, 2019
@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from 9cb49c8 to 59c1108 Compare September 27, 2019 04:58
@pypa-bot pypa-bot removed the needs rebase or merge PR has conflicts with current master label Sep 27, 2019
@BrownTruck
Copy link
Contributor

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will be eligible for code review and hopefully merging!

@BrownTruck BrownTruck added the needs rebase or merge PR has conflicts with current master label Sep 28, 2019
@uranusjr
Copy link
Member

uranusjr commented Jan 7, 2020

Hi @sinscary would you mind clean up the commits a bit, and rebase it onto master so this can be merged? The changes themselves LGTM so a cleanup would be all that’s needed for this to be merged.

@pradyunsg pradyunsg added the S: awaiting response Waiting for a response/more information label Jan 7, 2020
@sinscary
Copy link
Contributor Author

sinscary commented Jan 7, 2020

@uranusjr @pradyunsg Man I got busy with some work and forgot about this PR. Sure I will clean this up during the weekend.

@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from 59c1108 to ffd8274 Compare January 7, 2020 11:09
@pypa-bot pypa-bot removed the needs rebase or merge PR has conflicts with current master label Jan 7, 2020
@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Jan 10, 2020
@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from ffd8274 to 9956ee0 Compare January 27, 2020 12:16
@pradyunsg
Copy link
Member

@sinscary If you have any questions / need help here, please let us know. :)

@sinscary
Copy link
Contributor Author

@pradyunsg Apart from linter errors(that I will take care of) there is this one test case(test_pep517_and_build_options) which is continously failing. A little help will really speed up the things. :)

@sinscary
Copy link
Contributor Author

@pradyunsg This time integration tests passed for all the platforms and versions except python27 windows. As I can see this is failing for most who have created PR today or yesterday.

@pradyunsg
Copy link
Member

This time integration tests passed for all the platforms and versions except python27 windows. As I can see this is failing for most who have created PR today or yesterday.

Yea, looks like something's up -- I'll take a closer look. :)

@pfmoore
Copy link
Member

pfmoore commented Jan 28, 2020

See #7662 (comment)

@BrownTruck
Copy link
Contributor

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will be eligible for code review and hopefully merging!

@sinscary
Copy link
Contributor Author

sinscary commented Feb 20, 2020

@pradyunsg mypy check is failing for InterruptibleMixin inside progeress_bars.py, which led me to this issue . All the mixins are having this issue. Not really sure how to approach this.

@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch 3 times, most recently from 71f9b28 to 182b73b Compare February 20, 2020 10:56
@sinscary sinscary force-pushed the move_cli_helpers_to_cli_subpackage branch from 182b73b to 30933a0 Compare February 20, 2020 10:59
@sinscary
Copy link
Contributor Author

@pradyunsg I have marked mixins to be ignored for now. Can you once review PR.

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.

@sinscary Thanks for the ping (and your patience here!). I like the way you've made your commits which made it super easy to review this PR!

Overall, this LGTM. I'm OK to merge this as is, albeit with a tracking issue for dropping the # type: ignore comments.

We should drop the # type: ignore comments and instead add something like the following to the top of the file:

# The following comment should be removed at some point in the future.
# mypy: strict-optional=False

AFAICT, that should fix almost all the mypy issues you're facing here. If you want to try that and fix any remaining mypy issues, lemme know. Otherwise, I'll be happy to pick things up from here, if you don't want to deal with mypy issues. :)

@sinscary
Copy link
Contributor Author

sinscary commented Feb 21, 2020

@pradyunsg Currently the issues I am facing with mixins won't be fixed by disabling strict optional checking, I tried that and mypy check failing with same errors. I really wanna pickup something new.

@pradyunsg
Copy link
Member

Sure thing @sinscary! Thanks again for the PR! Lemme know if you'd like me to suggest another issue for you to work on. :)

@sinscary
Copy link
Contributor Author

@pradyunsg Sure.

@pradyunsg
Copy link
Member

@sinscary #7249. :)

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Mar 22, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Mar 22, 2020
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 type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move pip._internal.utils.ui to pip._internal.cli.*
6 participants