Commit 8f9dc16c authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Python modules 20200501

parent a977827f
......@@ -17,7 +17,7 @@ url = https://github.com/pypa/pip.git
repo_name = pip
versions = 7.1.2 8.1.1 9.0.1 19.2.3 19.3.1
versions = 7.1.2 8.1.1 9.0.1 19.2.3 19.3.1 20.1
suffix = tar.gz
TAGS = $(versions)
......
#
# Project Home:
# ============
# https://pip.pypa.io
#
# Downloads:
# =========
# https://pypi.python.org/pypi/pip
# https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz
#
url = https://pypi.python.org/packages/source/p/pip
versions = 7.1.2 8.1.1
pkgname = pip
suffix = tar.gz
tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(tarballs) $(sha1s)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for version in $(versions) ; do \
wget -N $(url)/$(pkgname)-$$version.$(suffix) ; \
done
$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
......@@ -16,7 +16,7 @@ url = https://github.com/pypa/setuptools.git
repo_name = setuptools
versions = 20.10.1 38.2.4 41.2.0 41.6.0
versions = 20.10.1 38.2.4 41.2.0 41.6.0 46.1.3
suffix = tar.gz
TAGS = $(versions)
......
#
# Project Home:
# ============
# https://pypi.python.org/pypi/setuptools
#
# Downloads:
# =========
# https://github.com/pypa/setuptools/releases
#
url = https://github.com/pypa/setuptools/archive
versions = 20.10.1
pkgname = setuptools
suffix = tar.gz
tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(tarballs) $(sha1s)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for version in $(versions) ; do \
wget -N $(url)/v$$version.$(suffix) ; \
mv v$$version.$(suffix) $(pkgname)-$$version.$(suffix) ; \
done
$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
......@@ -17,7 +17,7 @@ url = https://github.com/pypa/wheel.git
repo_name = wheel
versions = 0.29.0 0.30.0 0.33.6
versions = 0.29.0 0.30.0 0.33.6 0.34.2
suffix = tar.xz
TAGS = $(versions)
......
#
# Project Home:
# ============
# https://pypi.python.org/pypi/wheel
# https://bitbucket.org/pypa/wheel
#
# BitBucket.org:
# =============
# hg clone https://bitbucket.org/pypa/wheel
#
url = https://bitbucket.org/pypa
repo_name = wheel
versions = 0.29.0
pkgname = wheel
suffix = tar.xz
hg_repo = .hg_clone
tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(hg_repo):
@echo -e "\n======= Clone $(repo_name) repository =======\n"
@rm -rf $(repo_name)
@hg clone -b default $(url)/$(repo_name) $(repo_name)
@touch $@
$(tarballs): $(hg_repo)
@for version in $(versions) ; do \
if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
( cd $(repo_name) && \
hg archive --type tar --prefix $(repo_name)-$$version --rev $$version - | \
xz >../$(repo_name)-$$version.$(suffix) ) ; \
fi ; \
done
$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(sha1s)
@echo -e "\n======= Remove cloned $(repo_name) repository =======\n"
@rm -rf $(hg_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(hg_repo) $(repo_name)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment