Update qute-pylint requirements regex for new setuptools.

In `pylint_checkers/setup.py` we define the package name as `qute_pylint`. When
setuptools was creating the egg (or wheel?) it was sanitizing the package name
replacing all problematic chars, including underscore, with a hyphen (-). So
the output of `pip freeze`, among other things, have the name with a hyphen:
`qute-pylint`. This was fixed in setuptools so underscores are no longer
sanitized: https://github.com/pypa/setuptools/issues/2522

Change the regex to include both just in case someone is running it with the
old setuptools or something. Also because I'm not able to reproduce the
hyphen version of the name locally, not sure why. Maybe it depends on your
python or importlib version too?
This commit is contained in:
toofar 2023-12-26 14:07:24 +13:00
parent ecdb2bfe88
commit 19204f441e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ pycparser==2.21
PyJWT==2.8.0
pylint==3.0.3
python-dateutil==2.8.2
qute_pylint @ file:///home/runner/work/qutebrowser/qutebrowser/scripts/dev/pylint_checkers
./scripts/dev/pylint_checkers
requests==2.31.0
six==1.16.0
tomli==2.0.1

View File

@ -6,7 +6,7 @@ github3.py
pefile
# fix qute-pylint location
#@ replace: qute-pylint.* ./scripts/dev/pylint_checkers
#@ replace: qute[_-]pylint.* ./scripts/dev/pylint_checkers
#@ markers: typed-ast python_version<"3.8"
# Already included via test requirements