All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/7] Switch to Python 3.x flake8
@ 2020-08-12 14:28 Thomas Petazzoni
  2020-08-12 14:28 ` [Buildroot] [PATCH 1/7] utils/{check-package, checkpackagelib}: consistently use raw strings for re.compile Thomas Petazzoni
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Thomas Petazzoni @ 2020-08-12 14:28 UTC (permalink / raw)
  To: buildroot

Hello,

Now that we are using the "async" keyword and related Python 3.x
functionality in support/scripts/pkg-stats, our check-flake8 Gitlab CI
job no longer passes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/681711009

It borks on the "async" keyword. The purpose of this series is to
switch to using the Python 3.x flake8.

Patches 1 to 5 fix existing issues in our Python codebase which were
accepted by the Python 2.x flake8, but not the Python 3.x flake8.

Patch 6 changes our Dockerfile to install python3-flake8 instead of
python-flake8, and patch 7 changes our Gitlab CI job to use the
Python3 flake8 checker.

Once patch 6 is applied, someone will have to rebuild and upload the
Docker image that Buildroot's Gitlab CI is using, and re-adjust patch
7 before applying it to use the new Docker image.

Thanks,

Thomas

Thomas Petazzoni (7):
  utils/{check-package,checkpackagelib}: consistently use raw strings
    for re.compile
  support/testing: consistently use raw strings for re.compile
  support/testing/tests/core/test_timezone.py: fix indentation
  utils/getdeveloperlib.py: use raw strings for re.compile/re.match
  utils/scanpypi: use raw strings in re.compile/re.sub
  support/docker: use python3-flake8
  support/misc/gitlab-ci.yml.in: use python3 for flake8

 support/docker/Dockerfile                   |  2 +-
 support/misc/gitlab-ci.yml.in               |  2 +-
 support/testing/infra/__init__.py           |  4 +-
 support/testing/tests/core/test_timezone.py |  8 +--
 utils/check-package                         | 34 ++++++------
 utils/checkpackagelib/lib_config.py         |  4 +-
 utils/checkpackagelib/lib_mk.py             | 60 ++++++++++-----------
 utils/checkpackagelib/lib_patch.py          |  6 +--
 utils/getdeveloperlib.py                    | 10 ++--
 utils/scanpypi                              |  8 +--
 10 files changed, 69 insertions(+), 69 deletions(-)

-- 
2.26.2

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-08-14 19:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 14:28 [Buildroot] [PATCH 0/7] Switch to Python 3.x flake8 Thomas Petazzoni
2020-08-12 14:28 ` [Buildroot] [PATCH 1/7] utils/{check-package, checkpackagelib}: consistently use raw strings for re.compile Thomas Petazzoni
2020-08-13 22:09   ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 2/7] support/testing: " Thomas Petazzoni
2020-08-13 22:10   ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 3/7] support/testing/tests/core/test_timezone.py: fix indentation Thomas Petazzoni
2020-08-13 22:14   ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 4/7] utils/getdeveloperlib.py: use raw strings for re.compile/re.match Thomas Petazzoni
2020-08-13 22:14   ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 5/7] utils/scanpypi: use raw strings in re.compile/re.sub Thomas Petazzoni
2020-08-13 22:15   ` Titouan Christophe
2020-08-12 14:29 ` [Buildroot] [PATCH 6/7] support/docker: use python3-flake8 Thomas Petazzoni
2020-08-13 22:20   ` Titouan Christophe
2020-08-14 19:39     ` Thomas Petazzoni
2020-08-12 14:29 ` [Buildroot] [PATCH 7/7] support/misc/gitlab-ci.yml.in: use python3 for flake8 Thomas Petazzoni
2020-08-13 22:23   ` Titouan Christophe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.