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

4998 remove long broken pipreqs usage #4999

Merged
merged 3 commits into from
Mar 22, 2022

Conversation

matteius
Copy link
Member

@matteius matteius commented Mar 21, 2022

Remove option --code from install and --unused from check which has been broken since 2018. Also removed unused args from check command, and removed the vendored dependencies:

  • pipreqs
  • yarg
  • doctopt

The issue

For more details on rationale:
#4998

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@matteius matteius requested a review from oz123 March 21, 2022 10:05

c = p.pipenv('check --unused .')
assert 'click' not in c.stdout
assert 'flask' not in c.stdout
Copy link
Member Author

Choose a reason for hiding this comment

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

Notice that it doesn't check that requests is actually in the c.stdout because if it had done that, it would have been obvious this hasn't been working in ages.

Copy link
Contributor

@oz123 oz123 left a comment

Choose a reason for hiding this comment

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

I am totally fine with this.
Also notice, you can should drop docopt!
bndr/pipreqs#294

@matteius matteius requested a review from oz123 March 22, 2022 01:53
   Also remove dependencies:

     yarg
     docopt
@oz123 oz123 force-pushed the 4998-remove-long-broken-pipreqs-usage branch from cce4505 to adcebfd Compare March 22, 2022 08:44
Copy link
Contributor

@oz123 oz123 left a comment

Choose a reason for hiding this comment

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

I rebased your commits. All good now. Thanks for removing docopt too.

@oz123 oz123 merged commit 335fe39 into main Mar 22, 2022
@oz123 oz123 deleted the 4998-remove-long-broken-pipreqs-usage branch March 22, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants