[med-svn] [Git][med-team/pangolin][master] We need more preconditions

Andreas Tille gitlab at salsa.debian.org
Sat Apr 17 22:12:11 BST 2021



Andreas Tille pushed to branch master at Debian Med / pangolin


Commits:
65914a43 by Andreas Tille at 2021-04-17T23:11:55+02:00
We need more preconditions

- - - - -


3 changed files:

- debian/changelog
- debian/control
- + debian/createmanpages


Changes:

=====================================
debian/changelog
=====================================
@@ -1,6 +1,9 @@
 pangolin (2.0.8-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #975920)
+  Packaged in Salsa: https://salsa.debian.org/med-team/python-lineages
+  TODO: pkg_resources.DistributionNotFound: The 'sklearn' distribution was not found and is required by pangolin
+
   TODO: python3-lineages (https://github.com/cov-lineages/lineages)
     -> just try running `pangolin --help` to see the problem
     Also


=====================================
debian/control
=====================================
@@ -6,7 +6,9 @@ Priority: optional
 Build-Depends: debhelper-compat (= 13),
                dh-python,
                python3-all,
-               python3-setuptools
+               python3-setuptools,
+               python3-lineages,
+               python3-pangolearn
 Standards-Version: 4.5.1
 Vcs-Browser: https://salsa.debian.org/med-team/pangolin
 Vcs-Git: https://salsa.debian.org/med-team/pangolin.git
@@ -18,7 +20,9 @@ Architecture: all
 Depends: ${python3:Depends},
          ${misc:Depends},
          snakemake,
-         python3-sklearn
+         python3-sklearn,
+         python3-lineages,
+         python3-pangolearn
 Description: Phylogenetic Assignment of Named Global Outbreak LINeages
  Pangolin runs a multinomial logistic regression model trained against
  lineage assignments based on GISAID data.


=====================================
debian/createmanpages
=====================================
@@ -0,0 +1,28 @@
+#!/bin/sh
+MANDIR=debian
+mkdir -p $MANDIR
+
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
+NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
+PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
+
+AUTHOR=".SH AUTHOR\n \
+This manpage was written by $DEBFULLNAME for the Debian distribution and\n \
+can be used for any other usage of the program.\
+"
+
+# If program name is different from package name or title should be
+# different from package short description change this here
+progname=${PROGNAME}
+help2man --no-info --no-discard-stderr --help-option=" " \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+echo "$MANDIR/*.1" > debian/manpages
+
+cat <<EOT
+Please enhance the help2man output.
+The following web page might be helpful in doing so:
+    http://liw.fi/manpages/
+EOT



View it on GitLab: https://salsa.debian.org/med-team/pangolin/-/commit/65914a4374a2c64f28783d07c7b551199dccf9d2

-- 
View it on GitLab: https://salsa.debian.org/med-team/pangolin/-/commit/65914a4374a2c64f28783d07c7b551199dccf9d2
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/20210417/769c16ec/attachment-0001.htm>


More information about the debian-med-commit mailing list