From owner-freebsd-python@freebsd.org Sun May 1 05:39:57 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D712EB25CB7 for ; Sun, 1 May 2016 05:39:57 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B73541983 for ; Sun, 1 May 2016 05:39:57 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id B2E7DB25CB6; Sun, 1 May 2016 05:39:57 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B28AAB25CB5 for ; Sun, 1 May 2016 05:39:57 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 655871982 for ; Sun, 1 May 2016 05:39:57 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by mail-lf0-x234.google.com with SMTP id j8so25488551lfd.2 for ; Sat, 30 Apr 2016 22:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=jGpnZrPCJ0JN0NwoEoQRGneEycM1q5cR5cqKhPRz7ME=; b=uLFMYXwTvUIP89aI5dJxXYZ7Oere6K5VdaoyHlZRVFG+1DnFmzwJi7juajF6Z2PjEz SDdfwgG0a3l7YodSGmKOth5NCxPXJ3Wo1sE8/Z14AwoO8HzaSlBOnneOU8zq88xCxpdu Gyf53loRQEtQBItiv5Fc1u669uHYT3ndBr6vVk501Mwr15NBn8rPl8Q/UfLgSSL3Xlw9 AjKgAGB9A1gIDzKsD36qCzqZWlB6vQVaLjk5AWA4fEtlQH7isr22f4Tm1rkxNqzSN6i6 3eNnViwki6HdAbXWuq1cQY8ATCUDE3coOjrqSE7BIobkL3X3gzfUCtZFQv06MGFq5Mo1 P+SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:subject:message-id :mime-version:content-disposition:user-agent; bh=jGpnZrPCJ0JN0NwoEoQRGneEycM1q5cR5cqKhPRz7ME=; b=emVVUTcEwuvHOAYQpZlIAosn7hS20SkvaiWdsxhWD95DmSlLH9ixE5Kzl/4z8itFqd 8/Vik7hv5N8UdYtL7Mbhn9nWjXe9YyextochVfxYt9jUJl3lR3AvTkrrlG2zX16OszJa j+AiT4L9rSs1PR/kzExuxoJ36my6o6u/Y79fstbbpT1B0s+bHsFwBMYkBcKQGYx2vkJF QyDkLlmH03g3QTNc0aYbl5MjttZXGI4sGqvHWj+WfhbDjBqSdB2NSdbrhKRIdxam845F qjiDz+xqVFFBJXD/DbrUtMx/kSHMMuqVibSFUBIp/IxV/oMdasrLcCUsHqYkM60flCrj C7tQ== X-Gm-Message-State: AOPr4FXUFOMSHSnlQYYBOUaI0UYWclxTzN9WTTUMyGOErszoCYk+GUUok3ra8O3NbckdmQ== X-Received: by 10.112.50.35 with SMTP id z3mr5538028lbn.88.1462081194912; Sat, 30 Apr 2016 22:39:54 -0700 (PDT) Received: from kloomba ([31.29.239.169]) by smtp.gmail.com with ESMTPSA id b4sm3467328lfe.35.2016.04.30.22.39.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Apr 2016 22:39:54 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sun, 1 May 2016 08:39:47 +0300 From: Roman Bogorodskiy To: python@FreeBSD.org Subject: pypi URL schema change Message-ID: <20160501053945.GA2709@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2016 05:39:57 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Recently pypi has changed its URL schema for distfiles. Specifically, it was: /packages/{python version}/{name[0]}/{name}/{filename} and now it is: /packages/{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename} Where hash is blake2b(file_content, digest_size=32).hexdigest().lower() (copy/pasted from [1]). That means that if you have MASTER_SITES= CHEESESHOP it won't be able to fetch newer packages (however, it looks like it's still fine for the previously uploaded packages). As per [1], there's a fix applied on pypi.io that supports the old schema by redirection to a proper URL. However, it looks like fetch(1) is not quite happy about such a direct: => Attempting to fetch https://pypi.io/packages/source/p/positional/positional-1.1.0.tar.gz fetch: https://pypi.io/packages/source/p/positional/positional-1.1.0.tar.gz: Temporary Redirect => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/positional-1.1.0.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/positional-1.1.0.tar.gz: Not Found For now I have to redefine SUBDIR manually with the hash, e.g.: MASTER_SITES= CHEESESHOP MASTER_SITE_SUBDIR= bf/a8/bc656a556a60b76c32830b57279f51714ab7c6366fd243d6ea86b6fcad46 However, it feels a little awkward to keep a long hash like that in the Makefile. Any thoughts if there's a way to avoid that? 1: https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package Roman Bogorodskiy --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXJZahAAoJEMltX/4IwiJqUoAIAJ7NSVoPevEl0JRpa1T0uJgd D2IbHLiFcdqhJ/vovtOCNLmQ7XDnajPghzUDe5ihc4Zf7+afebyeOYYGqlMRENNv qDqvqchkQ+pxNf8jZcn2EqrRJemDtCqny1s1zOqIj/a/GvTNtDRhliwJBF3T786A TDHdaysnc82PaFZKx6ELD9ja/a1psYF+Zqtr3X9rfAFetsB9UeRGtDoTq0zDnZsi FQfPCPwLk5mBGlRdnQFNULqh2qygh2Y6ehQ1Rw3Aj884keNj0OyaSAYWu5OwcXx3 cAtqwLcFm+1zV0Dw676iQwzcLkCRrf9lXAB7UEtMNCt+K/+tebI0RlRU/bVXJio= =8llV -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--