From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Stender <bst@pengutronix.de>, Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [RFC] setup: introduce pypi mirror
Date: Thu, 17 Sep 2020 21:34:15 +0200 [thread overview]
Message-ID: <20200917193415.24800-1-rhi@pengutronix.de> (raw)
In-Reply-To: <20200917190925.qx73myzk5hxe567o@pengutronix.de>
Make it possible to use a short macro for all pypi URLs, e.g:
$(call ptx/mirror, PYPI, c/chardet/chardet-2.3.0.tar.gz)
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
Or how about this one, to prevent any diff fuzz? :-)
The default value will redirect to the URL containing the checksum, e.g.
$(call ptx/mirror, PYPI, c/chardet/chardet-2.3.0.tar.gz)
-> https://files.pythonhosted.org/packages/source/c/chardet/chardet-2.3.0.tar.gz
-> https://files.pythonhosted.org/packages/7d/87/4e3a3f38b2f5c578ce44f8dc2aa053217de9f0b6d737739b0ddac38ed237/chardet-2.3.0.tar.gz
which is the same URL that <https://pypi.python.org/packages/source/c/chardet/chardet-2.3.0.tar.gz>
will redirect to.
config/setup/Kconfig | 7 +++++++
config/setup/ptxdistrc.default | 1 +
2 files changed, 8 insertions(+)
diff --git a/config/setup/Kconfig b/config/setup/Kconfig
index 4b1a769daab5..1697d88dee98 100644
--- a/config/setup/Kconfig
+++ b/config/setup/Kconfig
@@ -172,6 +172,13 @@ config SETUP_KERNELMIRROR
help
For all kernel.org related packages enter an available mirror here.
+config SETUP_PYPIMIRROR
+ string
+ default "https://files.pythonhosted.org/packages/source"
+ prompt "Python pypi source mirror"
+ help
+ For all packages available on pypi, enter an available mirror here.
+
choice
prompt "archive check"
default SETUP_CHECK_ALWAYS
diff --git a/config/setup/ptxdistrc.default b/config/setup/ptxdistrc.default
index 29b8bfe37525..7973fdfe40aa 100644
--- a/config/setup/ptxdistrc.default
+++ b/config/setup/ptxdistrc.default
@@ -37,6 +37,7 @@ PTXCONF_SETUP_SFMIRROR="http://downloads.sourceforge.net/sourceforge"
PTXCONF_SETUP_GNUMIRROR="https://ftp.gnu.org/gnu http://ftp.uni-kl.de/pub/gnu"
PTXCONF_SETUP_XORGMIRROR="https://ftp.x.org/archive https://xorg.freedesktop.org/releases"
PTXCONF_SETUP_KERNELMIRROR="https://www.kernel.org/pub/linux http://www.linux-mips.org/pub/linux/mips http://mirror.linux.org.au/linux"
+PTXCONF_SETUP_PYPIMIRROR="https://files.pythonhosted.org/packages/source"
PTXCONF_SETUP_CHECK_ALWAYS=y
# PTXCONF_SETUP_CHECK_NOTEMPTY is not set
# PTXCONF_SETUP_CHECK_NEVER is not set
--
2.28.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2020-09-17 19:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 12:21 [ptxdist] [PATCH 01/10] python3-async-timeout: version bump 2.0.0 -> 3.0.1 Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 02/10] python3-chardet: version bump 2.3.0 -> 3.0.4 Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 03/10] python3-attrs: version bump 19.3.0 -> 20.2.0 Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 04/10] python3-idna: new package Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 05/10] python3-yarl: version bump 0.8.1 -> 1.5.1 Bastian Krause
2020-09-17 19:10 ` Roland Hieber
2020-09-17 12:21 ` [ptxdist] [PATCH 06/10] python3-multidict: version bump 2.1.4 -> 4.7.6 Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 07/10] python3-aiohttp: mark dependencies as RUNTIME Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 08/10] python3-aiohttp: add missing PYTHON3_ATTRS runtime dependency Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 09/10] python3-aiohttp: version bump 3.4.4 -> 3.6.2 Bastian Krause
2020-09-17 12:21 ` [ptxdist] [PATCH 10/10] python3-aiohttp-wsgi: version bump 0.2.5 -> 0.8.2 Bastian Krause
2020-09-17 19:09 ` [ptxdist] [PATCH 01/10] python3-async-timeout: version bump 2.0.0 -> 3.0.1 Roland Hieber
2020-09-17 19:34 ` Roland Hieber [this message]
2020-09-21 8:29 ` [ptxdist] [RFC] setup: introduce pypi mirror Bastian Krause
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200917193415.24800-1-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox