Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Fioddor Superconcentrado Newsgroups: linux.debian.maint.python Subject: Re: How to watch pypi.org Date: Fri, 30 Oct 2020 15:10:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Oct 30 14:08:10 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hKg08YNfGZarQuI6DvLTsa7nGbZbCDbxUS3Forw1OOk=; b=WehkEbDjM6km0nAjdIbH9rpoiG9yZJJv8bdoe8bYHtskvLuX/78eE9CT2pnHn8CuZL 837Btu388LczY4+X7YeSDA25x+9a06Rtimw6xhoYRS/3Y3MXuzpsPceSyNYoqQQaT8q+ nF1kW0Y0L3pmtTiCOSMpaPhBSFJPpvl1lLR18eL9g3hq4OA6OXNX02M122pe/DoNZyC4 lvspKKKwlW1oTjs4IVWdRynuvxRJLVGIGlWD4ya5FSg8ZDzkJRCUH4ixlgm5x6wulGw8 JAAfJEXPu5QAaKod3XihhfAlPH+j4K2WJKdbC3jsLCfnJgsFkOk9pwggcwFN4nG00Y4O 0v2w== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hKg08YNfGZarQuI6DvLTsa7nGbZbCDbxUS3Forw1OOk=; b=IqDKGY+994R2lfv8dPVr/UhW99iW2eXaYx2ag7eXP0aT/rjM8oGGmYyxjEUJ3vmV1Z DcNmb7/J19w6V8/0e3SS1lx2iChySzEBS9q/rDVR3LcKG8UhRmWZkOivNdsTp0PHBpWq 05AxLCxSZP+lf18IG3Fquv/X3gjlnzKXpDnBUFRcW0foFzCoF/NNyLxP9WEc3sVoG0dt BG6jF95o+MlW1FD2cvscBpsYijppBvBI7O1qtp9VjBjFHsEN8Y0L8GUe9aVF5CzDvNQI 0yMS5n33RwWz+H6lUCcjinViilpkVdA+h391nZpssig45DYg3cbtP1RjwEgH9pC2uHyG qOAA== X-Gm-Message-State: AOAM531uo/BEaU4RxNWE+iVBDOHwQV/E4iPLhCxlxP3RyV0GI/Ubv+jf 4k2msZvGsDr6FI5CiqtPhe2/fYQwi9kmQ6BrML1n6FQRVoE= X-Google-SMTP-Source: ABdhPJzEaEm8p2GqXdT6MD+53HTfto5foZ1q/TQt4gkc1cHKvnXJzKAu0RDCjkTiesk+QXnqrZU3Q4H+211bY5q0Ui4= X-Received: by 2002:ac8:7517:: with SMTP id u23mr2294826qtq.261.1604066875287; Fri, 30 Oct 2020 07:07:55 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004c2b6f05b2e3ec4c" X-Mailing-List: archive/latest/18748 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAOh_QLfGtRgXcsfajUNFFiKLNisL8cHi4-0zNEBp=nmPhzYSyA@mail.gmail.com Approved: robomod@news.nic.it Lines: 159 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 30 Oct 2020 15:07:43 +0100 X-Original-Message-ID: X-Original-References: <20201004154429.6lobmec2mib3a3sq@gpm.stappers.nl> Xref: csiph.com linux.debian.maint.python:12983 --0000000000004c2b6f05b2e3ec4c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you as well, Geert. And yes. It has taken me some time to come back to this issue but I've tested and seems to work fine. El dom., 4 oct. 2020 a las 17:44, Geert Stappers () escribi=C3=B3: > 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/9848a2d631dad70d7ea582540f0= 619e1a7ecf31b3a117de9d9f2b6b28029/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=3D4 > https://pypi.python.org/packages/source/// \ > -(.+)\.tar\.gz debian uupdate > > For cfn-sphere, set the watch file as: > > version=3D4 > 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=3D4 > opts=3D"pgpmode=3Dnone" \ > 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 > > --0000000000004c2b6f05b2e3ec4c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you as well, Geert.
And yes. It has t= aken me some time to come back to this issue but I've tested and seems = to work fine.

El dom., 4 oct. 2020 a las 17:44, Geert Stappers (<stappers@stappers.nl>) escribi= =C3=B3:
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.o= rg/packages/d6/72/9848a2d631dad70d7ea582540f0619e1a7ecf31b3a117de9d9f2b6b28= 029/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.
(=C2=A0 uscan is the utility reads debian/watch for watching. )


=C2=A0 =C2=A0PyPI
=C2=A0 =C2=A0 =C2=A0 =C2=A0For PyPI based projects, pypi.debian.net runs a= redirector
=C2=A0 =C2=A0 =C2=A0 =C2=A0which allows a simpler form of URL. The format b= elow will
=C2=A0 =C2=A0 =C2=A0 =C2=A0automatically be rewritten to use the redirector= with the watch
=C2=A0 =C2=A0 =C2=A0 =C2=A0file:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0version=3D4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https://pypi.python.org/pa= ckages/source/<initial>/<project>/ \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<tar-name>-(.+)\.tar\= .gz debian uupdate

=C2=A0 =C2=A0 =C2=A0 =C2=A0For cfn-sphere, set the watch file as:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0version=3D4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https://pypi.= python.org/packages/source/c/cfn-sphere/ \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cfn-sphere-([\d\.]+).tar.gz= debian uupdate

=C2=A0 =C2=A0 =C2=A0 =C2=A0Please note, you can still use normal functional= ities of uscan
=C2=A0 =C2=A0 =C2=A0 =C2=A0to set up a watch file for this site without usi= ng the
=C2=A0 =C2=A0 =C2=A0 =C2=A0redirector.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0version=3D4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0opts=3D"pgpmode=3Dnone" \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https://pypi= .python.org/pypi/cfn-sphere/ \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0https:/= /pypi.python.org/packages/.*/.*/.*/\
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cfn-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

--0000000000004c2b6f05b2e3ec4c--