From: John Snow <jsnow@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
qemu-devel@nongnu.org
Cc: "Kevin Wolf" <kwolf@redhat.com>, "Thomas Huth" <thuth@redhat.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
qemu-block@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Max Reitz" <mreitz@redhat.com>,
"Willian Rampazzo" <willianr@redhat.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH v7 17/31] python: add pylint to pipenv
Date: Wed, 26 May 2021 14:31:59 -0400 [thread overview]
Message-ID: <c279e517-2c35-d294-1a86-03502c1c97a3@redhat.com> (raw)
In-Reply-To: <75ef5c16-eac7-1d67-b140-5c02d209327b@virtuozzo.com>
On 5/26/21 5:14 AM, Vladimir Sementsov-Ogievskiy wrote:
> 26.05.2021 03:24, John Snow wrote:
>> We are specifying >= pylint 2.8.x for several reasons:
>>
>> 1. For setup.cfg support, added in pylint 2.5.x
>> 2. To specify a version that has incompatibly dropped
>> bad-whitespace checks (2.6.x)
>> 3. 2.7.x fixes "unsubscriptable" warnings in Python 3.9
>> 4. 2.8.x adds a new, incompatible 'consider-using-with'
>> warning that must be disabled in some cases.
>> These pragmas cause warnings themselves in 2.7.x.
>>
>> Signed-off-by: John Snow <jsnow@redhat.com>
>
> Not sure how to review this one, numbers looks like numbers, hashes
> looks like hashes, so it's OK :)
>
Thanks for going down the list of unreviewed patches :) the change in v7
from v6 here is requiring pylint > 2.8.0 for the venv, I used to ask
only for 2.7.0.
I have no idea how to review these lockfiles either. I don't scrutinize
them too closely -- just as long as they appear to work in the CI
environment, I am happy.
> I've tried to regenerate Pipfile.lock from venv, and I see that new
> generated Pipfile.lock has same hashes..
>
> Still, new generated Pipfile.lock has some additional entries: appdirs,
> distlib, filelock, importlib-resources, packaging, pluggy, py,
> pyparsing, six, tox, virtualenv.. Not sure is it OK.
>
If you did that at the *end* of the series, it's because I added tox as
a development requirement, but didn't update the Pipenv -- because we
don't actually use tox *in* the venv.
However, I wanted 'pip install .[devel]' to work, so it needs to pull in
tox there.
Eventually, I'll update the Pipenv for some other reason and it'll
probably pull in Tox at that point -- maybe a little wasteful, but not
harmful.
> Another differencies are:
>
> for importlib-metadata:
>
> "markers": "python_version < '3.8'" -> "markers": "python_version
> < '3.8' and python_version < '3.8'"
>
> (looks like a bug in pipenv, isn't it)
>
Or at least a version difference. TBQH I do not understand what these
markers mean, but they DO seem volatile. I decided not to worry about
them, as long as Pipenv seems to do the right thing ...
> for zipp:
> "markers": "python_version >= '3.6'" -> "markers": "python_version
> < '3.10'"
>
>
> The thing I hope is: we will not have commits like this one often..
>
Only when make-check-pipenv starts to fail for some reason and I need to
update the dependencies. Hopefully not extremely often ... if it becomes
too much of a pain I will just get rid of it.
I'm not 100% confident this will help more than it hurts yet, but I'll
find out over the next release or two.
>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
>
>
Thanks :)
next prev parent reply other threads:[~2021-05-26 18:36 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 0:24 [PATCH v7 00/31] python: create installable package John Snow
2021-05-26 0:24 ` [PATCH v7 01/31] python/console_socket: avoid one-letter variable John Snow
2021-05-26 0:24 ` [PATCH v7 02/31] python/machine: use subprocess.DEVNULL instead of open(os.path.devnull) John Snow
2021-05-26 0:24 ` [PATCH v7 03/31] python/machine: use subprocess.run instead of subprocess.Popen John Snow
2021-05-26 0:24 ` [PATCH v7 04/31] python/console_socket: Add a pylint ignore John Snow
2021-05-26 0:24 ` [PATCH v7 05/31] python/machine: Disable pylint warning for open() in _pre_launch John Snow
2021-05-26 0:24 ` [PATCH v7 06/31] python/machine: disable warning for Popen in _launch() John Snow
2021-05-26 0:24 ` [PATCH v7 07/31] python/machine: Trim line length to below 80 chars John Snow
2021-05-26 8:08 ` Vladimir Sementsov-Ogievskiy
2021-05-27 16:01 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 08/31] iotests/297: add --namespace-packages to mypy arguments John Snow
2021-05-26 0:24 ` [PATCH v7 09/31] python: create qemu packages John Snow
2021-05-26 8:08 ` Vladimir Sementsov-Ogievskiy
2021-05-27 16:03 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 10/31] python: add qemu package installer John Snow
2021-05-26 8:26 ` Vladimir Sementsov-Ogievskiy
2021-05-27 16:05 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 11/31] python: add VERSION file John Snow
2021-05-26 0:24 ` [PATCH v7 12/31] python: add directory structure README.rst files John Snow
2021-05-26 0:24 ` [PATCH v7 13/31] python: add MANIFEST.in John Snow
2021-05-26 8:31 ` Vladimir Sementsov-Ogievskiy
2021-05-27 16:06 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 14/31] python: Add pipenv support John Snow
2021-05-26 0:24 ` [PATCH v7 15/31] python: add pylint import exceptions John Snow
2021-05-26 0:24 ` [PATCH v7 16/31] python: move pylintrc into setup.cfg John Snow
2021-05-26 0:24 ` [PATCH v7 17/31] python: add pylint to pipenv John Snow
2021-05-26 9:14 ` Vladimir Sementsov-Ogievskiy
2021-05-26 18:31 ` John Snow [this message]
2021-05-27 16:11 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 18/31] python: move flake8 config to setup.cfg John Snow
2021-05-26 0:24 ` [PATCH v7 19/31] python: add excluded dirs to flake8 config John Snow
2021-05-26 0:24 ` [PATCH v7 20/31] python: Add flake8 to pipenv John Snow
2021-05-26 0:24 ` [PATCH v7 21/31] python: move mypy.ini into setup.cfg John Snow
2021-05-26 0:24 ` [PATCH v7 22/31] python: add mypy to pipenv John Snow
2021-05-26 0:24 ` [PATCH v7 23/31] python: move .isort.cfg into setup.cfg John Snow
2021-05-26 0:24 ` [PATCH v7 24/31] python/qemu: add isort to pipenv John Snow
2021-05-26 0:24 ` [PATCH v7 25/31] python/qemu: add qemu package itself " John Snow
2021-05-26 0:24 ` [PATCH v7 26/31] python: add devel package requirements to setuptools John Snow
2021-05-26 0:24 ` [PATCH v7 27/31] python: add avocado-framework and tests John Snow
2021-05-26 0:24 ` [PATCH v7 28/31] python: add Makefile for some common tasks John Snow
2021-05-26 0:24 ` [PATCH v7 29/31] python: add .gitignore John Snow
2021-05-26 9:18 ` Vladimir Sementsov-Ogievskiy
2021-05-26 18:20 ` John Snow
2021-05-27 16:12 ` Cleber Rosa
2021-05-26 0:24 ` [PATCH v7 30/31] python: add tox support John Snow
2021-05-26 0:24 ` [PATCH v7 31/31] gitlab: add python linters to CI John Snow
2021-05-26 9:33 ` Vladimir Sementsov-Ogievskiy
2021-05-26 18:24 ` John Snow
2021-05-26 18:47 ` Vladimir Sementsov-Ogievskiy
2021-05-26 19:43 ` John Snow
2021-05-26 19:56 ` John Snow
2021-05-27 16:17 ` Cleber Rosa
2021-05-27 16:40 ` Cleber Rosa
2021-05-26 15:32 ` Alex Bennée
2021-05-26 18:21 ` John Snow
2021-05-27 17:02 ` Cleber Rosa
2021-05-27 18:29 ` John Snow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c279e517-2c35-d294-1a86-03502c1c97a3@redhat.com \
--to=jsnow@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=f4bug@amsat.org \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=vsementsov@virtuozzo.com \
--cc=wainersm@redhat.com \
--cc=willianr@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).