Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B912BC433EF for ; Wed, 30 Mar 2022 17:29:46 +0000 (UTC) Received: from localhost ([::1]:56552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZc8f-000816-He for qemu-devel@archiver.kernel.org; Wed, 30 Mar 2022 13:29:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZc7K-0005hD-9x for qemu-devel@nongnu.org; Wed, 30 Mar 2022 13:28:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:45933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZc7H-0003JI-Sz for qemu-devel@nongnu.org; Wed, 30 Mar 2022 13:28:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648661299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cKswfLljE6ror0M8ck1nxB97CYkn99gXgGqstvYL28s=; b=OWyWk3WlYGrrAXBlzlROyAd7SEPn87zsudNZp8rOyxWHysGFXYndWhjVlK8TvJmnOwDFuG JYYe29lsVhuOXLSsNvVtL4KUgzhGFEHl2hPvM/kOJ0Axo6WrqkUIbxbDV7Fh4Fe0iIDOIf dCzXphpTeLW2mqp3LnSAq+xGsJmtd58= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-571-xsL6lNgINaGRvFG2BJT-fQ-1; Wed, 30 Mar 2022 13:28:16 -0400 X-MC-Unique: xsL6lNgINaGRvFG2BJT-fQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BABA9899EC4; Wed, 30 Mar 2022 17:28:14 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.35.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id 684F140CFD02; Wed, 30 Mar 2022 17:28:12 +0000 (UTC) From: John Snow To: qemu-devel@nongnu.org Subject: [PATCH v2 0/9] Python: Remove synchronous QMP library Date: Wed, 30 Mar 2022 13:28:03 -0400 Message-Id: <20220330172812.3427355-1-jsnow@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jsnow@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Vladimir Sementsov-Ogievskiy , Beraldo Leal , qemu-block@nongnu.org, Markus Armbruster , Hanna Reitz , Cleber Rosa , John Snow Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Based-on: https://gitlab.com/jsnow/qemu/-/tree/python/=0D GitLab: https://gitlab.com/jsnow/qemu/-/tree/python-qmp-legacy-switch-pt1c= =0D CI: https://gitlab.com/jsnow/qemu/-/pipelines/505169095=0D =0D Hi, this series is part of an effort to publish the qemu.qmp package on=0D PyPI. It is the first of three series to complete this work:=0D =0D --> (1) Switch the new async QMP library in as python/qemu/qmp=0D (2) Fork python/qemu/qmp out into its own repository,=0D with updated GitLab CI/CD targets to build packages.=0D (3) Update qemu.git to install qemu.qmp from PyPI,=0D and then delete python/qemu/qmp.=0D =0D This series finalizes swapping out the old QMP library for the new=0D one. This leaves us with just one QMP library to worry about. It also=0D implements the rename of "qemu.aqmp" to "qemu.qmp".=0D =0D This is the last patch series before I perform the actual fork.=0D =0D These patches are (mostly) reviewed, so I'll likely stage these fairly=0D quickly barring any objections. The plan is to submit them as soon as=0D the tree re-opens to help prevent rot while I work on the fork.=0D =0D John Snow (9):=0D python: temporarily silence pylint duplicate-code warnings=0D python/aqmp: take QMPBadPortError and parse_address from qemu.qmp=0D python/aqmp: fully separate from qmp.QEMUMonitorProtocol=0D python/aqmp: copy qmp docstrings to qemu.aqmp.legacy=0D python: remove the old QMP package=0D python: re-enable pylint duplicate-code warnings=0D python: rename qemu.aqmp to qemu.qmp=0D python: rename 'aqmp-tui' to 'qmp-tui'=0D python/qmp: remove pylint workaround from legacy.py=0D =0D python/README.rst | 2 +-=0D python/qemu/qmp/README.rst | 9 -=0D python/qemu/aqmp/__init__.py | 59 ---=0D python/qemu/aqmp/legacy.py | 188 --------=0D python/qemu/aqmp/py.typed | 0=0D python/qemu/machine/machine.py | 4 +-=0D python/qemu/machine/qtest.py | 2 +-=0D python/qemu/qmp/__init__.py | 445 ++----------------=0D python/qemu/{aqmp =3D> qmp}/error.py | 0=0D python/qemu/{aqmp =3D> qmp}/events.py | 2 +-=0D python/qemu/qmp/legacy.py | 315 +++++++++++++=0D python/qemu/{aqmp =3D> qmp}/message.py | 0=0D python/qemu/{aqmp =3D> qmp}/models.py | 0=0D python/qemu/{aqmp =3D> qmp}/protocol.py | 4 +-=0D python/qemu/{aqmp =3D> qmp}/qmp_client.py | 16 +-=0D python/qemu/{aqmp =3D> qmp}/qmp_shell.py | 4 +-=0D .../qemu/{aqmp/aqmp_tui.py =3D> qmp/qmp_tui.py} | 15 +-=0D python/qemu/{aqmp =3D> qmp}/util.py | 0=0D python/qemu/utils/qemu_ga_client.py | 4 +-=0D python/qemu/utils/qom.py | 2 +-=0D python/qemu/utils/qom_common.py | 4 +-=0D python/qemu/utils/qom_fuse.py | 2 +-=0D python/setup.cfg | 11 +-=0D python/tests/protocol.py | 14 +-=0D scripts/cpu-x86-uarch-abi.py | 2 +-=0D scripts/device-crash-test | 4 +-=0D scripts/qmp/qmp-shell | 2 +-=0D scripts/qmp/qmp-shell-wrap | 2 +-=0D scripts/render_block_graph.py | 4 +-=0D scripts/simplebench/bench_block_job.py | 2 +-=0D tests/qemu-iotests/iotests.py | 2 +-=0D tests/qemu-iotests/tests/mirror-top-perms | 4 +-=0D 32 files changed, 409 insertions(+), 715 deletions(-)=0D delete mode 100644 python/qemu/qmp/README.rst=0D delete mode 100644 python/qemu/aqmp/__init__.py=0D delete mode 100644 python/qemu/aqmp/legacy.py=0D delete mode 100644 python/qemu/aqmp/py.typed=0D rename python/qemu/{aqmp =3D> qmp}/error.py (100%)=0D rename python/qemu/{aqmp =3D> qmp}/events.py (99%)=0D create mode 100644 python/qemu/qmp/legacy.py=0D rename python/qemu/{aqmp =3D> qmp}/message.py (100%)=0D rename python/qemu/{aqmp =3D> qmp}/models.py (100%)=0D rename python/qemu/{aqmp =3D> qmp}/protocol.py (99%)=0D rename python/qemu/{aqmp =3D> qmp}/qmp_client.py (97%)=0D rename python/qemu/{aqmp =3D> qmp}/qmp_shell.py (99%)=0D rename python/qemu/{aqmp/aqmp_tui.py =3D> qmp/qmp_tui.py} (98%)=0D rename python/qemu/{aqmp =3D> qmp}/util.py (100%)=0D =0D --=20=0D 2.34.1=0D =0D