Date: Monday, May 1, 2023 @ 19:13:17
  Author: jelle
Revision: 1455755

upgpkg: python-yarg 0.1.9-10: drop python-mock depend

Added:
  python-yarg/trunk/drop-python-mock-dependency.patch
Modified:
  python-yarg/trunk/PKGBUILD

-----------------------------------+
 PKGBUILD                          |   15 ++++++++---
 drop-python-mock-dependency.patch |   46 ++++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-01 19:12:59 UTC (rev 1455754)
+++ PKGBUILD    2023-05-01 19:13:17 UTC (rev 1455755)
@@ -2,7 +2,7 @@
 
 pkgname=python-yarg
 pkgver=0.1.9
-pkgrel=9
+pkgrel=10
 pkgdesc="A semi hard Cornish cheese, also queries PyPI (PyPI client)"
 url="https://github.com/kura/yarg";
 license=('MIT')
@@ -9,10 +9,17 @@
 arch=('any')
 depends=('python-requests')
 makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-mock')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/kura/yarg/archive/$pkgver.tar.gz";)
-sha512sums=('1083608b0c2f84d15c27af9c9fbaf802e9f770518fc2c46bd6ba07d2123d4ad0a9ac7673a14714e579664ffef44667a21d1bec6417d9075c315749175bcd8fd9')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kura/yarg/archive/$pkgver.tar.gz";
+       drop-python-mock-dependency.patch)
+sha512sums=('1083608b0c2f84d15c27af9c9fbaf802e9f770518fc2c46bd6ba07d2123d4ad0a9ac7673a14714e579664ffef44667a21d1bec6417d9075c315749175bcd8fd9'
+            
'd0872a7b69b1aa3c91fd85b32163e9f15212e03f4602e789caa23e3627fc969363ee423d9e2beef130cb09c6a14c78058a3f45c73d0ef3880e810bdb15d195a8')
 
+prepare() {
+  cd yarg-$pkgver
+  patch -Np1 -i ${srcdir}/drop-python-mock-dependency.patch
+}
+
 build() {
   cd yarg-$pkgver
   python setup.py build

Added: drop-python-mock-dependency.patch
===================================================================
--- drop-python-mock-dependency.patch                           (rev 0)
+++ drop-python-mock-dependency.patch   2023-05-01 19:13:17 UTC (rev 1455755)
@@ -0,0 +1,46 @@
+diff -aur yarg-0.1.9.old/requirements-test.txt yarg-0.1.9/requirements-test.txt
+--- yarg-0.1.9.old/requirements-test.txt       2023-05-01 21:05:56.850103096 
+0200
++++ yarg-0.1.9/requirements-test.txt   2023-05-01 21:06:37.230760899 +0200
+@@ -1,3 +1,2 @@
+ nose
+ coveralls
+-mock
+diff -aur yarg-0.1.9.old/tests/test_client.py yarg-0.1.9/tests/test_client.py
+--- yarg-0.1.9.old/tests/test_client.py        2023-05-01 21:05:56.850103096 
+0200
++++ yarg-0.1.9/tests/test_client.py    2023-05-01 21:06:09.133639028 +0200
+@@ -1,7 +1,7 @@
+ import os
+ import unittest
+ 
+-from mock import call, MagicMock, patch
++from unittest.mock import call, MagicMock, patch
+ 
+ from yarg import get, HTTPError
+ 
+diff -aur yarg-0.1.9.old/tests/test_parse.py yarg-0.1.9/tests/test_parse.py
+--- yarg-0.1.9.old/tests/test_parse.py 2023-05-01 21:05:56.850103096 +0200
++++ yarg-0.1.9/tests/test_parse.py     2023-05-01 21:06:09.133639028 +0200
+@@ -2,7 +2,7 @@
+ import os
+ import unittest
+ 
+-from mock import call, MagicMock, patch
++from unittest.mock import call, MagicMock, patch
+ 
+ from yarg import newest_packages, latest_updated_packages, HTTPError
+ from yarg.parse import _get, Package
+diff -aur yarg-0.1.9.old/tox.ini yarg-0.1.9/tox.ini
+--- yarg-0.1.9.old/tox.ini     2023-05-01 21:05:56.850103096 +0200
++++ yarg-0.1.9/tox.ini 2023-05-01 21:06:09.133639028 +0200
+@@ -1,10 +1,9 @@
+ [tox]
+-envlist = py26, py27, py33, py34, pypy, pypy3, docs, flake8
++envlist = py26, py27, py33, py34, py38, pypy, pypy3, docs, flake8
+ 
+ [testenv]
+ deps = nose
+        requests
+-       mock
+ commands = nosetests
+ 
+ [testenv:flake8]

Reply via email to