mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
community/python-matplotlib to 3.5.1-1
This commit is contained in:
parent
168108be54
commit
7422a6cfc9
1 changed files with 11 additions and 13 deletions
|
@ -10,7 +10,7 @@
|
||||||
# - disable lto via setup.cfg
|
# - disable lto via setup.cfg
|
||||||
|
|
||||||
pkgname=python-matplotlib
|
pkgname=python-matplotlib
|
||||||
pkgver=3.5.0
|
pkgver=3.5.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A python plotting library, making publication quality plots"
|
pkgdesc="A python plotting library, making publication quality plots"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
@ -38,14 +38,14 @@ checkdepends=(python-pytest python-pytest-xdist python-pytest-runner python-pyte
|
||||||
texlive-bin texlive-core texlive-latexextra texlive-pictures ghostscript inkscape ffmpeg imagemagick
|
texlive-bin texlive-core texlive-latexextra texlive-pictures ghostscript inkscape ffmpeg imagemagick
|
||||||
gtk4 python-cairo python-gobject python-pyqt5 pyside2 python-pyqt6 pyside6 python-tornado python-wxpython tk
|
gtk4 python-cairo python-gobject python-pyqt5 pyside2 python-pyqt6 pyside6 python-tornado python-wxpython tk
|
||||||
jupyter-nbconvert jupyter-nbformat python-ipykernel python-pandas python-pikepdf python-pytz)
|
jupyter-nbconvert jupyter-nbformat python-ipykernel python-pandas python-pikepdf python-pytz)
|
||||||
_tag=7a9ee717ecfa24ae4029abac0c7939076c2b0eb7 # git rev-parse v${pkgver}
|
_tag=312c1fb08c5d46aaccaf8b62c8673e4202523e8a # git rev-parse v${pkgver}
|
||||||
_ftver=2.11.0
|
_ftver=2.11.0
|
||||||
source=(git+https://github.com/matplotlib/matplotlib.git#tag=${_tag}?signed
|
source=(git+https://github.com/matplotlib/matplotlib.git#tag=${_tag}?signed
|
||||||
https://github.com/QuLogic/mpl-images/archive/v${pkgver}rc1-with-freetype-${_ftver}/mpl-images-${pkgver}rc1-ft${_ftver}.tar.gz
|
https://github.com/QuLogic/mpl-images/archive/v3.5.0-with-freetype-${_ftver}/mpl-images-3.5.0-ft${_ftver}.tar.gz
|
||||||
freetype.patch)
|
freetype.patch)
|
||||||
b2sums=(SKIP
|
b2sums=('SKIP'
|
||||||
29e87a2dd2fc37c3d33e7e0463ca02b468953abe896ac658a6764e78f61a56bb486f5fec51403b2bda726031c5352b4270049256ac8f630eef56ffb3071b870a
|
'fed606dcd4d338c6b1c7dd2add58b42b0e819598129618289036dda0499584287315819cce647c35999eb8375875e0488ca20311b03c79cf76dddb2bbdf366ba'
|
||||||
514324b3e17e832d5199eaa6592c05ca662b1164ddc95f16ea076d6a1063b06e6a8fa4eac7740e5f73afbcc9d17244c5cc41373d5787f62cd58eab10249302c9)
|
'514324b3e17e832d5199eaa6592c05ca662b1164ddc95f16ea076d6a1063b06e6a8fa4eac7740e5f73afbcc9d17244c5cc41373d5787f62cd58eab10249302c9')
|
||||||
validpgpkeys=(23CAB59E3332F94D26BEF0378D86E7FAE5EB0C10) # Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
validpgpkeys=(23CAB59E3332F94D26BEF0378D86E7FAE5EB0C10) # Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -59,14 +59,11 @@ prepare() {
|
||||||
# Install tests for check()
|
# Install tests for check()
|
||||||
sed -i 's|#tests = False|tests = True|' mplsetup.cfg
|
sed -i 's|#tests = False|tests = True|' mplsetup.cfg
|
||||||
# Use appropriate baseline images for tests
|
# Use appropriate baseline images for tests
|
||||||
cp lib/matplotlib/tests/baseline_images/test_image/uint16.tif .
|
rm ../mpl-images-3.5.0-with-freetype-${_ftver}/matplotlib/test_streamplot/streamplot_startpoints.*
|
||||||
for _module in matplotlib mpl_toolkits
|
for _module in matplotlib mpl_toolkits
|
||||||
do
|
do
|
||||||
rm -r lib/${_module}/tests/baseline_images/test*
|
cp -r ../mpl-images-3.5.0-with-freetype-${_ftver}/${_module}/* lib/${_module}/tests/baseline_images/
|
||||||
mv ../mpl-images-${pkgver}rc1-with-freetype-${_ftver}/${_module}/* lib/${_module}/tests/baseline_images/
|
|
||||||
done
|
done
|
||||||
# https://github.com/QuLogic/mpl-images/issues/1
|
|
||||||
cp uint16.tif lib/matplotlib/tests/baseline_images/test_image/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -78,9 +75,10 @@ check() {
|
||||||
cd matplotlib
|
cd matplotlib
|
||||||
python -m venv --system-site-packages test-env
|
python -m venv --system-site-packages test-env
|
||||||
test-env/bin/python setup.py install --skip-build
|
test-env/bin/python setup.py install --skip-build
|
||||||
# https://github.com/matplotlib/matplotlib/issues/21654
|
# test_ipynb: https://github.com/matplotlib/matplotlib/issues/21654
|
||||||
|
# test_pcolornearestunits: https://github.com/matplotlib/matplotlib/issues/21271
|
||||||
xvfb-run -a -s "-screen 0 640x480x24" \
|
xvfb-run -a -s "-screen 0 640x480x24" \
|
||||||
test-env/bin/python -m pytest -ra -n auto -v --color=yes --pyargs matplotlib mpl_toolkits.tests -k 'not test_ipynb'
|
test-env/bin/python -m pytest -ra -n auto -v --color=yes --pyargs matplotlib mpl_toolkits.tests -k 'not test_ipynb and not test_pcolornearestunits'
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
Loading…
Reference in a new issue