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 EA664C6FD1F for ; Thu, 16 Mar 2023 08:54:41 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcjNE-0004ca-E3; Thu, 16 Mar 2023 04:54:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcjND-0004c9-28 for qemu-devel@nongnu.org; Thu, 16 Mar 2023 04:54:11 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcjN9-0005Bi-Oh for qemu-devel@nongnu.org; Thu, 16 Mar 2023 04:54:10 -0400 Received: by mail-wm1-x333.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so540972wmq.1 for ; Thu, 16 Mar 2023 01:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678956844; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8UfGZMxYixLGODpItPw5UVrbIulHZeEVI225koIvPFI=; b=PnE7OXy2c3YE9jk+GhxZL0acEj1IR/3Z331aUbUKETwGXPxj02oEcfCS4+lb+OhC/a fGydgll/kgvTwuACQJ9Ai+XeRzWCjEeaAF1aC717VFIMbms+k5WcDbn4tleiLUKLaEvr kpG9TN7oDalxc7NjO1Q19LH1Qk58xrAJ27zSnQTSbByYjr0uexW2Zu8k7mHxVPiv47yS bBWQyL91iFQvs2/C681utMZNBd2xNbnx/t63zZjS4Fpjdcih+UaX4rhvAiqkivVgRpux UFTg55JyV3X7o9GRY30WLug/4RTnBv9sotAA8wrCOtX4fEz/kRBFapETM1sr8WYutlby EJ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678956844; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8UfGZMxYixLGODpItPw5UVrbIulHZeEVI225koIvPFI=; b=1dY9CeVxtwVgcK5owyuvAcQP9C0FFPK5nF2uITatBmJ0gJprYAusAbcgErCJ/TaQGx HR9xVQyFOO3gPqbk7WCt9HKyZurCTLorDFxRyXcuBAa8wrQTX7UB2iXWrGIA0md0luf6 sNg8tOk6TTToIKLzoJES8lxnaIigjDOFbUNNewanePXFgL2vcrdyLNRpT0VstWfiK5VY LJQ0R5x3e9rEnJjaqOZdm8KPcfmFzjkt8Ww5jfXnePrVum/uYHawGFZbFGN0U3AHYTzm WRGBdYOye01Mb4ax4zl5uha2KqED1s+B+zJPH/O6JnZIeQyosIgphEGJIQjg1DlfIIYI 8dtA== X-Gm-Message-State: AO0yUKWTGxV4wO45B4u/EQtO4nXZ7TZvqqxunO+VPPT9vnenXnDHOv9O 631VHjW5rnbcWQACY+1W4e4GPA== X-Google-Smtp-Source: AK7set/7Pp2tqOQ2/szHXINTGAjb6DfFon3FQLrerUutJRXaLTTaje2OzH5GJaxg+3sk277pS1fg+A== X-Received: by 2002:a05:600c:1d14:b0:3eb:376e:2ba5 with SMTP id l20-20020a05600c1d1400b003eb376e2ba5mr20734092wms.3.1678956844302; Thu, 16 Mar 2023 01:54:04 -0700 (PDT) Received: from [192.168.30.216] ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c22c900b003ed2fd98cc3sm4274352wmg.17.2023.03.16.01.54.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 01:54:03 -0700 (PDT) Message-ID: <6a416627-b4e1-4d23-09a5-ee330755eda6@linaro.org> Date: Thu, 16 Mar 2023 09:54:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 02/10] python: drop pipenv Content-Language: en-US To: John Snow Cc: Paolo Bonzini , qemu-devel@nongnu.org, Jan Richter , peter.maydell@linaro.org, thuth@redhat.com, alex.bennee@linaro.org, armbru@redhat.com, berrange@redhat.com, Beraldo Leal References: <20230222143752.466090-1-pbonzini@redhat.com> <20230222143752.466090-3-pbonzini@redhat.com> <05c4478c-542e-2cb5-3443-f94f1b9dab6a@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 16/3/23 00:02, John Snow wrote: > On Wed, Mar 15, 2023 at 5:17 PM Philippe Mathieu-Daudé > wrote: >> >> +Jan >> >> On 22/2/23 15:37, Paolo Bonzini wrote: >>> From: John Snow >>> >>> The pipenv tool was nice in theory, but in practice it's just too hard >>> to update selectively, and it makes using it a pain. The qemu.qmp repo >>> dropped pipenv support a while back and it's been functioning just fine, >>> so I'm backporting that change here to qemu.git. >>> >>> Signed-off-by: John Snow >>> Signed-off-by: Paolo Bonzini >>> --- >>> .gitlab-ci.d/static_checks.yml | 4 +- >>> python/.gitignore | 4 +- >>> python/Makefile | 53 ++-- >>> python/Pipfile | 13 - >>> python/Pipfile.lock | 347 ------------------------- >>> python/README.rst | 3 - >>> python/setup.cfg | 4 +- >>> python/tests/minreqs.txt | 45 ++++ >>> tests/docker/dockerfiles/python.docker | 1 - >>> 9 files changed, 86 insertions(+), 388 deletions(-) >>> delete mode 100644 python/Pipfile >>> delete mode 100644 python/Pipfile.lock >>> create mode 100644 python/tests/minreqs.txt >>> diff --git a/python/setup.cfg b/python/setup.cfg >>> index 564181570654..9e923d97628f 100644 >>> --- a/python/setup.cfg >>> +++ b/python/setup.cfg >>> @@ -33,9 +33,7 @@ packages = >>> * = py.typed >>> >>> [options.extras_require] >>> -# For the devel group, When adding new dependencies or bumping the minimum >>> -# version, use e.g. "pipenv install --dev pylint==3.0.0". >>> -# Subsequently, edit 'Pipfile' to remove e.g. 'pylint = "==3.0.0'. >>> +# Remember to update tests/minreqs.txt if changing anything below: >>> devel = >>> avocado-framework >= 90.0 >> >> Here >= 90, > > Yes. The "devel" group for the python packages here requires > avocado-framework 90.0 or better... to run the tests *on the python > package*. > >> >>> flake8 >= 3.6.0 >>> diff --git a/python/tests/minreqs.txt b/python/tests/minreqs.txt >>> new file mode 100644 >>> index 000000000000..dfb8abb155f4 >>> --- /dev/null >>> +++ b/python/tests/minreqs.txt >>> @@ -0,0 +1,45 @@ >>> +# This file lists the ***oldest possible dependencies*** needed to run >>> +# "make check" successfully under ***Python 3.6***. It is used primarily >>> +# by GitLab CI to ensure that our stated minimum versions in setup.cfg >>> +# are truthful and regularly validated. >>> +# >>> +# This file should not contain any dependencies that are not expressed >>> +# by the [devel] section of setup.cfg, except for transitive >>> +# dependencies which must be enumerated here explicitly to eliminate >>> +# dependency resolution ambiguity. >>> +# >>> +# When adding new dependencies, pin the very oldest non-yanked version >>> +# on PyPI that allows the test suite to pass. >>> + >>> +# Dependencies for the TUI addon (Required for successful linting) >>> +urwid==2.1.2 >>> +urwid-readline==0.13 >>> +Pygments==2.9.0 >>> + >>> +# Dependencies for FUSE support for qom-fuse >>> +fusepy==2.0.4 >>> + >>> +# Test-runners, utilities, etc. >>> +avocado-framework==90.0 >> >> ... and here == 90. > > Yes. This is the minimum requirements file for the purposes of testing > the python code via CI ("python-check-minreqs"). > It installs *exactly* version 90.0 to ensure that there are no > avocado-framework features used in later versions that have > accidentally slipped in. > >> >> Anyhow I'm surprised by unreviewed commit 4320f7172f >> ("python: bump avocado to v90.0") and we still have: > > The implication being that it wouldn't have passed review? I want to use Avocado 90+ since more than 1 year now as this would make my maintainer life easier, but "something" was missing and Cleber said he'd address that, then we could move to v90. I suppose the qemu.qmp package is not tested on Darwin/macOS, or is not tested with Avocado. >> tests/requirements.txt:5:avocado-framework==88.1 > > Developing the python code needs avocado >= 90, What do you mean by "Developing the python code"? > running the avocado tests needs avocado==88.1. > >> >> 1/ How do you run Avocado tests out of tests/ ? > > "make check-avocado", the same as anyone else, I assume. > >> >> 2/ Can we use Avocado on Darwin/macOS now? I thought we >> needed one series from Cleber [*] for that, which is why >> QEMU is the last project using the 'old' runner (as opposed >> to the 'new' runner which is the upstream /current/ one). > > I have no idea. I'm going to guess that you're wondering if you can > run the avocado *qemu* tests on Darwin/macOS, and I wouldn't know - I > don't develop avocado or those tests, and I don't have a mac. Well currently we can not run Avocado on Darwin/macOS (at least since macOS Big Sur which is where I started).