-
Notifications
You must be signed in to change notification settings - Fork 85
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 py2 scripts in common/ to py3 #2120
Conversation
Signed-off-by: Evan Maddock <[email protected]>
Signed-off-by: Evan Maddock <[email protected]>
Signed-off-by: Evan Maddock <[email protected]>
I edited in the testing I did for the scripts I touched. :) |
@silke / @sheepman4267 / @joebonrichie Do any of you see any reason this should not go in as is? I am specifically wondering if not the smart thing to do here would be to test this PR against the stuff that's part of getsolus/3rd-party#73 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind enabling flake8 for common/Scripts/*.py
here and fixing the few minor issues that flake8 finds?
For reference, these are:
common/Scripts/yauto.py:127:54: E203 whitespace before ':'
common/Scripts/yauto.py:338:17: F841 local variable 'sample_actions' is assigned to but never used
Summary
Fixes #2091.
Test Plan
I launched all the scripts I ported and made sure the output is meaningful. Where arguments are required, I used
mame
for package.yml-based packages and pisi for pspec.xml-based packages.Downloaded the
pspec.xml
file forsublime-text
from 3rd-party and ranyconvert.py
on it, and verified that the generatedpackage.yml
was filled out as expected. Ranpbump.py
on the samepspec.xml
and verified that there was a new history entry generated. Ranyauto.py
with a tarball forbudgie-desktop
and verified that it generated and filled out apackage.yml
as expected.