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 py2 scripts in common/ to py3 #2120

Merged
merged 11 commits into from
Apr 7, 2024
Merged

Convert py2 scripts in common/ to py3 #2120

merged 11 commits into from
Apr 7, 2024

Conversation

livingsilver94
Copy link
Member

@livingsilver94 livingsilver94 commented Apr 4, 2024

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 for sublime-text from 3rd-party and ran yconvert.py on it, and verified that the generated package.yml was filled out as expected. Ran pbump.py on the same pspec.xml and verified that there was a new history entry generated. Ran yauto.py with a tarball for budgie-desktop and verified that it generated and filled out a package.yml as expected.

@livingsilver94 livingsilver94 changed the title Common to py3 Convert py2 scripts in common/ to py3 Apr 4, 2024
@livingsilver94 livingsilver94 requested a review from ermo April 4, 2024 13:06
@EbonJaeger
Copy link
Member

I edited in the testing I did for the scripts I touched. :)

@ermo ermo requested review from sheepman4267 and silkeh and removed request for ermo April 4, 2024 17:35
@ermo
Copy link
Contributor

ermo commented Apr 4, 2024

@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 ?

@ermo ermo added Topic: Plumbing Core components Priority: High High priority Type: Chore Not a feature or a bug Topic: Tooling Tools and scripts labels Apr 4, 2024
Copy link
Member

@silkeh silkeh left a 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

@ermo ermo merged commit e77fa58 into main Apr 7, 2024
2 checks passed
@ermo ermo deleted the common-to-py3 branch April 7, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority Topic: Plumbing Core components Topic: Tooling Tools and scripts Type: Chore Not a feature or a bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Convert py2 scripts in common/ to py3
5 participants