Skip to content

porting scripts to python3

Ed Bartosh openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16scripts: python3: convert iterables to listsscripts/bitbake-whatchanged scripts/combo-layer scripts/lib/devtool/build.py +4 more+12 -122 replies
2/16scripts: python3: use new style except statementscripts/combo-layer scripts/contrib/bbvars.py scripts/cp-noerror +1 more+14 -140 replies
3/16scripts: python3: rename raw_input to inputscripts/lib/bsp/engine.py scripts/lib/bsp/kernel.py scripts/oepydevshell-internal.py +1 more+16 -160 replies
4/16scripts: python3: fix urllib importsscripts/contrib/verify-homepage.py scripts/send-error-report+9 -90 replies
5/16ksize.py: python3: get rid of strings.joinscripts/tiny/ksize.py+1 -30 replies
6/16scripts: python3: get rid of __future__ importsscripts/bitbake-whatchanged scripts/pybootchartgui/pybootchartgui/main.py.in scripts/pybootchartgui/pybootchartgui/parsing.py +1 more+0 -80 replies
7/16scripts: python3: use new metaclass syntaxscripts/lib/bsp/engine.py scripts/test-remote-image+4 -100 replies
8/16combo-layer: python3: import reducescripts/combo-layer+1 -00 replies
9/16engine.py: python3: rename sys.maxint to sys.maxsizescripts/lib/bsp/engine.py+3 -30 replies
10/16scripts: python3: use explicit relative importsscripts/lib/bsp/engine.py scripts/lib/bsp/kernel.py+2 -30 replies
11/16scripts: python3: replace exec statement with builtinscripts/lib/bsp/engine.py+1 -10 replies
12/16engine: python3: replace iteritems() -> items()scripts/lib/bsp/engine.py+3 -31 reply
13/16dirsize: python3: fix TypeError: unorderable typesscripts/tiny/dirsize.py+5 -90 replies
14/16scripts: python3: decode subprocess outputscripts/cleanup-workdir scripts/combo-layer scripts/lib/bsp/kernel.py +1 more+8 -80 replies
15/16combo-layer: python3: use tempfile.TemporaryFilescripts/combo-layer+2 -20 replies
16/16scripts: python3: change python to python3 in shebangscripts/bitbake-whatchanged scripts/buildhistory-collect-srcrevs scripts/cleanup-workdir +23 more+26 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/16] porting scripts to python3

Hi,

Please review set of python3 fixes for oe scripts.

As most of the scripts are not covered by tests it was quite hard to test them. I tested only those which I know how to work with. It would be greate to have any help with testing.

The following changes since commit dcbfc72303d6782d9108538c830cf2ee7849bf59:

poky: Add Ubuntu 16.04 to tested/supported list since I run it myself (2016-06-02 10:37:05 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib ed/oe/python3
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/oe/python3

Ed Bartosh (16):
scripts: python3: convert iterables to lists
scripts: python3: use new style except statement
scripts: python3: rename raw_input to input
scripts: python3: fix urllib imports ksize.py: python3: get rid of strings.join
scripts: python3: get rid of __future__ imports
scripts: python3: use new metaclass syntax
combo-layer: python3: import reduce engine.py: python3: rename sys.maxint to sys.maxsize
scripts: python3: use explicit relative imports
scripts: python3: replace exec statement with builtin
engine: python3: replace iteritems() -> items()
dirsize: python3: fix TypeError: unorderable types
scripts: python3: decode subprocess output
combo-layer: python3: use tempfile.TemporaryFile
scripts: python3: change python to python3 in shebang

 scripts/bitbake-whatchanged                      |  9 +++----
 scripts/buildhistory-collect-srcrevs             |  2 +-
 scripts/cleanup-workdir                          |  4 +--
 scripts/combo-layer                              | 15 ++++++-----
 scripts/contrib/bbvars.py                        | 16 +++++------
 scripts/contrib/devtool-stress.py                |  2 +-
 scripts/contrib/list-packageconfig-flags.py      |  2 +-
 scripts/contrib/verify-homepage.py               |  6 ++---
 scripts/cp-noerror                               | 10 +++----
 scripts/gen-lockedsig-cache                      |  2 +-
 scripts/lib/bsp/engine.py                        | 34 +++++++++++-------------
 scripts/lib/bsp/kernel.py                        | 25 +++++++++--------
 scripts/lib/devtool/__init__.py                  |  2 +-
 scripts/lib/devtool/build.py                     |  2 +-
 scripts/lib/devtool/standard.py                  |  4 +--
 scripts/lib/recipetool/create_buildsys.py        |  2 +-
 scripts/lib/recipetool/create_buildsys_python.py |  6 ++---
 scripts/oe-pkgdata-util                          |  2 +-
 scripts/oe-publish-sdk                           |  2 +-
 scripts/oe-selftest                              |  2 +-
 scripts/oe-trim-schemas                          |  2 +-
 scripts/oepydevshell-internal.py                 |  4 +--
 scripts/opkg-query-helper.py                     |  2 +-
 scripts/pybootchartgui/pybootchartgui/main.py.in |  2 --
 scripts/pybootchartgui/pybootchartgui/parsing.py |  3 ---
 scripts/pythondeps                               |  2 +-
 scripts/relocate_sdk.py                          |  2 +-
 scripts/send-error-report                        | 22 +++++++--------
 scripts/swabber-strace-attach                    |  2 +-
 scripts/sysroot-relativelinks.py                 |  2 +-
 scripts/test-remote-image                        | 10 +++----
 scripts/tiny/dirsize.py                          | 16 +++++------
 scripts/tiny/ksize.py                            |  8 +++---
 scripts/wic                                      |  2 --
 scripts/yocto-bsp                                |  2 +-
 scripts/yocto-kernel                             |  2 +-
 scripts/yocto-layer                              |  2 +-
 37 files changed, 107 insertions(+), 127 deletions(-)

--
Regards,
Ed