Date: Saturday, November 12, 2022 @ 02:05:48
  Author: polyzen
Revision: 1346945

Remove python-mock checkdep

https://archlinux.org/todo/drop-python-mock-checkdepends/

Modified:
  python-installer/trunk/PKGBUILD
  python-pytest/trunk/PKGBUILD
  python-rstcheck-core/trunk/PKGBUILD

-------------------------------------+
 python-installer/trunk/PKGBUILD     |    4 ++--
 python-pytest/trunk/PKGBUILD        |   17 +++++++++++------
 python-rstcheck-core/trunk/PKGBUILD |   16 ++++++++++------
 3 files changed, 23 insertions(+), 14 deletions(-)

Modified: python-installer/trunk/PKGBUILD
===================================================================
--- python-installer/trunk/PKGBUILD     2022-11-12 01:49:44 UTC (rev 1346944)
+++ python-installer/trunk/PKGBUILD     2022-11-12 02:05:48 UTC (rev 1346945)
@@ -4,7 +4,7 @@
 _pkgname=installer
 pkgname=python-$_pkgname
 pkgver=0.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Low-level library for installing a Python package from a wheel 
distribution'
 arch=('any')
 url='https://github.com/pypa/installer'
@@ -13,7 +13,7 @@
 makedepends=('git' 'python-flit-core' 'python-build'
              'python-sphinx' 'python-sphinx-furo' 'python-myst-parser'
              'python-sphinx-argparse')
-checkdepends=('python-pytest' 'python-mock')
+checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
 
sha512sums=('0320c1795c98a593b5da46775465e26bdf8736f59835970517cb02f2756030a3744b9385a9342e8062362d0769d585ff6cce504fdf105e99d27d6ba40281842b')
 

Modified: python-pytest/trunk/PKGBUILD
===================================================================
--- python-pytest/trunk/PKGBUILD        2022-11-12 01:49:44 UTC (rev 1346944)
+++ python-pytest/trunk/PKGBUILD        2022-11-12 02:05:48 UTC (rev 1346945)
@@ -4,7 +4,7 @@
 
 pkgname=python-pytest
 pkgver=7.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
@@ -13,15 +13,18 @@
          'python-packaging' 'python-pluggy' 'python-tomli')
 makedepends=('python-build' 'python-installer' 'python-setuptools'
              'python-wheel')
-checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
-              'python-nose' 'python-requests' 'python-xmlschema'
+checkdepends=('python-argcomplete' 'python-hypothesis' 'python-nose'
+              'python-requests' 'python-xmlschema'
               # Unlisted, but actually used. Check again after a while:
               'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
               'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
               'python-pytest-xdist' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz";)
-sha256sums=('c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59')
-b2sums=('051c1c28aae1b2ff97af0b6e58046d8d3ee9b72909d4c8360f7ca3b9f2ed46f24a6db2d6138d1a629ec650bf7b0a14d89b44d0779340c31b60abb8608defd30b')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz";
+        
'pytest-fix_test_raising_repr_test.patch::https://github.com/pytest-dev/pytest/commit/54d5a63d1485110015665ece1065982407394517.patch')
+sha256sums=('c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59'
+            '0b9325fd0ab8789f3dbe82c09cb9a9cfd2aa52383925d4b8c699203c7c4284fd')
+b2sums=('051c1c28aae1b2ff97af0b6e58046d8d3ee9b72909d4c8360f7ca3b9f2ed46f24a6db2d6138d1a629ec650bf7b0a14d89b44d0779340c31b60abb8608defd30b'
+        
'f87c12594070e567169bfd3ea2c0d62879b564085bdbab9b096e51061280254ef1257bc763a71f8a11d5aaaff062baf22a0a4ed28d04ee697cf93d53b411bf21')
 
 # Remove dep on setuptools_scm
 prepare() {
@@ -30,6 +33,8 @@
   /setuptools-scm/d" setup.cfg
   sed -i '/setuptools-scm\|wheel/d
   /\[tool.setuptools_scm\]/,/^$/d' pyproject.toml
+
+  patch --forward --strip=1 --input=../pytest-fix_test_raising_repr_test.patch
 }
 
 build() {

Modified: python-rstcheck-core/trunk/PKGBUILD
===================================================================
--- python-rstcheck-core/trunk/PKGBUILD 2022-11-12 01:49:44 UTC (rev 1346944)
+++ python-rstcheck-core/trunk/PKGBUILD 2022-11-12 02:05:48 UTC (rev 1346945)
@@ -3,7 +3,7 @@
 _name=rstcheck-core
 pkgname=python-rstcheck-core
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Checks syntax of reStructuredText and code blocks nested within it'
 arch=('any')
 url=https://github.com/rstcheck/rstcheck-core
@@ -10,18 +10,22 @@
 license=('MIT')
 depends=('python-docutils' 'python-pydantic' 'python-typing_extensions')
 makedepends=('python-build' 'python-installer' 'python-poetry-core')
-checkdepends=('python-mock' 'python-pytest' 'python-pytest-mock'
-              'python-sphinx')
+checkdepends=('python-pytest' 'python-pytest-mock' 'python-sphinx')
 optdepends=('python-sphinx: for Sphinx support'
             'python-tomli: for pyproject.toml support')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";)
-sha256sums=('b06bee11f3679b283cbd6abf707bfe4d5fd2cf480cfa3ffe6d5c9238c6d4ae89')
-b2sums=('7cf348e19cd63d8e34d81b98884310c9e917b4985d13128920a5e2037538a4afa145e24a0dcb9ac03b862b385fa4df397e2272e7952c8f81a489aa4f726fa34d')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";
+        
'rstcheck-core-use_stdlib_mock.patch::https://github.com/rstcheck/rstcheck-core/commit/f16b9f5c01b7b62bc57bc894c503735b24b4a2e6.patch')
+sha256sums=('b06bee11f3679b283cbd6abf707bfe4d5fd2cf480cfa3ffe6d5c9238c6d4ae89'
+            '96446ea2b460a56e852dcdcb258837381d10e70f28578108c673601cfba96efa')
+b2sums=('7cf348e19cd63d8e34d81b98884310c9e917b4985d13128920a5e2037538a4afa145e24a0dcb9ac03b862b385fa4df397e2272e7952c8f81a489aa4f726fa34d'
+        
'60c8331d1ee5374c8e1a31ca384cab8c40a5d44655ba1101476031de05b20b3a3bd2bf227f7ca8f790c666676cd03b04f519c2b085f569d76966a7652e2d26ca')
 
 prepare() {
   cd $_name-$pkgver
   # Remove include list https://github.com/pypa/wheel/issues/92
   sed -i '/^include =/d' pyproject.toml
+
+  patch --forward --strip=1 --input=../rstcheck-core-use_stdlib_mock.patch
 }
 
 build() {

Reply via email to