[Python-modules-commits] [python-fisx] 03/03: Add the -dbg packages and autopkgtest

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sat Jun 18 15:45:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository python-fisx.

commit 66f445598f7722445f5f499f1c5f4a180c4a743b
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Sat Jun 18 17:44:06 2016 +0200

    Add the -dbg packages and autopkgtest
---
 debian/changelog         |  2 +-
 debian/control           | 75 +++++++++++++++++++++++++++++++++++++++---------
 debian/rules             | 15 ++++++----
 debian/tests/control     | 11 +++++++
 debian/tests/python2     | 11 +++++++
 debian/tests/python2-dbg | 11 +++++++
 debian/tests/python3     | 11 +++++++
 debian/tests/python3-dbg | 11 +++++++
 debian/watch             |  3 ++
 9 files changed, 130 insertions(+), 20 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a7a063a..793c9a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
 python-fisx (1.0.7-1) unstable; urgency=low
 
-  * Initial package (Closes: #xxxxxx)
+  * Initial package (Closes: #827609)
 
  -- Picca Frédéric-Emmanuel <picca at debian.org>  Thu, 09 Jun 2016 10:17:18 +0200
diff --git a/debian/control b/debian/control
index 911f430..fd51291 100644
--- a/debian/control
+++ b/debian/control
@@ -2,25 +2,34 @@ Source: python-fisx
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Picca Frédéric-Emmanuel <picca at debian.org>
 Section: python
+Testsuite: autopkgtest
 Priority: optional
 Build-Depends: cython,
-	       cython3,
-	       debhelper (>= 9),
+               cython-dbg,
+               cython3,
+               cython3-dbg,
+               debhelper (>= 9),
+               python-all-dbg,
                python-all-dev,
-	       python-numpy,
-	       python-setuptools,
+               python-numpy,
+               python-numpy-dbg,
+               python-setuptools,
+               python3-all-dbg,
                python3-all-dev,
-	       python3-numpy,
-               python3-setuptools,
+               python3-numpy,
+               python3-numpy-dbg,
+               python3-setuptools
 Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-fisx.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-fisx.git
+Homepage: https://github.com/vasole/fisx
 
 Package: python-fisx
 Architecture: any
-Section: python
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${python:Depends},
-	 python-fisx-common,
+         python-fisx-common
 Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python 2)
  This software library implements formulas to calculate, given an
  experimental setup, the expected x-ray fluorescence intensities. The
@@ -29,14 +38,33 @@ Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python
  implementation is written in C++ and a Python binding is provided.
  .
  This is the Python 2 version of the package.
-  
+
+Package: python-fisx-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends},
+         python-dbg,
+         python-fisx (= ${binary:Version}),
+         python-fisx-common,
+         python-numpy-dbg
+Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python 2 Debug)
+ This software library implements formulas to calculate, given an
+ experimental setup, the expected x-ray fluorescence intensities. The
+ library accounts for secondary and tertiary excitation, K, L and M
+ shell emission lines and de-excitation cascade effects. The basic
+ implementation is written in C++ and a Python binding is provided.
+ .
+ This is the Python 2 Debug version of the package.
+
 Package: python3-fisx
 Architecture: any
-Section: python
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${python3:Depends},
-	 python-fisx-common,
+         python-fisx-common
 Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python 3)
  This software library implements formulas to calculate, given an
  experimental setup, the expected x-ray fluorescence intensities. The
@@ -45,11 +73,30 @@ Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python
  implementation is written in C++ and a Python binding is provided.
  .
  This is the Python 3 version of the package.
-  
+
+Package: python3-fisx-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python3:Depends},
+         python-fisx-common,
+         python3-dbg,
+         python3-fisx (= ${binary:Version}),
+         python3-numpy-dbg
+Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Python 3 Debug)
+ This software library implements formulas to calculate, given an
+ experimental setup, the expected x-ray fluorescence intensities. The
+ library accounts for secondary and tertiary excitation, K, L and M
+ shell emission lines and de-excitation cascade effects. The basic
+ implementation is written in C++ and a Python binding is provided.
+ .
+ This is the Python 3 Debug version of the package.
+
 Package: python-fisx-common
 Architecture: all
-Section: python
-Depends: ${misc:Depends},
+Depends: ${misc:Depends}
 Description: Quantitative X-Ray Fluorescence Analysis Support Library - (Common) .
  This is the Python 3 version of the package.
  This software library implements formulas to calculate, given an
diff --git a/debian/rules b/debian/rules
index 16fd8a3..5b844d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,7 @@ export FISX_DATA_DIR=/usr/share/fisx/
 export PKGCOMMON=$(CURDIR)/debian/python-fisx-common/
 
 export PYBUILD_NAME=fisx
-export PYBUILD_AFTER_INSTALL_python2=dh_numpy ;\
-	rm -rf {destdir}$(FISX_DATA_DIR)
-export PYBUILD_AFTER_INSTALL_python3=dh_numpy3 ;\
-	mkdir -p $(PKGCOMMON)/usr/share ;\
-	mv {destdir}$(FISX_DATA_DIR) $(PKGCOMMON)/usr/share
+export PYBUILD_AFTER_INSTALL=rm -rf {destdir}$(FISX_DATA_DIR)
 
 override_dh_clean:
 	dh_clean
@@ -17,5 +13,14 @@ override_dh_clean:
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
+override_dh_auto_install:
+	dh_auto_install
+	dh_numpy
+	dh_numpy3
+
+	# install the common files
+	python setup.py install_data --root $(PKGCOMMON)
+	rm -f $(PKGCOMMON)/$(FISX_DATA_DIR)/LICENSE
+
 # skip test for now
 override_dh_auto_test:
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b9c7cb2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Tests: python2
+Depends: python-fisx
+
+Tests: python2-dbg
+Depends: python-fisx-dbg
+
+Tests: python3
+Depends: python3-fisx
+
+Tests: python3-dbg
+Depends: python3-fisx-dbg
\ No newline at end of file
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..7e9fbc8
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py -m fisx.tests.testAll 2>&1
+done
diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg
new file mode 100755
index 0000000..711b689
--- /dev/null
+++ b/debian/tests/python2-dbg
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -m fisx.tests.testAll 2>&1
+done
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..70203c9
--- /dev/null
+++ b/debian/tests/python3
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py -m fisx.tests.testAll 2>&1
+done
diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg
new file mode 100755
index 0000000..2692244
--- /dev/null
+++ b/debian/tests/python3-dbg
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -m fisx.tests.testAll 2>&1
+done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..79a4c57
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/fisx/fisx-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-fisx.git



More information about the Python-modules-commits mailing list