[meta] Remove usages of "six"
Categories
(Firefox Build System :: Mach Core, task, P3)
Tracking
(firefox104 affected)
Tracking | Status | |
---|---|---|
firefox104 | --- | affected |
People
(Reporter: mhentges, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, leave-open, meta)
Attachments
(3 files, 3 obsolete files)
Mach always runs with Python 3, so we should be able to remove six
usages.
Reporter | ||
Comment 1•3 years ago
|
||
Future contributors 👋
Before jumping in to this ticket, see the list of six
usages and decide on a specific section of code that you'd like to improve (e.g.: tools/tryselect
). Then, leave a comment here or chat with a build member in the #build channel on Matrix, and we'll create a sub-bug that can be assigned to you. Looking forward to meeting you!
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
this bug also can be converted into meta :)
Updated•3 years ago
|
Reporter | ||
Comment 3•3 years ago
|
||
Nice, thanks Shivam!
Note: this might be able to be automated with pyupgrade
: https://github.com/asottile/pyupgrade
Comment 4•3 years ago
|
||
Removed six library, added str and bytes to values in Any()
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Hi, I've already written code to update toolkit/components/featuregates/gen_feature_definitions.py
This was a trivial change because I wanted to ensure that my first commit was small while I am still learning.
I'm not working right now, so while I have the time off I'd like to contribute a lot more here. Once I figure out what I need to do, or where I screwed up I think it would be pretty easy to knock most of this out pretty quickly. So please let me know where there are any mistakes, or anything that needs to be revised.
Thank you!
Comment 6•3 years ago
|
||
Depends on D136699
Reporter | ||
Comment 7•3 years ago
|
||
Hey, thanks for the patches!
A couple notes:
- Let's break up this work into separate sub-bugs, and associate patches with them accordingly. For example, for the first two patches you've provided here, I've created a bug for 'em here. You can do this by editing the commit message for your patches to refer to "Bug 1751990" instead, then re-
moz-phab
them to have them automatically update to point to the new bug.- In general, I'd recommend splitting this up by directory in
python/*
directory intesting/*
, and otherwise by top-level directory.
- In general, I'd recommend splitting this up by directory in
- As part of this work, heads up in advance that code in
third_party/python
andtesting/web-platform/tests/tools/third_party
are third-party, and shouldn't be modified :) - If you get the
ERROR: Reformat python
error in Phabricator, you can resolve that by running./mach lint -l black --fix
Looking forward to working with you to have this six
stuff cleaned up 😁
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Depends on D136759
Updated•3 years ago
|
Updated•3 years ago
|
Comment 9•3 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 10•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Depends on D136699
Differenti Revision: https://phabricator.services.mozilla.com/D136759
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/029e0b6bd2ad
https://hg.mozilla.org/mozilla-central/rev/8af3093ff121
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 15•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 16•2 years ago
|
||
Hello I am new to contributing firefox nightly, I want to take one of the file in this issue as my first attempt
Can I get the chance?
Also I want to choose fix build/RunCbindgen.py
Comment 17•2 years ago
|
||
Hi Richard, go for it! I'll review any patch you submit.
Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch
Updated•2 years ago
|
Comment 18•2 years ago
|
||
(In reply to Alex Hochheiden [:ahochheiden] from comment #17)
Hi Richard, go for it! I'll review any patch you submit.
Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch
Hello I have a little question, after I get the source code and run it as the tutorial in https://firefox-source-docs.mozilla.org/setup/windows_build.html
I couldn't find the .git or .hg file in my directory
I asked people in https://chat.mozilla.org/#/room/#introduction:mozilla.org
Looks like I have to use git clone to clone the repo down
But the tutorial use wget
Do I need to git clone and re-build the whole project again?
Comment 19•2 years ago
|
||
Hochheiden [:ahochheiden]
Updated•2 years ago
|
Comment 20•2 years ago
|
||
Hochheiden [:ahochheiden]
Depends on D178515
Comment 21•2 years ago
|
||
(In reply to Alex Hochheiden [:ahochheiden] from comment #17)
Hi Richard, go for it! I'll review any patch you submit.
Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch
Hello Alex, I've submit my patches and asked for your code review.
I am not sure If I did send the code review to you or not, If you didn't receive it pls let me know and I'll try to correct it.
Updated•2 years ago
|
Comment 22•2 years ago
|
||
Alex Hochheiden [:ahochheiden]
I've submit a patch and pass the auto review bot test, I would be thankful if you can review it for me.
Comment 23•1 years ago
|
||
I was on vacation, but also did not get the notification. If you want to add me specifically as a reviewer you need to add r?ahochheiden
, but adding r?#build
is usually preferred anyway (that goes to all build system reviewers).
I agree with Glandium's review comment, take care of that and we can move forward.
Also, please update the summary stating what you're doing.
Updated•1 years ago
|
Comment 24•1 years ago
|
||
Comment 25•1 years ago
|
||
Backed out for causing bustages at complaining about charmap.
Backout link: https://hg.mozilla.org/integration/autoland/rev/68ec5d009309ef9993821a1a63175de4fa85ae0f
Failure log: https://treeherder.mozilla.org/logviewer?job_id=417831069&repo=autoland&lineNumber=4300
Comment 26•1 years ago
|
||
(In reply to Atila Butkovits from comment #25)
Backed out for causing bustages at complaining about charmap.
Backout link: https://hg.mozilla.org/integration/autoland/rev/68ec5d009309ef9993821a1a63175de4fa85ae0f
Failure log: https://treeherder.mozilla.org/logviewer?job_id=417831069&repo=autoland&lineNumber=4300
The error is caused by encoding error, should I use utf-8 to encode it?
Comment 27•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Description
•