File: mercurial.py

package info (click to toggle)
python-nvchecker 2.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 736 kB
  • sloc: python: 4,801; makefile: 25
file content (10 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# MIT licensed
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.

async def get_version(name, conf, *, cache, **kwargs):
  url = conf['mercurial'] + '/json-tags'

  data = await cache.get_json(url)

  version = [tag['tag'] for tag in data['tags']]
  return version