1 Star 0 Fork 0

fatzhang / moviepy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
find_latest_imagemagick_version.py 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tom Burrows 提交于 2020-04-24 18:31 . Flake8 formatting cleanup (#1151)
import re
from urllib import request
url = "https://legacy.imagemagick.org/script/index.php"
"""This little script parses url above to extract latest image magick version
(major version 6.9), to feed it into CI system. Not the best way for reproducible
builds, but it's preferred for now over storing imagemagick installer into the
git repository
"""
response = request.urlopen(url)
html = response.read().decode(r"utf-8")
r = re.compile(r"6\.9\.[0-9]+-[0-9]+")
version = r.findall(html)
if len(version) == 0:
raise ValueError(
"Could not find latest legacy 6.9.X-Y ImageMagick version from {}".format(url)
)
version = version[0]
# Append Q16 build
version += "-Q16"
print(version)
1
https://gitee.com/fatzhang/moviepy.git
git@gitee.com:fatzhang/moviepy.git
fatzhang
moviepy
moviepy
master

搜索帮助