python3-mpmath: update to 1.3.0.
This commit is contained in:
parent
566d1157b3
commit
80d85f4c8b
2 changed files with 57 additions and 5 deletions
47
srcpkgs/python3-mpmath/patches/fix-pytest.patch
Normal file
47
srcpkgs/python3-mpmath/patches/fix-pytest.patch
Normal file
|
@ -0,0 +1,47 @@
|
|||
commit ccebfbacbe1dc65716b8b7a9cd3c930447dbfa03
|
||||
Author: Gonzalo Tornaría <tornaria@cmat.edu.uy>
|
||||
Date: Sun Mar 19 11:03:30 2023 -0300
|
||||
|
||||
Fix running pytest
|
||||
|
||||
Running pytest doesn't work quite right. Changes here:
|
||||
- move all pytest configuration from setup.cfg to pytest.ini to avoid
|
||||
having different configurations
|
||||
- add . to pythonpath so the mpmath module here takes precedence in
|
||||
case mpmath is installed in system
|
||||
- fix norecursedirs: doc/source/plots -> docs/plots
|
||||
- add build to norecursedirs so pytest works even after building mpmath
|
||||
- add '*.rst' to globs so pytest picks a few tests in docs/*.rst
|
||||
|
||||
diff --git a/pytest.ini b/pytest.ini
|
||||
index 95697f2..93f753f 100644
|
||||
--- a/pytest.ini
|
||||
+++ b/pytest.ini
|
||||
@@ -0,0 +1,10 @@
|
||||
+[pytest]
|
||||
+pythonpath = .
|
||||
+doctest_optionflags = IGNORE_EXCEPTION_DETAIL
|
||||
+addopts = --doctest-modules
|
||||
+ --ignore=setup.py
|
||||
+ --doctest-glob='*.txt'
|
||||
+ --doctest-glob='*.rst'
|
||||
+norecursedirs = docs/plots demo .eggs .git build
|
||||
+markers =
|
||||
+ slow: marks tests as slow (deselect with '-m "not slow"')
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index 9dd3067..2761b08 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -45,12 +45,6 @@ docs = sphinx
|
||||
select = E101,W191,W291,W293,E111,E112,E113,W292,W391
|
||||
exclude = .eggs,.git
|
||||
|
||||
-[tool:pytest]
|
||||
-doctest_optionflags = IGNORE_EXCEPTION_DETAIL
|
||||
-addopts = --doctest-modules
|
||||
- --ignore=setup.py
|
||||
- --doctest-glob='*.txt'
|
||||
-norecursedirs = doc/source/plots demo .eggs .git
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
|
@ -1,17 +1,22 @@
|
|||
# Template file for 'python3-mpmath'
|
||||
pkgname=python3-mpmath
|
||||
version=1.2.1
|
||||
revision=4
|
||||
version=1.3.0
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools_scm"
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3 python3-gmpy2"
|
||||
checkdepends="python3-pytest"
|
||||
checkdepends="$depends python3-pytest"
|
||||
short_desc="Python3 library for arbitrary-precision floating-point arithmetic"
|
||||
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="http://mpmath.org/"
|
||||
changelog="https://github.com/mpmath/mpmath/raw/master/CHANGES"
|
||||
distfiles="${PYPI_SITE}/m/mpmath/mpmath-${version}.tar.gz"
|
||||
checksum=79ffb45cf9f4b101a807595bcb3e72e0396202e0b1d25d689134b48c4216a81a
|
||||
checksum=7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f
|
||||
|
||||
if [ "$XBPS_CHECK_PKGS" != full ]; then
|
||||
make_check_args="-m not(slow)"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Add table
Reference in a new issue