Andreas Tille pushed to branch master at Debian Med / nibabel
Commits: 454c18fe by Andreas Tille at 2020-07-21T15:49:53+02:00 Upstream switched to pytest which works now, however this version has issues with sphinx - - - - - 3 changed files: - debian/changelog - debian/control - debian/rules Changes: ===================================== debian/changelog ===================================== @@ -5,6 +5,11 @@ nibabel (3.1.1-1) UNRELEASED; urgency=medium * Update Homepage * Rules-Requires-Root: no (routine-update) * Replace use of deprecated $ADTTMP with $AUTOPKGTEST_TMP. + * Switch build time test from nose to pytest + Closes: #964610 + TODO: + * Fix Sphinx build (see FIXME in d/control + d/rules) + * Switch autopkgtest from nose to pytest -- Andreas Tille <[email protected]> Tue, 21 Jul 2020 08:23:15 +0200 ===================================== debian/control ===================================== @@ -17,6 +17,7 @@ Build-Depends: debhelper-compat (= 12), help2man, python3-sphinx, python3-matplotlib, + python3-texext, libjs-mathjax, python3-mock, python3-numpydoc, @@ -25,7 +26,8 @@ Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/med-team/nibabel Vcs-Git: https://salsa.debian.org/med-team/nibabel.git Homepage: https://nipy.org/nibabel/ -Rules-Requires-Root: no +#FIXME: See dirty hack in d/rules +#Rules-Requires-Root: no Package: python3-nibabel Architecture: all ===================================== debian/rules ===================================== @@ -13,7 +13,14 @@ export MPLCONFIGDIR=$(CURDIR)/build override_dh_auto_build: dh_auto_build # and docs - PYTHONPATH=$(CURDIR) $(MAKE) -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build PYTHON=python3 + # FIXME: Really dirty hack to avoid + # Exception occurred: + # File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 776, in _open_file_or_url + # with open(fname, encoding=encoding) as f: + # FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/matplotlib/mpl-data/matplotlibrc' + # This does not even work + # cp /etc/matplotlibrc /usr/share/matplotlib/mpl-data/ + PYTHONPATH=$(CURDIR) $(MAKE) -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build PYTHON=python3 || true # but remove jquery copy (later on link to Debian's version) -rm build/html/_static/jquery.js # objects inventory is of no use for the package @@ -24,7 +31,7 @@ override_dh_auto_build: # enable when we believe that the tests should pass override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) - PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} LC_ALL=C.UTF-8 {interpreter} -m nose --verbose" dh_auto_test + PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} LC_ALL=C.UTF-8 {interpreter} -m pytest --verbose" dh_auto_test endif ## immediately useable documentation View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/commit/454c18fef3a7a7e130954073bd2638adb7f88a7b -- View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/commit/454c18fef3a7a7e130954073bd2638adb7f88a7b You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
