python3-matplotlib: update to 3.5.3.

This commit is contained in:
Andrew J. Hesford 2022-08-11 08:33:08 -04:00
parent 86535fd840
commit e0fcc8039b
2 changed files with 29 additions and 7 deletions

View file

@ -0,0 +1,26 @@
The maximum version of setuptools_scm is pinned below 6 for no apparent reason
and Void ships 7.x; remove the upper version restriction and also drop the
requirement for setuptools_scm_git_archive that was originally patched out in
the template.
--- a/setup.py
+++ b/setup.py
@@ -316,8 +316,7 @@
setup_requires=[
"certifi>=2020.06.20",
"numpy>=1.17",
- "setuptools_scm>=4,<7",
- "setuptools_scm_git_archive",
+ "setuptools_scm>=4",
],
install_requires=[
"cycler>=0.10",
@@ -330,7 +329,7 @@
"python-dateutil>=2.7",
] + (
# Installing from a git checkout that is not producing a wheel.
- ["setuptools_scm>=4,<7"] if (
+ ["setuptools_scm>=4"] if (
Path(__file__).with_name(".git").exists() and
os.environ.get("CIBUILDWHEEL", "0") != "1"
) else []

View file

@ -1,8 +1,8 @@
# Template file for 'python3-matplotlib'
pkgname=python3-matplotlib
reverts="3.5.2_1"
version=3.5.1
revision=2
version=3.5.3
revision=1
wrksrc="matplotlib-${version}"
build_style=python3-module
build_helper="numpy"
@ -15,15 +15,11 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="custom:matplotlib, BSD-3-Clause, MIT"
homepage="https://matplotlib.org/"
distfiles="https://github.com/matplotlib/matplotlib/archive/v${version}.tar.gz"
checksum=9683da9a0c84d1c42d1bf92ecf6e012d302406a38fd987e3dfbcb7b58b2eea2d
checksum=9d6ee7190fde3cb0c6285d462a0258c9735a72c7b532321a3983e05076aa41dc
replaces="python3-matplotlib-data>=0"
# Comparison of images is too frail for validation
make_check="no"
post_patch() {
vsed -e '/setuptools_scm_git_archive/d' -i setup.py
}
pre_build() {
cat <<-EOF > mplsetup.cfg
[libs]