mirror of
https://github.com/pyenv/pyenv.git
synced 2026-01-15 09:17:14 +09:00
(refactor)
This commit is contained in:
parent
99faf7f217
commit
ff94d498db
@ -124,20 +124,25 @@ def add_version(release, distributions):
|
|||||||
else:
|
else:
|
||||||
logger.info('Did not find specs for %(distribution)s', locals())
|
logger.info('Did not find specs for %(distribution)s', locals())
|
||||||
|
|
||||||
for release in requests.get(f'https://api.github.com/repos/{MINIFORGE_REPO}/releases').json():
|
|
||||||
version = release['tag_name']
|
|
||||||
|
|
||||||
if version in SKIPPED_RELEASES:
|
def main():
|
||||||
continue
|
for release in requests.get(f'https://api.github.com/repos/{MINIFORGE_REPO}/releases').json():
|
||||||
|
version = release['tag_name']
|
||||||
|
|
||||||
logger.info('Looking for %(version)s in %(out_dir)s', locals())
|
if version in SKIPPED_RELEASES:
|
||||||
|
continue
|
||||||
|
|
||||||
# mambaforge is retired https://github.com/conda-forge/miniforge/releases/tag/24.11.2-0
|
logger.info('Looking for %(version)s in %(out_dir)s', locals())
|
||||||
if version_tuple(version) >= (24,11,2):
|
|
||||||
distributions = DISTRIBUTIONS
|
|
||||||
else:
|
|
||||||
distributions = DISTRIBUTIONS_PRE25
|
|
||||||
|
|
||||||
if any(not list(out_dir.glob(f'{distribution}*-{version}')) for distribution in distributions):
|
# mambaforge is retired https://github.com/conda-forge/miniforge/releases/tag/24.11.2-0
|
||||||
logger.info('Downloading %(version)s', locals())
|
if version_tuple(version) >= (24, 11, 2):
|
||||||
add_version(release, distributions)
|
distributions = DISTRIBUTIONS
|
||||||
|
else:
|
||||||
|
distributions = DISTRIBUTIONS_PRE25
|
||||||
|
|
||||||
|
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