Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Geert Stappers Newsgroups: linux.debian.maint.python Subject: Re: How to watch pypi.org Date: Sun, 04 Oct 2020 17:50:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Oct 4 15:44:44 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1] autolearn=ham autolearn_force=no MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Mailing-List: archive/latest/18676 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20201004154429.6lobmec2mib3a3sq@gpm.stappers.nl Approved: robomod@news.nic.it Lines: 51 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 4 Oct 2020 17:44:29 +0200 X-Original-Message-ID: <20201004154429.6lobmec2mib3a3sq@gpm.stappers.nl> X-Original-References: Xref: csiph.com linux.debian.maint.python:12917 On Sun, Oct 04, 2020 at 05:28:57PM +0200, Fioddor Superconcentrado wrote: > I've packaged a project provided via https://pipi.org and I wanted to > create a debian/watch file but pipi.org publishes the tarball behind a > strange url like > > https://files.pythonhosted.org/packages/d6/72/9848a2d631dad70d7ea582540f0619e1a7ecf31b3a117de9d9f2b6b28029/django-settings-export-1.2.1.tar.gz > > I guess pypi.org is a common source of python code so perhaps there's > already a solution for this. Quoting the manual page of uscan. ( uscan is the utility reads debian/watch for watching. ) PyPI For PyPI based projects, pypi.debian.net runs a redirector which allows a simpler form of URL. The format below will automatically be rewritten to use the redirector with the watch file: version=4 https://pypi.python.org/packages/source/// \ -(.+)\.tar\.gz debian uupdate For cfn-sphere, set the watch file as: version=4 https://pypi.python.org/packages/source/c/cfn-sphere/ \ cfn-sphere-([\d\.]+).tar.gz debian uupdate Please note, you can still use normal functionalities of uscan to set up a watch file for this site without using the redirector. version=4 opts="pgpmode=none" \ https://pypi.python.org/pypi/cfn-sphere/ \ https://pypi.python.org/packages/.*/.*/.*/\ cfn-sphere-([\d\.]+).tar.gz#.* debian uupdate > Thanks in advanced. Looking forward to something like "OK, that works" Regards Geert Stappers -- Silence is hard to parse