mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Use walrus operator and explicitly require python >= 3.8
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
This commit is contained in:
parent
6f5870787a
commit
ca011221cf
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ async def get_version(name, conf, *, cache, **kwargs):
|
|||
|
||||
for version in data['releases'].keys():
|
||||
# Skip versions that are marked as yanked.
|
||||
if len(data['releases'][version]) != 0 and data['releases'][version][0]['yanked']:
|
||||
if (vers := data['releases'][version]) and vers[0]['yanked']:
|
||||
continue
|
||||
|
||||
try:
|
||||
|
|
|
@ -39,10 +39,10 @@ classifiers =
|
|||
|
||||
[options]
|
||||
zip_safe = True
|
||||
python_requires = >=3.8
|
||||
|
||||
packages = find_namespace:
|
||||
install_requires =
|
||||
setuptools; python_version<"3.8"
|
||||
tomli; python_version<"3.11"
|
||||
structlog
|
||||
platformdirs
|
||||
|
|
Loading…
Add table
Reference in a new issue