pygalmesh (0.10.6-5) unstable; urgency=medium
authorDrew Parsons <dparsons@debian.org>
Mon, 30 Dec 2024 18:21:18 +0000 (19:21 +0100)
committerDrew Parsons <dparsons@debian.org>
Mon, 30 Dec 2024 18:21:18 +0000 (19:21 +0100)
  * fix test skip for s390x

[dgit import unpatched pygalmesh 0.10.6-5]

15 files changed:
1  2 
debian/changelog
debian/clean
debian/control
debian/copyright
debian/patches/build-with-CGAL-6.0.patch
debian/patches/series
debian/patches/test_relax_tolerance.patch
debian/pygalmesh.1
debian/python3-pygalmesh.manpages
debian/rules
debian/source/format
debian/source/options
debian/tests/control
debian/tests/test-pygalmesh
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..67944d97d5251c2290ff0ad83339f1d9bb6b5653
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,246 @@@
++pygalmesh (0.10.6-5) unstable; urgency=medium
++
++  * fix test skip for s390x
++
++ -- Drew Parsons <dparsons@debian.org>  Mon, 30 Dec 2024 19:21:18 +0100
++
++pygalmesh (0.10.6-4) unstable; urgency=medium
++
++  * skip test_from_array_with_subdomain_sizing on s390x
++  * use DEB_HOST_ARCH not DEB_BUILD_ARCH to control build config
++
++ -- Drew Parsons <dparsons@debian.org>  Mon, 30 Dec 2024 10:25:15 +0100
++
++pygalmesh (0.10.6-3) unstable; urgency=medium
++
++  * Team upload.
++  * Fix ftbfs with upstream commit. (Closes: #1074381)
++  * Add DEB_BUILD_MAINT_OPTIONS to fix hardening issues.
++  * Add pybuild-plugin-pyproject on B-D.
++  * Bump Standards-Version to 4.7.0.
++  * Add Rules-Requires-Root
++
++ -- Bo YU <tsu.yubo@gmail.com>  Fri, 15 Nov 2024 23:29:58 +0800
++
++pygalmesh (0.10.6-2) unstable; urgency=medium
++
++  * update debian patch test_relax_tolerance.patch to relax tolerance
++    in test_inr. Closes: #1060276.
++  * Standards-Version: 4.6.2
++
++ -- Drew Parsons <dparsons@debian.org>  Wed, 17 Jan 2024 12:44:41 +0100
++
++pygalmesh (0.10.6-1) unstable; urgency=medium
++
++  * New upstream release.
++  * run debian/tests (autopkgtest) over all supported python versions
++
++ -- Drew Parsons <dparsons@debian.org>  Wed, 26 Jan 2022 17:21:20 +0100
++
++pygalmesh (0.10.5-2) unstable; urgency=medium
++
++  * debian/tests skip test_rectangle on i386
++    (see https://github.com/nschloe/pygalmesh/issues/170)
++  * reinstate debian patch test_relax_tolerance.patch
++    for test_extrude on i386. Closes: #996336.
++
++ -- Drew Parsons <dparsons@debian.org>  Sun, 31 Oct 2021 17:15:26 +0100
++
++pygalmesh (0.10.5-1) unstable; urgency=medium
++
++  * New upstream release.
++    - provides single pygalmesh executable
++  * update Build-Depends: python3-all-dev:any (>= 3.7)
++  * drop debian patch test_relax_tolerance.patch
++    (tolerance changes made upstream)
++  * Standards-Version: 4.6.0
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 12 Oct 2021 16:20:43 +0200
++
++pygalmesh (0.9.4-1) experimental; urgency=medium
++
++  * New upstream release.
++  * Build-Depends: python3-pybind11 (>= 2.6)
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 16 Mar 2021 11:07:53 +0100
++
++pygalmesh (0.9.3-1) experimental; urgency=medium
++
++  * New upstream release.
++    - provides better handling of tetrahedra
++    - Build-Depends: libgmp-dev, libmpfr-dev
++  * Standards-Version: 4.5.1
++
++ -- Drew Parsons <dparsons@debian.org>  Thu, 25 Feb 2021 16:50:49 +0100
++
++pygalmesh (0.9.1-2) unstable; urgency=medium
++
++  * debian patch test_relax_tolerance.patch relaxes test tolerances
++    (needed for i386 to pass tests)
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 17 Oct 2020 13:43:21 +0800
++
++pygalmesh (0.9.1-1) unstable; urgency=medium
++
++  * New upstream release.
++  * update versioned Build-Depends: python3-pybind11 (>= 2.5),
++    python3-setuptools (>= 42)
++
++ -- Drew Parsons <dparsons@debian.org>  Thu, 15 Oct 2020 21:05:40 +0800
++
++pygalmesh (0.7.2-1) unstable; urgency=medium
++
++  * New upstream release.
++  * generate manpages directly from binary commands using help2man
++    rather than markdown and pandoc.
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 26 Sep 2020 17:33:24 +0800
++
++pygalmesh (0.7.1-1) unstable; urgency=medium
++
++  * New upstream release.
++    - changes copyright licence to GPL-3
++  * debhelper compatibility level 13
++
++ -- Drew Parsons <dparsons@debian.org>  Thu, 10 Sep 2020 23:35:09 +0800
++
++pygalmesh (0.6.6-1) unstable; urgency=medium
++
++  * New upstream release.
++    - drop debian patch relax_test_tolerance.patch. inr test tolerance
++      raised upstream.
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 12 May 2020 19:28:09 +0800
++
++pygalmesh (0.6.2-1) unstable; urgency=medium
++
++  * New upstream release.
++
++ -- Drew Parsons <dparsons@debian.org>  Thu, 16 Apr 2020 16:34:22 +0800
++
++pygalmesh (0.5.2-1) unstable; urgency=medium
++
++  * New upstream release.
++    - versioned Build-Depends: python3-meshio (>= 4)
++  * Update debian patch relax_test_tolerance.patch to relax upstream
++    tolerance only for ref[5]. Closes: #951864.
++
++ -- Drew Parsons <dparsons@debian.org>  Mon, 24 Feb 2020 11:54:01 +0800
++
++pygalmesh (0.5.0-4) unstable; urgency=medium
++
++  * It is possible to build pygalmesh using cmake, but normally it
++    should be built using setup.py (distutils). Disambiguate between
++    the two build systems by setting PYBUILD_SYSTEM=distutils.
++    Closes: #946233.
++  * Standards-Version: 4.5.0
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 18 Feb 2020 15:50:47 +0800
++
++pygalmesh (0.5.0-3) unstable; urgency=medium
++
++  * more tolerance relaxing in relax_test_tolerance.patch.
++    Closes: #947058.
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 31 Dec 2019 09:19:05 +1100
++
++pygalmesh (0.5.0-2) unstable; urgency=medium
++
++  * debian patch relax_test_tolerance.patch relaxes tolerance in
++    test_inr.py to allow successful tests on arm64. Closes: #947058.
++  * Standards-Version: 4.4.1
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 28 Dec 2019 10:54:34 +1100
++
++pygalmesh (0.5.0-1) unstable; urgency=medium
++
++  * New upstream release.
++    - fixes build against CGAL 5. Thanks Joachim Reichel for a patch.
++      Closes: #946234.
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 07 Dec 2019 14:07:47 +0800
++
++pygalmesh (0.4.0-1) unstable; urgency=medium
++
++  * set debian/watch to track upstream git tags,
++    needed to pull in git lfs objects (mesh files)
++  * New upstream release.
++
++ -- Drew Parsons <dparsons@debian.org>  Mon, 19 Aug 2019 00:42:35 +0800
++
++pygalmesh (0.3.6-2) unstable; urgency=medium
++
++  * debian/clean: delete pygalmesh-from-inr.1 and
++    pygalmesh-volume-from-surface.1, generated in
++    override_dh_auto_build. Thanks Joachim Reichel.
++    Closes: #933848, #933986.
++
++ -- Drew Parsons <dparsons@debian.org>  Tue, 06 Aug 2019 16:53:03 +0800
++
++pygalmesh (0.3.6-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Standards-Version: 4.4.0
++
++ -- Drew Parsons <dparsons@debian.org>  Thu, 11 Jul 2019 10:25:00 +0800
++
++pygalmesh (0.3.5-1) unstable; urgency=medium
++
++  * New upstream release.
++    - provides utility scripts pygalmesh-from-inr and
++      pygalmesh-volume-from-surface
++
++ -- Drew Parsons <dparsons@debian.org>  Sun, 07 Jul 2019 19:33:56 +0800
++
++pygalmesh (0.3.3-2) experimental; urgency=medium
++
++  * debian/tests/control: Depends: python3-requests.
++
++ -- Drew Parsons <dparsons@debian.org>  Fri, 17 May 2019 15:11:08 +0800
++
++pygalmesh (0.3.3-1) experimental; urgency=medium
++
++  * New upstream release.
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 11 May 2019 16:12:20 +0800
++
++pygalmesh (0.3.1-3) experimental; urgency=medium
++
++  * skip dh_dwz and don't build dbgsym packages on arches where debug
++    symbols have been switched off (-g0)
++
++ -- Drew Parsons <dparsons@debian.org>  Sat, 04 May 2019 00:33:39 +0800
++
++pygalmesh (0.3.1-2) experimental; urgency=medium
++
++  * disable debugging symbols (replace -g flag with -g0 in CFLAGS)
++    on low memory (32 bit) arches:
++    armhf i386 mips mipsel hppa hurd-i386 kfreebsd-i386 powerpcspe x32
++    Closes: #928140.
++
++ -- Drew Parsons <dparsons@debian.org>  Fri, 03 May 2019 22:40:41 +0800
++
++pygalmesh (0.3.1-1) experimental; urgency=medium
++
++  * New upstream release
++    - supports periodic meshes
++    - Build-Depends: python3-meshio
++  * Standards-Version: 4.3.0
++  * debhelper compatibility level 12
++
++ -- Drew Parsons <dparsons@debian.org>  Wed, 24 Apr 2019 22:41:19 +0800
++
++pygalmesh (0.2.6-1) unstable; urgency=medium
++
++  * New upstream release.
++    - fixes meshio API used in pygalmesh tests
++  * add debian/tests (autopkgtest) to run pytest-3
++
++ -- Drew Parsons <dparsons@debian.org>  Wed, 14 Nov 2018 23:10:51 +0800
++
++pygalmesh (0.2.5-1) unstable; urgency=medium
++
++  * Initial release (Closes: #910278)
++    - package Python 3 module only (Python 2 is deprecated)
++
++ -- Drew Parsons <dparsons@debian.org>  Mon, 08 Oct 2018 00:49:13 +0800
diff --cc debian/clean
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3da9b05098c95c76b090ba160d7751a9e1c15e08
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++pygalmesh-from-inr.1
++pygalmesh-volume-from-surface.1
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..03807ad7827e670108aa671d30bb814bcfa94e40
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,55 @@@
++Source: pygalmesh
++Section: python
++Priority: optional
++Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
++Uploaders: Drew Parsons <dparsons@debian.org>
++Build-Depends: debhelper-compat (= 13),
++ dh-python, python3-all-dev:any (>= 3.7), python3-setuptools (>= 42),
++ libcgal-dev,
++ libeigen3-dev,
++ libgmp-dev, libmpfr-dev,
++ python3-meshio (>= 4),
++ python3-pybind11 (>= 2.6),
++ pybuild-plugin-pyproject
++Standards-Version: 4.7.0
++Homepage: https://github.com/nschloe/pygalmesh
++Vcs-Browser: https://salsa.debian.org/science-team/pygalmesh
++Vcs-Git: https://salsa.debian.org/science-team/pygalmesh.git
++Rules-Requires-Root: no
++
++Package: python3-pygalmesh
++Architecture: any
++Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
++Suggests: python-pygalmesh-doc
++Description: Python 3 frontend to CGAL's 3D mesh generators
++ pygalmesh makes it easy to create high-quality 3D volume and surface
++ meshes.
++ .
++ CGAL offers two different approaches for mesh generation:
++  -   Meshes defined implicitly by level sets of functions.
++  -   Meshes defined by a set of bounding planes.
++ .
++ pygalmesh provides a front-end to the first approach, which has the
++ following advantages and disadvantages:
++  -   All boundary points are guaranteed to be in the level set within
++      any specified residual. This results in smooth curved surfaces.
++  -   Sharp intersections of subdomains (e.g., in unions or
++      differences of sets) need to be specified manually (via feature edges,
++      see below), which can be tedious.
++ .
++ On the other hand, the bounding-plane approach (realized by mshr),
++ has the following properties:
++  -   Smooth, curved domains are approximated by a set of bounding
++      planes, resulting in more of less visible edges.
++  -   Intersections of domains can be computed automatically, so
++      domain unions etc. have sharp edges where they belong.
++ .
++ pygalmesh and mshr are therefore complementary.
++ .
++ pygalmesh also interfaces CGAL's 3D periodic mesh generation.
++ .
++ This package installs the pygalmesh module for Python 3.
++ .
++ It also provides the utility scripts pygalmesh-from-inr and
++ pygalmesh-volume-from-surface for generating volume meshes from
++ INR or surface meshes.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7f81d4a75f2672c9f2f7ee9d847fbdd566ade161
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,12 @@@
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: pygalmesh
++Source: https://github.com/nschloe/pygalmesh
++
++Files: *
++Copyright: 2016-2020 Nico Schlömer <nico.schloemer@gmail.com>
++License: GPL-3
++ This software is released under the terms of the GNU General Public
++ Licence, Version 3.
++ .
++ On a Debian system, the full text of the GPL can be found at
++ /usr/share/common-licenses/GPL-3
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e25fbd693e2c968c43d40541569e11ba8284dedd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,73 @@@
++Description: Fix build issue with CGAL 6.0 
++Author: Sebastien Loriot <sebastien.loriot@cgal.org>
++Origin, upstream: https://github.com/meshpro/pygalmesh/pull/214
++Bug-Debian: https://bugs.debian.org/1074381
++Last-Update: 2024-11-16
++---
++ src/CMakeLists.txt        | 3 +--
++ src/generate.cpp          | 2 +-
++ src/generate_from_inr.cpp | 2 +-
++ src/generate_from_off.cpp | 4 ++--
++ 4 files changed, 5 insertions(+), 6 deletions(-)
++
++--- a/src/CMakeLists.txt
+++++ b/src/CMakeLists.txt
++@@ -5,7 +5,6 @@
++ include_directories(${EIGEN3_INCLUDE_DIR})
++ 
++ FIND_PACKAGE(CGAL REQUIRED)
++-include(${CGAL_USE_FILE})
++ 
++ FILE(GLOB pygalmesh_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
++ # FILE(GLOB pygalmesh_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
++@@ -13,7 +12,7 @@
++ pybind11_add_module(pygalmesh ${pygalmesh_SRCS})
++ 
++ # ADD_LIBRARY(pygalmesh ${pygalmesh_SRCS})
++-target_link_libraries(pygalmesh PRIVATE ${CGAL_LIBRARIES})
+++target_link_libraries(pygalmesh PRIVATE CGAL::CGAL)
++ 
++ # https://github.com/CGAL/cgal/issues/6002
++ # find_program(iwyu_path NAMES include-what-you-use iwyu REQUIRED)
++--- a/src/generate.cpp
+++++ b/src/generate.cpp
++@@ -8,7 +8,7 @@
++ #include <CGAL/Mesh_complex_3_in_triangulation_3.h>
++ #include <CGAL/Mesh_criteria_3.h>
++ 
++-#include <CGAL/Implicit_mesh_domain_3.h>
+++#include <CGAL/Labeled_mesh_domain_3.h>
++ #include <CGAL/Mesh_domain_with_polyline_features_3.h>
++ #include <CGAL/make_mesh_3.h>
++ 
++--- a/src/generate_from_inr.cpp
+++++ b/src/generate_from_inr.cpp
++@@ -11,7 +11,7 @@
++ #include <CGAL/Mesh_complex_3_in_triangulation_3.h>
++ #include <CGAL/Mesh_criteria_3.h>
++ 
++-#include <CGAL/Implicit_mesh_domain_3.h>
+++#include <CGAL/Labeled_mesh_domain_3.h>
++ #include <CGAL/Mesh_domain_with_polyline_features_3.h>
++ #include <CGAL/make_mesh_3.h>
++ 
++--- a/src/generate_from_off.cpp
+++++ b/src/generate_from_off.cpp
++@@ -18,7 +18,7 @@
++ 
++ #include <CGAL/version_macros.h>
++ 
++-#if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR < 3
+++#if (CGAL_VERSION_MAJOR == 5 && CGAL_VERSION_MINOR < 3)
++   #include <CGAL/IO/OFF_reader.h>
++ #endif
++ 
++@@ -78,7 +78,7 @@
++ 
++     if(
++       !input ||
++-#if CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR >= 3
+++#if (CGAL_VERSION_MAJOR >= 5 && CGAL_VERSION_MINOR >= 3) || (CGAL_VERSION_MAJOR >= 6)
++       !CGAL::IO::read_OFF(input, points, polygons) ||
++ #else
++       !CGAL::read_OFF(input, points, polygons) ||
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..40ed474d2a7a8c5947af5ceb18a73cf9b10e4d99
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++test_relax_tolerance.patch
++build-with-CGAL-6.0.patch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..12604177fe9b5a14a69facafab99720080c12c74
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,26 @@@
++Index: pygalmesh/tests/test_volume_mesh.py
++===================================================================
++--- pygalmesh.orig/tests/test_volume_mesh.py  2024-01-17 12:41:12.952337404 +0100
+++++ pygalmesh/tests/test_volume_mesh.py       2024-01-17 12:41:12.948337521 +0100
++@@ -483,7 +483,7 @@
++     assert abs(min(mesh.points[:, 1]) + 0.3) < tol
++     # Relax tolerance for debian, see <https://github.com/nschloe/pygalmesh/pull/47>
++     assert abs(max(mesh.points[:, 2]) - 1.0) < 1.1e-3
++-    assert abs(min(mesh.points[:, 2]) + 0.0) < tol
+++    assert abs(min(mesh.points[:, 2]) + 0.0) < 1.1e-3
++ 
++     vol = sum(helpers.compute_volumes(mesh.points, mesh.get_cells_type("tetra")))
++     assert abs(vol - 0.4) < tol
++Index: pygalmesh/tests/test_inr.py
++===================================================================
++--- pygalmesh.orig/tests/test_inr.py  2024-01-17 12:41:12.952337404 +0100
+++++ pygalmesh/tests/test_inr.py       2024-01-17 12:41:29.287844693 +0100
++@@ -35,7 +35,7 @@
++         (min(mesh.points[:, 2]), -3.98639357e-03),
++     ]
++     for val, ref in vals_refs:
++-        assert abs(val - ref) < 1.0e-3 * (1.0 + abs(ref)), f"{val:.8e} != {ref:.8e}"
+++        assert abs(val - ref) < 1.1e-3 * (1.0 + abs(ref)), f"{val:.8e} != {ref:.8e}"
++ 
++     vol = sum(helpers.compute_volumes(mesh.points, mesh.get_cells_type("tetra")))
++     ref = 6.95558790e02
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..64a4c38e6e7c1b75db6297da75af32195743d0ef
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,37 @@@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.5.
++.TH PYGALMESH "1" "October 2021" "pygalmesh 0.10.5" "User Commands"
++.SH NAME
++pygalmesh \- create high-quality meshes with ease
++.SH DESCRIPTION
++usage: pygalmesh [\-h] [\-\-version]
++.IP
++{from\-inr,remesh\-surface,volume\-from\-surface} ...
++.PP
++pygalmesh command\-line tools
++.SS "optional arguments:"
++.TP
++\fB\-h\fR, \fB\-\-help\fR
++show this help message and exit
++.TP
++\fB\-\-version\fR, \fB\-v\fR
++display version information
++.SS "subcommands:"
++.IP
++{from\-inr,remesh\-surface,volume\-from\-surface}
++.TP
++from\-inr
++Create volume mesh from INR voxel files
++.TP
++remesh\-surface
++Remesh surface mesh
++.TP
++volume\-from\-surface
++Generate volume mesh from surface mesh
++.PP
++pygalmesh is a Python frontend to CGAL's 2D and 3D mesh generation capabilities.
++pygalmesh makes it easy to create high-quality 2D, 3D volume meshes,
++periodic volume meshes, and surface meshes.
++.PP
++pygalmesh 0.10.5 [Python 3.9.7, CGAL 5.3]
++.PP
++Copyright (c) 2016-2021, Nico Schlömer <nico.schloemer@gmail.com>
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7cc6a2290e20f67e1003958605a574a95b2d2b80
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++debian/pygalmesh.1
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5c6a2609fafa14de02f9c53dab2ea870e1cc9803
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,42 @@@
++#!/usr/bin/make -f
++# See debhelper(7) (uncomment to enable)
++# output every command that modifies files on the build system.
++#export DH_VERBOSE = 1
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++
++export PYBUILD_NAME=pygalmesh
++
++export PYBUILD_SYSTEM=distutils
++
++DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
++
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
++
++# some arches (mostly 32 bit) don't provide enough memory to build with debug symbols
++ARCH_NO_DEBUG_SYMBOLS := armhf i386 mips mipsel hppa hurd-i386 kfreebsd-i386 powerpcspe x32
++ifneq ($(findstring $(DEB_HOST_ARCH),$(ARCH_NO_DEBUG_SYMBOLS)),)
++# disable debugging symbols (replace -g with -g0 in build flags) on weak arches
++  CFLAGS := $(shell dpkg-buildflags --get CFLAGS | sed 's/-g /-g0 /' )
++endif
++
++ifeq ($(DEB_HOST_ARCH),s390x)
++  export PYBUILD_TEST_ARGS = -k "not test_from_array_with_subdomain_sizing"
++endif
++
++%:
++      dh $@ --with python3 --buildsystem=pybuild
++
++# debug symbols (-g) have been switched off (-g0) in CFLAGS for some arches, so no point building dbgsym packages
++override_dh_strip:
++      case " $(ARCH_NO_DEBUG_SYMBOLS) " in \
++          *\ $(DEB_HOST_ARCH)\ *) dh_strip --no-automatic-dbgsym;; \
++          *) dh_strip;; \
++      esac
++
++override_dh_dwz:
++      case " $(ARCH_NO_DEBUG_SYMBOLS) " in \
++          *\ $(DEB_HOST_ARCH)\ *) echo "skipping dh_dwz since debug symbols (-g) have been switched off (-g0) for $(DEB_HOST_ARCH)";; \
++          *) dh_dwz;; \
++      esac
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cb61fa5267b6ad8b3bbc2a612754b79dae466292
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++extend-diff-ignore = "^[^/]*[.]egg-info/"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e5ff2b15187610314dd26228008a5a8b95a397df
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,5 @@@
++Tests: test-pygalmesh
++Depends: @, @builddeps@,
++ python3-all,
++ python3-pytest,
++ python3-requests
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..79d3a7e2518dd9413703e050055cf024bb95a184
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,13 @@@
++DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
++
++if [ "x${DEB_HOST_ARCH}" = "xi386" ]; then
++  # test_rectangle started failing on i386,
++  # see https://github.com/nschloe/pygalmesh/issues/170
++  TEST_OPTIONS="not test_rectangle"
++elif [ "x${DEB_HOST_ARCH}" = "xs390x" ]; then
++  TEST_OPTIONS="not test_from_array_with_subdomain_sizing"
++fi
++
++for pyver in $(py3versions -sv); do
++  python$pyver -m pytest -k "${TEST_OPTIONS}"
++done
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9f582da3980e09425d027881f622956c713ce395
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++version=4
++opts="mode=git, gitmode=full, pgpmode=none" \
++https://github.com/nschloe/pygalmesh.git \
++refs/tags/v([\d\.]+) debian uupdate