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

convert hyphens to underscore for python #71

Merged
merged 4 commits into from
Jul 3, 2020

Conversation

ianhi
Copy link
Contributor

@ianhi ianhi commented Jun 2, 2020

Should close #54

Simpler version of: #70

This allows the typescript package to have hyphens, but converts them to dashes for the python package.

@martinRenou
Copy link
Member

Would you mind rebasing your PR on the updated master?

Comment on lines +32 to 34
pip.main(['uninstall', 'jupyter_widget_testwidgets', '-y'])
except Exception:
pass
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should the test fail here if unable to uninstall? i.e. if the hyphen replacement didn't work correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out other things will also fail if the hyphen replacement didn't work so failing here probably isn't necessary

@ianhi
Copy link
Contributor Author

ianhi commented Jun 3, 2020

I also changed the test python package name to reflect the behavior of entering one name for the github project and then just pressing enter.

ianhi added 2 commits June 3, 2020 16:29
in order to test if the hyphens are being replaced correctly
@ianhi
Copy link
Contributor Author

ianhi commented Jun 3, 2020

Rebased, broken, and then resuscitated - an exciting 30 minutes. Hopefully I learned a valuable lesson about the importance of testing or something.

@ianhi
Copy link
Contributor Author

ianhi commented Jul 3, 2020

@martinRenou thanks for #72 - could you look at this one as well?

@martinRenou martinRenou merged commit e815ae1 into jupyter-widgets:master Jul 3, 2020
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.

Python packages with dash in the name gets generated
2 participants