mirror of
https://github.com/pyenv/pyenv.git
synced 2026-01-29 23:57:32 +09:00
(refactor)
This commit is contained in:
parent
99faf7f217
commit
ff94d498db
@ -124,6 +124,8 @@ def add_version(release, distributions):
|
||||
else:
|
||||
logger.info('Did not find specs for %(distribution)s', locals())
|
||||
|
||||
|
||||
def main():
|
||||
for release in requests.get(f'https://api.github.com/repos/{MINIFORGE_REPO}/releases').json():
|
||||
version = release['tag_name']
|
||||
|
||||
@ -141,3 +143,6 @@ for release in requests.get(f'https://api.github.com/repos/{MINIFORGE_REPO}/rele
|
||||
if any(not list(out_dir.glob(f'{distribution}*-{version}')) for distribution in distributions):
|
||||
logger.info('Downloading %(version)s', locals())
|
||||
add_version(release, distributions)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user