Skip to content
Commits on Source (7)
......@@ -4,19 +4,26 @@ pyscanfcs (0.3.0+dfsg-1) UNRELEASED; urgency=medium
* Added new d/u/metadata file
[ Alexandre Mestiashvili ]
* Bump policy 4.1.4, update VCS-* fields to salsa
* Update Files-Excluded list in d/copyright
* New upstream version 0.3.0+dfsg
* Drop patches applied by upstream
* Update build-deps, use python3 modules, apply wrap-and-sort
* Bump compat to level 11
* Update d/rules to use python3, cleanup dh_install target
* d/control:
- bump policy 4.1.4
- bump compat to level 11
- update VCS-* fields to salsa
- update build-deps, use python3 modules
- update uploader's email
* d/rules:
- use python3
- cleanup dh_install target
- archive and install tests to examples
- move and symlink start script
- tweak pybuild flags to install to a private dir
* Update d/pyscanfcs.docs
* Update d/source/options, ignore pyscanfcs/_version_save.py
* Update d/rules
* Update tests control file, use python3
* Use upstream tests for autopkgtests
-- Alexandre Mestiashvili <mestia@debian.org> Thu, 31 May 2018 16:07:07 +0200
-- Alexandre Mestiashvili <mestia@debian.org> Thu, 27 Sep 2018 10:53:59 +0000
pyscanfcs (0.2.3+dfsg-1) unstable; urgency=medium
......
Source: pyscanfcs
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Alexandre Mestiashvili <alex@biotec.tu-dresden.de>
Uploaders: Alexandre Mestiashvili <mestia@debian.org>
Section: python
Priority: optional
Build-Depends: cython3,
......@@ -24,7 +24,7 @@ Build-Depends: cython3,
texlive-latex-extra,
texlive-latex-recommended,
texlive-science
Standards-Version: 4.1.4
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/pyscanfcs
Vcs-Git: https://salsa.debian.org/med-team/pyscanfcs.git
Homepage: https://fcs-analysis.github.io/PyScanFCS/
......
......@@ -2,8 +2,8 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: PyScanFCS
Source: https://github.com/FCS-analysis/PyScanFCS
Files-Excluded:
.appveyor/
.travis/
.appveyor
.travis
.appveyor.yml
.travis.yml
.readthedocs.yml
......
usr/share/pixmaps
usr/share/applications/
usr/share/pixmaps
doc/PyScanFCS_doc.pdf
README.rst
doc/PyScanFCS_doc.pdf
......@@ -10,9 +10,13 @@ DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d "$(DEB_DATE_RFC_282
PDFLATEX = pdflatex -synctex=1 -interaction=nonstopmode $(TEXDOC)
FAKETIME = faketime -f "$(DEB_DATE_RFC_3339)"
pkg := pyscanfcs
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=$(pkg)
export PYBUILD_INSTALL_ARGS_python3=--install-lib=/usr/lib/${PYBUILD_NAME}
export PYBUILD_TEST_PYTEST=1
pkg := pyscanfcs
%:
dh $@ --with python3 --buildsystem=pybuild
......@@ -35,13 +39,25 @@ override_dh_auto_build:
override_dh_install:
dh_install
mv $(CURDIR)/debian/$(pkg)/usr/bin/pyscanfcs \
$(CURDIR)/debian/$(pkg)/usr/lib/$(pkg)/pyscanfcs_run
cd $(CURDIR)/debian/$(pkg)/usr/bin/; \
ln -s ../lib/$(pkg)/pyscanfcs_run pyscanfcs; cd -
mv debian/pyscanfcs.xpm \
debian/$(pkg)/usr/share/pixmaps
chmod -R 644 debian/$(pkg)/usr/share/doc/$(pkg)/examples/misc
override_dh_fixperms:
dh_fixperms
chmod 644 debian/$(pkg)/usr/lib/python3/dist-packages/pyscanfcs/sfcs_alg.pyx
chmod 644 debian/$(pkg)/usr/lib/$(pkg)/pyscanfcs/sfcs_alg.pyx
override_dh_compress:
dh_compress -X$(PDF)
override_dh_installexamples:
tar --sort=name \
--mtime="@${SOURCE_DATE_EPOCH}" \
--owner=root --group=root --numeric-owner \
--mode=go=rX,u+rw,a-s \
-cJf $(CURDIR)/debian/$(pkg)/usr/share/doc/$(pkg)/examples/tests.tar.xz tests/
dh_installexamples
Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import pyscanfcs; print pyscanfcs" ; done
Depends: python3-all, pyscanfcs
Tests: upstream-tests
Restrictions: allow-stderr
Depends: @, python3-pytest
#!/bin/bash
# Use test.tar.xz from /usr/share/doc/pyscanfcs/examples/ if executed with
# autopkgtest
set -e
pkg=pyscanfcs
export PYTHONPATH=/usr/lib/${pkg}
examplesdir=/usr/share/doc/${pkg}/examples
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" 0 INT QUIT ABRT PIPE TERM
tar -xf ${examplesdir}/tests.tar.xz -C $TMPDIR
WORKDIR=${TMPDIR}
cd $WORKDIR
# Skip tests which need network access
python3 -m pytest tests
rm -rf $WORKDIR