mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
16 lines
343 B
Python
16 lines
343 B
Python
# MIT licensed
|
|
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
|
|
|
|
from .simple_json import simple_json
|
|
|
|
# Using metacpan
|
|
CPAN_URL = 'https://fastapi.metacpan.org/release/%s'
|
|
|
|
def _version_from_json(data):
|
|
return str(data['version'])
|
|
|
|
get_version, get_cacheable_conf = simple_json(
|
|
CPAN_URL,
|
|
'cpan',
|
|
_version_from_json,
|
|
)
|