[med-svn] [Git][med-team/community/package_template][master] 2 commits: Pypi example

Andreas Tille (@tille) gitlab at salsa.debian.org
Sat Jan 31 06:32:23 GMT 2026



Andreas Tille pushed to branch master at Debian Med / community / package_template


Commits:
188dfa40 by Andreas Tille at 2026-01-31T07:32:13+01:00
Pypi example

- - - - -
20539858 by Andreas Tille at 2026-01-31T07:32:13+01:00
convert-watch also seeks d/copyright for Github URLs

- - - - -


2 changed files:

- convert-watch5
- debian/watch


Changes:

=====================================
convert-watch5
=====================================
@@ -11,7 +11,6 @@ case "$homepage" in
     project=$(echo "$homepage" | cut -d/ -f5)
     ;;
   *)
-    echo "Warning: Homepage is not a GitHub URL: $homepage" >&2
     watch=$(grep -o 'https://github.com/[^/]\+/[^[:space:]]*' debian/watch | sed 's/\.git//')
     case "$watch" in
       https://github.com/*/*)
@@ -19,9 +18,18 @@ case "$homepage" in
         project=$(echo "$watch" | cut -d/ -f5)
         ;;
     *)
-        echo "Error: watch file is not pointing to GitHub: $homepage" >&2
-        exit 1
-        ;;
+        echo "Warning: Homepage is not a GitHub URL: $homepage; watch does not point to github" >&2
+        source=$(grep -E '^Source:' debian/copyright | awk '{print $2}')
+        case "$source" in
+	    https://github.com/*/*)
+		owner=$(echo "$source" | cut -d/ -f4)
+		project=$(echo "$source" | cut -d/ -f5)
+		;;
+	    *)
+	        echo "Error: Source not pointing to github: $source" >&2
+    		exit 1
+	        ;;
+	    esac
     esac
     ;;
 esac


=====================================
debian/watch
=====================================
@@ -64,11 +64,9 @@ Mode: git
 # opts="mode=git,pretty=0.0+git%cd.%h" \
 #   https://github.com/#GITHUBUSER#/#PACKAGE#.git HEAD
 
-# PyPi repository of Python modules
-#  see https://lists.debian.org/debian-python/2015/02/msg00027.html
-# http://pypi.debian.net/#module#/#module#-@ANY_VERSION@@ARCHIVE_EXT@
-#   better
-# https://pypi.python.org/simple/#module# .*/#module#- at ANY_VERSION@@ARCHIVE_EXT@#sha256=.*
+Pgp-Mode: auto
+Source: https://pypi.debian.net/@PACKAGE@/
+Matching-Pattern: @PACKAGE at -@ANY_VERSION@@ARCHIVE_EXT@
 
 # Bitbucket
 # https://bitbucket.org/#user#/#project#/downloads .*/@ANY_VERSION@@ARCHIVE_EXT@



View it on GitLab: https://salsa.debian.org/med-team/community/package_template/-/compare/f3eab2e7962149aae94a449e708f3590f22d9b73...205398583a639591a08c3b16329b586967e9ec81

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/package_template/-/compare/f3eab2e7962149aae94a449e708f3590f22d9b73...205398583a639591a08c3b16329b586967e9ec81
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260131/f3edbf05/attachment-0001.htm>


More information about the debian-med-commit mailing list