[med-svn] [Git][med-team/python-sinfo][copyright] 7 commits: modified control and rules file

Robbi Nespu gitlab at salsa.debian.org
Fri Feb 26 06:13:15 GMT 2021



Robbi Nespu  pushed to branch copyright at Debian Med / python-sinfo


Commits:
884268bd by robbinespu at 2021-02-23T20:40:56+08:00
modified control and rules file

- - - - -
a93cada9 by Andreas Tille at 2021-02-24T11:31:47+01:00
New upstream version 0.3.1
- - - - -
2b5183d3 by Nilesh Patra at 2021-02-24T19:54:29+05:30
Add autopkgtest

- - - - -
4d01a006 by Nilesh Patra at 2021-02-24T19:57:11+05:30
sinfo seems to need a build-deps on python3-stdlib-list

- - - - -
86263f02 by Nilesh Patra at 2021-02-24T19:59:47+05:30
Declare compliance with policy 4.5.1

- - - - -
468d8fe4 by Nilesh Patra at 2021-02-24T20:01:45+05:30
Add "{python3: Depends}"

- - - - -
c478350a by robbinespu at 2021-02-26T14:12:50+08:00
Merge branch 'master' into copyright

- - - - -


4 changed files:

- debian/control
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/control
=====================================
@@ -3,8 +3,12 @@ Section: python
 Priority: optional
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Robbi Nespu <robbinespu at gmail.com>
-Build-Depends: debhelper-compat (= 13)
-Standards-Version: 4.3.0
+Build-Depends: debhelper-compat (= 13),
+                dh-python,
+                python3-all,
+                python3-setuptools,
+                python3-stdlib-list
+Standards-Version: 4.5.1
 Vcs-Browser: https://salsa.debian.org/med-team/python-sinfo
 Vcs-Git: https://salsa.debian.org/med-team/python-sinfo.git
 Homepage: https://gitlab.com/joelostblom/sinfo
@@ -12,7 +16,7 @@ Rules-Requires-Root: no
 
 Package: python3-sinfo
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Description: Print version information for loaded modules in the current session, Python, and the OS
  sinfo outputs version information for modules loaded in the current session,
  Python, the OS, and the CPU. It is designed as a minimum measure to increase


=====================================
debian/rules
=====================================
@@ -1,31 +1,8 @@
 #!/usr/bin/make -f
-
-# DH_VERBOSE := 1
-export LC_ALL=C.UTF-8
-
-include /usr/share/dpkg/default.mk
-# this provides:
-# DEB_SOURCE: the source package name
-# DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
-# DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
-# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
-# DEB_VERSION_UPSTREAM: the package's upstream version
-# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
-# SOURCE_DATE_EPOCH: the source release date as seconds since the epoch, as
-#                    specified by <https://reproducible-builds.org/specs/source-date-epoch/>
-
-# for hardening you might like to uncomment this:
-# export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export PYBUILD_NAME = sinfo
 
 %:
-	dh $@
-
-### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-#	do_stuff_for_testing
-#endif
+	dh $@ --with python3 --buildsystem=pybuild
 
-### If you **really** can not use uscan (even not with mode=git) use a debian/get-orig-script
-#get-orig-source:
-#	. debian/get-orig-source


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @
+Depends: @, python3-numpy, python3-natsort, python3-stdlib-list
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,16 +1,30 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
-
 export LC_ALL=C.UTF-8
 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
   AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
   trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
 fi
 
-cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
-
 cd "${AUTOPKGTEST_TMP}"
+ls
+echo "BEGIN"
+python3>&1 <<HERE
+import math
+
+import natsort
+import numpy
+import re
+from sinfo import sinfo
+
+import sys
+sys.stdout = open("testresult", "w")
+sinfo(std_lib=True)
+sys.stdout.close()
+HERE
 
-#do_stuff_to_test_package#
+cat testresult
+numlines=3
+[ "$(cat testresult | grep 'natsort\|numpy\|re[[:space:]]' | wc -l)" = "$numlines" ] || exit 1
+echo "PASS"



View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/compare/08d3bb56a5fe92b051251d7cfb2c00344f74ed89...c478350a4d024613c6071e6bcadd0fef5e75da46

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-sinfo/-/compare/08d3bb56a5fe92b051251d7cfb2c00344f74ed89...c478350a4d024613c6071e6bcadd0fef5e75da46
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/20210226/7bf0c63f/attachment-0001.htm>


More information about the debian-med-commit mailing list