[fiat] 01/01: Enable Python 3 support and testing

Johannes Ring johannr-guest at moszumanska.debian.org
Tue Jan 17 11:55:36 UTC 2017


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

johannr-guest pushed a commit to branch master
in repository fiat.

commit 1edb0294972e34d33a520d32ae8d99f5c632e3e7
Author: Johannes Ring <johannr at simula.no>
Date:   Tue Jan 17 12:55:29 2017 +0100

    Enable Python 3 support and testing
---
 debian/changelog |  7 +++++++
 debian/control   | 44 +++++++++++++++++++++++++++++++++++++++++---
 debian/rules     | 12 +++++++++++-
 3 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f205c13..4bd3be7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+fiat (2016.2.0-2) UNRELEASED; urgency=medium
+
+  * Support Python 3.
+  * Enable testing.
+
+ -- Johannes Ring <johannr at simula.no>  Wed, 21 Dec 2016 12:00:54 +0100
+
 fiat (2016.2.0-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 68fd188..3a6ded9 100644
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,56 @@ Section: python
 Priority: extra
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Johannes Ring <johannr at simula.no>
-Build-Depends: debhelper (>= 9), python-all (>= 2.7), dh-python
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python-all (>= 2.7),
+ python3-all (>= 3.4),
+ python-setuptools,
+ python3-setuptools,
+ python-sympy,
+ python3-sympy,
+ python-numpy,
+ python3-numpy,
+ python-six,
+ python3-six,
+ python-pytest,
+ python3-pytest
 Standards-Version: 3.9.8
 X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 Homepage: http://fenicsproject.org
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/fenics/fiat.git
 Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/fenics/fiat.git
 
 Package: python-fiat
 Architecture: all
-Depends: python-numpy, python-sympy, ${python:Depends}, ${misc:Depends}
-Description: tabulation of finite element function spaces
+Depends:
+ python-numpy,
+ python-sympy,
+ python-six,
+ ${python:Depends},
+ ${misc:Depends}
+Description: tabulation of finite element function spaces (Python 2)
  The FInite element Automatic Tabulator FIAT supports generation of arbitrary
  order instances of the Lagrange elements on lines, triangles, and tetrahedra.
  Other supported elements include arbitrary order Raviart-Thomas elements,
  Brezzi-Douglas-Marini elements and a few others.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-fiat
+Architecture: all
+Depends:
+ python3-numpy,
+ python3-sympy,
+ python3-six,
+ ${python3:Depends},
+ ${misc:Depends}
+Description: tabulation of finite element function spaces (Python 3)
+ The FInite element Automatic Tabulator FIAT supports generation of arbitrary
+ order instances of the Lagrange elements on lines, triangles, and tetrahedra.
+ Other supported elements include arbitrary order Raviart-Thomas elements,
+ Brezzi-Douglas-Marini elements and a few others.
+ .
+ This package installs the library for Python 3.
diff --git a/debian/rules b/debian/rules
index efded95..ea45a86 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,19 @@
 #!/usr/bin/make -f
 
+#export DH_VERBOSE=1
+export PYBUILD_NAME=fiat
+#export PYBUILD_DISABLE=test
+export PYBUILD_TEST_ARGS={dir}/test/unit
+export PYBUILD_TEST_PYTEST=1
+
 USCAN_DESTDIR := $(CURDIR)
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_clean:
+	dh_clean
+	rm -rf *.egg-info
 
 .PHONY: get-orig-source
 get-orig-source:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/fenics/fiat.git



More information about the debian-science-commits mailing list