mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-16 02:16:49 +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
@ -20,7 +20,7 @@ async def get_version(name, conf, *, cache, **kwargs):
|
|||||||
|
|
||||||
for version in data['releases'].keys():
|
for version in data['releases'].keys():
|
||||||
# Skip versions that are marked as yanked.
|
# 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
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -39,10 +39,10 @@ classifiers =
|
|||||||
|
|
||||||
[options]
|
[options]
|
||||||
zip_safe = True
|
zip_safe = True
|
||||||
|
python_requires = >=3.8
|
||||||
|
|
||||||
packages = find_namespace:
|
packages = find_namespace:
|
||||||
install_requires =
|
install_requires =
|
||||||
setuptools; python_version<"3.8"
|
|
||||||
tomli; python_version<"3.11"
|
tomli; python_version<"3.11"
|
||||||
structlog
|
structlog
|
||||||
platformdirs
|
platformdirs
|
||||||
|
Loading…
Reference in New Issue
Block a user