[PATCH v3 00/15] Python: packaging cleanups

John Snow posted 15 patches 2 years, 10 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210629214323.1329806-1-jsnow@redhat.com
Maintainers: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Eduardo Habkost <ehabkost@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Willian Rampazzo <willianr@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, John Snow <jsnow@redhat.com>, Thomas Huth <thuth@redhat.com>, Cleber Rosa <crosa@redhat.com>
python/README.rst               |  47 ++++++++++---
.gitlab-ci.d/static_checks.yml  |   2 +-
python/Makefile                 |  89 +++++++++++++++++++------
python/Pipfile.lock             | 113 +++++++++++++++-----------------
python/qemu/machine/__init__.py |   6 +-
python/qemu/machine/machine.py  |   6 +-
python/qemu/machine/py.typed    |   0
python/qemu/machine/qtest.py    |   2 +
python/qemu/qmp/__init__.py     |   1 +
python/qemu/qmp/py.typed        |   0
python/qemu/qmp/qom.py          |   4 +-
python/qemu/qmp/qom_common.py   |   2 +-
python/qemu/utils/accel.py      |   2 +-
python/qemu/utils/py.typed      |   0
python/setup.cfg                |  14 ++--
python/tests/flake8.sh          |   2 +-
16 files changed, 186 insertions(+), 104 deletions(-)
create mode 100644 python/qemu/machine/py.typed
create mode 100644 python/qemu/qmp/py.typed
create mode 100644 python/qemu/utils/py.typed
[PATCH v3 00/15] Python: packaging cleanups
Posted by John Snow 2 years, 10 months ago
This series is a collection of touchups and small fixes to the Python
packaging series that was initiated with commit ea1213b7.

It fixes a small handful of annoyances and adjusts some readme files,
help text, and so on.

I'd like to make sure this is included prior to the 6.1 RC testing
period. (And now, at the very least, patch #01 needs to go in ASAP.)

V3:
  001/15:[down] 'python/qom: Do not use 'err' name at module scope'
  010/15:[down] 'python: only check qemu/ subdir with flake8'
  015/15:[down] 'python: Fix broken ReST docstrings'

 - 01: Update library for pylint 2.9.0 which happened ~2hrs ago
 - 10: Fix pylint checking stuff it shouldn't (Wainer)
 - 15: Also new, it helps me along with Sphinx doc work.

V2:
  007/12:[0002] [FC] 'python: update help text for check-tox'
  008/12:[down] 'python: Fix .PHONY Make specifiers'
  009/12:[down] 'python: add 'make check-dev' invocation'

 - 07: Changed '3.6-3.10' to '3.6 - 3.10'.
       (Kept Willian's RB)
 - 08: New, based on Wainer's observation I had missed 'check-tox'.
 - 09: Renamed targets based on Wainer's review.

Status:

[01] python-qom-do-not-use-err-at  #              [SOB] JS
[02] python-expose-typing          # [RB] WR,WdSM [SOB] JS
[03] python-remove-global-pylint   # [RB] WR,WdSM [SOB] JS
[04] python-re-lock-pipenv-at      # [RB] WR,WdSM [SOB] JS
[05] python-readme.rst-touchups    # [RB] WR,WdSM [SOB] JS
[06] python-add-no-install-usage   # [RB] WR,WdSM [SOB] JS
[07] python-rename-venv-check      # [RB] WR,WdSM [SOB] JS
[08] python-update-help-text-for   # [RB] WR,WdSM [SOB] JS
[09] python-fix-.phony-make        # [RB] WR,WdSM [SOB] JS
[10] python-only-check-qemu-subdir #              [SOB] JS
[11] python-add-make-check-venv    #              [SOB] JS
[12] python-update-help-text-on    # [RB] WR,WdSM [SOB] JS
[13] python-update-help-text-on-1  # [RB] WR,WdSM [SOB] JS
[14] python-remove-auto-generated  # [RB] WR,WdSM [SOB] JS
[15] python-fix-broken-rest        #              [SOB] JS

John Snow (15):
  python/qom: Do not use 'err' name at module scope
  python: expose typing information via PEP 561
  python: Remove global pylint suppressions
  python: Re-lock pipenv at *oldest* supported versions
  python: README.rst touchups
  python: Add no-install usage instructions
  python: rename 'venv-check' target to 'check-pipenv'
  python: update help text for check-tox
  python: Fix .PHONY Make specifiers
  python: only check qemu/ subdir with flake8
  python: add 'make check-dev' invocation
  python: Update help text on 'make check', 'make develop'
  python: Update help text on 'make clean', 'make distclean'
  python: remove auto-generated pyproject.toml file
  python: Fix broken ReST docstrings

 python/README.rst               |  47 ++++++++++---
 .gitlab-ci.d/static_checks.yml  |   2 +-
 python/Makefile                 |  89 +++++++++++++++++++------
 python/Pipfile.lock             | 113 +++++++++++++++-----------------
 python/qemu/machine/__init__.py |   6 +-
 python/qemu/machine/machine.py  |   6 +-
 python/qemu/machine/py.typed    |   0
 python/qemu/machine/qtest.py    |   2 +
 python/qemu/qmp/__init__.py     |   1 +
 python/qemu/qmp/py.typed        |   0
 python/qemu/qmp/qom.py          |   4 +-
 python/qemu/qmp/qom_common.py   |   2 +-
 python/qemu/utils/accel.py      |   2 +-
 python/qemu/utils/py.typed      |   0
 python/setup.cfg                |  14 ++--
 python/tests/flake8.sh          |   2 +-
 16 files changed, 186 insertions(+), 104 deletions(-)
 create mode 100644 python/qemu/machine/py.typed
 create mode 100644 python/qemu/qmp/py.typed
 create mode 100644 python/qemu/utils/py.typed

-- 
2.31.1