[arch-commits] Commit in python-nose-random/trunk (PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Sep 15 23:57:42 UTC 2019


    Date: Sunday, September 15, 2019 @ 23:57:42
  Author: yan12125
Revision: 510837

upgpkg: python-nose-random 1.0.0-3

* Update homepage and source URLs; upstream project has been transferred to a
  different GitHub organization.
* Disable check(). See details below.

`examples/tests.py` is more like a demonstration rather than a unit test
suite. `failling_test()` fails, but with a small probability (5%), so I
didn't notice that.

There are more issues. When a test fails, another exception occurs if the
interpreter is Python 3:

    AttributeError: 'AssertionError' object has no attribute 'message'

This is because PEP 352 [1] removed the message attribute.

As python-nose is dead [2], and will be broken as of Python 3.10 as it
uses imp [3], I will not put efforts into fixing python-nose-random. In
the future, I will ask if jsondiff can switch to pytest or nose2.

[1] https://www.python.org/dev/peps/pep-0352/
[2] https://github.com/nose-devs/nose/issues/1092
[3] https://www.python.org/dev/peps/pep-0594/

Modified:
  python-nose-random/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-15 23:57:23 UTC (rev 510836)
+++ PKGBUILD	2019-09-15 23:57:42 UTC (rev 510837)
@@ -4,14 +4,14 @@
 pkgname=python-nose-random
 _pkgname=nose-random
 pkgver=1.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Nose plugin to facilitate randomized unit testing'
 arch=(any)
-url='https://github.com/ZoomerAnalytics/nose-random'
+url='https://github.com/xlwings/nose-random'
 license=(MIT)
 depends=(python-nose)
 makedepends=(python-setuptools)
-source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ZoomerAnalytics/nose-random/archive/$pkgver.tar.gz")
+source=("https://github.com/xlwings/nose-random/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha256sums=('528b1c9396cfa415741afaad60ecde695a657c9364dc01240050c747192f5148')
 
 build() {
@@ -19,11 +19,6 @@
   python setup.py build
 }
 
-check() {
-  cd $_pkgname-$pkgver
-  nosetests -v examples
-}
-
 package() {
   cd $_pkgname-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build



More information about the arch-commits mailing list