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

replace optparse to argparse #1591

Closed
wants to merge 1 commit into from

Conversation

KiYugadgeter
Copy link
Contributor

  • add_option with add_argument for argparse
  • change methods methods of RegeneratableOptionParser to match argparse function name
Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

optparse have been deprecated since Python3.2.
also argparse work on both version (2.x and 3.x).

some methods of RegeneratableOptionParser have changed to match argparse function name.

@KiYugadgeter KiYugadgeter changed the title gyp: replace optparse to argparse replace optparse to argparse Nov 1, 2018
@refack refack self-assigned this Nov 2, 2018
@rvagg
Copy link
Member

rvagg commented Jun 21, 2019

@KiYugadgeter would you mind rebasing this please so we can discuss it more cleanly? Sorry for the hassle.

It probably belongs in https://github.com/refack/GYP but let's see it clearly here first.

@KiYugadgeter
Copy link
Contributor Author

Sorry for I am beginner of git and github.
Sorry for I am Japanese that my english may bit rusty.

Should I rebase this branch to node-gyp master branch?

@rvagg
Copy link
Member

rvagg commented Jun 24, 2019

@KiYugadgeter yes, the master branch of this repository has changed a lot since your pull request, so you need to rebase to catch up. Hopefully there's not too much to resolve in the process.

  * add_option with add_argument for argparse
  * change methods methods of RegeneratableOptionParser to match argparse function name
@KiYugadgeter
Copy link
Contributor Author

I have pushed new pull request that caught up.

Copy link
Contributor

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

Nice!

rvagg pushed a commit that referenced this pull request Jun 26, 2019
  * add_option with add_argument for argparse
  * change methods methods of RegeneratableOptionParser to match argparse function name

PR-URL: #1591
Reviewed-By: cclauss <cclauss@me.com>
@rvagg
Copy link
Member

rvagg commented Jun 26, 2019

landed in 82f129d

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.

4 participants