Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15678

Re: Uscan: watch and changelog

Path csiph.com!tncsrv06.tnetconsulting.net!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Paul Boddie <paul@boddie.org.uk>
Newsgroups linux.debian.maint.python
Subject Re: Uscan: watch and changelog
Date Fri, 29 Mar 2024 18:20:01 +0100
Message-ID <Ino3v-2zvm-3@gated-at.bofh.it> (permalink)
References <Inl5D-2xCL-3@gated-at.bofh.it> <Inml3-2yoB-1@gated-at.bofh.it> <InnqO-2z2r-7@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Mar 29 17:18:57 2024
Old-Return-Path <paul@boddie.org.uk>
X-Amavis-Spam-Status No, score=-6.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, URIBL_BLACK=1.7] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Greylist delayed 431 seconds by postgrey-1.36 at bendel; Fri, 29 Mar 2024 17:18:37 UTC
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="us-ascii"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/21689
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/2199504.hvDNag05Ju@jason
Approved robomod@news.nic.it
Lines 65
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 29 Mar 2024 18:11:16 +0100
X-Original-Message-ID <2199504.hvDNag05Ju@jason>
X-Original-References <4V5hyG6V92z9rxM@submission02.posteo.de> <145aea4b-f7fc-4bbd-944b-3620794ee3b6@t-online.de> <4V5mMF182Xz6tyK@submission01.posteo.de>
Xref csiph.com linux.debian.maint.python:15678

Show key headers only | View raw


On Friday, 29 March 2024 17:39:04 CET c.buhtz@posteo.jp wrote:
> 
> On 2024-03-29 16:23 Carsten Schoenert <c.schoenert@t-online.de> wrote:
> > You need to use "opts=mode=git, ...", see the man page of uscan.
> 
> Are you sure. For example this watch file do not use "opts="
> https://sources.debian.org/src/backintime/1.4.3-1/debian/watch/

If I look at your releases page, I see that you have one release that you will 
probably be wanting to package:

https://codeberg.org/buhtz/hyperorg/releases

However, uscan seems to be driven by the debian/changelog and debian/watch 
files, with the former supplying the version or release to be searched for, 
and the latter specifying the mechanism by which the searching will occur.

So, I imagine that your debian/changelog would need an entry starting with 
something like this:

hyperorg (0.1.0-1) unstable; urgency=low

If you hadn't tagged a release in the repository, then you would probably have 
to invent a suitable version number based on the changeset identifier. 
Something like this perhaps:

hyperorg (0.1.0+git20240329.4a77811214-1) unstable; urgency=low

Here, I've used the changeset identifier of 4a77811214 which is the latest 
commit that I can see, and that hopefully serves to illustrate the principle.

I suppose that the watch file would then need to use the "mode=git" option.

[...]

> > And uscan will find the most recent version matching the regexp.
> 
> I see 3 different regex patterns in this line. Why?

I must admit to just copying the recommended patterns for my packaging 
exercises, largely because although I can happily explore the process of 
downloading a Web page - in your case, the one mentioned above - and parsing 
the HTML to get at the download links, I assume that someone has already done 
that hard work.

But to answer your question, what is happening is that the release or version 
from the changelog is transformed into something that might appear on the 
downloaded page. You need to get from "hyperorg-0.1.0-1" to this:

https://codeberg.org/buhtz/hyperorg/archive/v0.1.0.tar.gz

Or if a specific changeset is involved, the process is a bit more complicated, 
but would involve transforming "hyperorg-0.1.0+git20240329.4a77811214-1" into 
this:

https://codeberg.org/buhtz/hyperorg/archive/
4a77811214e5bd73247a197dbb5d1a4367c99109.tar.gz

To summarise, uscan is just searching a page listing releases or, in the 
second case, a specific Web page for an appropriate download that it can then 
obtain.

Hope this helps a little!

Paul

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-29 15:10 +0100
  Re: Uscan: watch and changelog Andrey Rakhmatullin <wrar@debian.org> - 2024-03-29 15:30 +0100
  Re: Uscan: watch and changelog Andrey Rakhmatullin <wrar@debian.org> - 2024-03-29 15:30 +0100
  Re: Uscan: watch and changelog Andrey Rakhmatullin <wrar@debian.org> - 2024-03-29 15:30 +0100
    Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-29 17:40 +0100
  Re: Uscan: watch and changelog Carsten Schoenert <c.schoenert@t-online.de> - 2024-03-29 16:30 +0100
    Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-29 17:40 +0100
      Re: Uscan: watch and changelog Carsten Schoenert <c.schoenert@t-online.de> - 2024-03-29 18:10 +0100
        Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-29 18:20 +0100
          Re: Uscan: watch and changelog Soren Stoutner <soren@debian.org> - 2024-03-29 19:30 +0100
            Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-29 21:20 +0100
              Re: Uscan: watch and changelog Soren Stoutner <soren@debian.org> - 2024-03-29 21:50 +0100
                Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-03-31 15:40 +0200
                Re: Uscan: watch and changelog Michael Stehmann <michael@canzeley.de> - 2024-03-31 16:20 +0200
                Re: Uscan: watch and changelog Paul Boddie <paul@boddie.org.uk> - 2024-03-31 17:20 +0200
                Re: Uscan: watch and changelog <c.buhtz@posteo.jp> - 2024-04-06 09:50 +0200
      Re: Uscan: watch and changelog Paul Boddie <paul@boddie.org.uk> - 2024-03-29 18:20 +0100

csiph-web