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


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

Re: Uscan: watch and changelog

From Carsten Schoenert <c.schoenert@t-online.de>
Newsgroups linux.debian.maint.python
Subject Re: Uscan: watch and changelog
Date 2024-03-29 16:30 +0100
Message-ID <Inml3-2yoB-1@gated-at.bofh.it> (permalink)
References <Inl5D-2xCL-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am 29.03.24 um 15:05 schrieb c.buhtz@posteo.jp:

> I assume I have not yet understood the purpose of the changelog in
> context of uscan. What do I miss?
> 
> This is "debian/watch":
> 
> version=4
> # RegEx in Perl dialect
> https://codeberg.org/buhtz/hyperorg/archive/v(\d+).(\d+).(\d+).tar.gz
> 
> This is a dummy "debian/changelog":
> 
> hyperorg (0.0-dev) UNRELEASED; urgency=low
> 
>    * Changes made in this version
> 
>   -- Maintainer Name <maintainer@example.com>  Thu, 01 Jul 2021 12:00:00
>   +0000

You need to use "opts=mode=git, ...", see the man page of uscan.

e.g. like this

> $ cat debian/watch
> version=4
> 
> opts="mode=git, \
>       uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/, \
>       dversionmangle=s/\+ds(\.?\d+)?$//" \
> https://codeberg.org/buhtz/hyperorg.git \
>       refs/tags/v(\d+\S+)

And uscan will find the most recent version matching the regexp.

> $ uscan --verbose --no-download 
> uscan info: uscan (version 2.23.7) See uscan(1) for help
> uscan info: Scan watch files in .
> uscan info: Check debian/watch and debian/changelog in .
> uscan info: package="hyperorg" version="0.0-dev" (as seen in debian/changelog)
> uscan info: package="hyperorg" version="0.0" (no epoch/revision)
> uscan info: ./debian/changelog sets package="hyperorg" version="0.0"
> uscan info: Process watch file at: debian/watch
>     package = hyperorg
>     version = 0.0
>     pkg_dir = .
> uscan info: opts: mode=git, uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/, dversionmangle=s/\+ds(\.?\d+)?$//
> uscan info: line: https://codeberg.org/buhtz/hyperorg.git refs/tags/v(\d+\S+)
> uscan info: Parsing mode=git
> uscan info: Parsing  uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/
> uscan info: Parsing  dversionmangle=s/\+ds(\.?\d+)?$//
> uscan info: line: https://codeberg.org/buhtz/hyperorg.git refs/tags/v(\d+\S+)
> uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.0
> uscan info: Last orig.tar.* tarball version (dversionmangled): 0.0
> uscan info: Execute: git ls-remote https://codeberg.org/buhtz/hyperorg.git
> uscan info: Found the following matching refs:
>      refs/tags/v0.1.0 (0.1.0)
>      HEAD ()
>      refs/heads/fix/131subfolders ()
>      refs/heads/fix/30_and_70_links ()
>      refs/heads/latest ()
>      refs/pull/138/head ()
>      refs/pull/139/head ()
> uscan info: Looking at $base = https://codeberg.org/buhtz/hyperorg.git with
>     $filepattern = refs/tags/v(\d+\S+) found
>     $newfile     = refs/tags/v0.1.0
>     $newversion  = 0.1.0
>     $lastversion = 0.0
> uscan info: Upstream URL(+tag) to download is identified as    https://codeberg.org/buhtz/hyperorg.git refs/tags/v0.1.0
> uscan info: Filename (filenamemangled) for downloaded file: hyperorg-0.1.0.tar.xz
> Newest version of hyperorg on remote site is 0.1.0, local version is 0.0
>  => Newer package available from:
>         => https://codeberg.org/buhtz/hyperorg.git refs/tags/v0.1.0
> uscan info: Scan finished

-- 
Regards
Carsten

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next 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