[arch-commits] Commit in python-parameterized/repos/community-any (3 files)

Felix Yan felixonmars at archlinux.org
Wed Apr 22 09:06:05 UTC 2020


    Date: Wednesday, April 22, 2020 @ 09:06:04
  Author: felixonmars
Revision: 617609

archrelease: copy trunk to community-any

Added:
  python-parameterized/repos/community-any/PKGBUILD
    (from rev 617608, python-parameterized/trunk/PKGBUILD)
Deleted:
  python-parameterized/repos/community-any/PKGBUILD
  python-parameterized/repos/community-any/skip_Documentation_tests.patch

--------------------------------+
 PKGBUILD                       |   70 +++++++++++++++++----------------------
 skip_Documentation_tests.patch |   20 -----------
 2 files changed, 31 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-22 09:05:54 UTC (rev 617608)
+++ PKGBUILD	2020-04-22 09:06:04 UTC (rev 617609)
@@ -1,39 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-parameterized
-pkgver=0.7.3
-pkgrel=1
-pkgdesc="Parameterized testing with any Python test framework"
-url="https://github.com/wolever/parameterized"
-license=('BSD')
-arch=('any')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-mock')
-source=("https://pypi.io/packages/source/p/parameterized/parameterized-$pkgver.tar.gz"
-        skip_Documentation_tests.patch)
-sha512sums=('ff4ce23356bbaa13bd92f41bb57b650cd1cf3074ac33116ccb88e37bfae8a1bf6ce7015246e0e7788b247fa8f8b3780cdc73e8760b252e8458e4e15719c14dda'
-            '70a2408e954c8d19dc80b8de472f0d83d8ae44a7360f72855236ce2c239dde417c9e1bad2ad09855c1538e99e228a4cc1a2e81c6d2edf9fa1718f7cb400f2d54')
-
-prepare() {
-  cd parameterized-$pkgver
-  # https://github.com/wolever/parameterized/issues/84
-  patch -p1 -i ../skip_Documentation_tests.patch
-}
-
-build() {
-  cd parameterized-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd parameterized-$pkgver
-  python setup.py nosetests
-}
-
-package() {
-  cd parameterized-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}

Copied: python-parameterized/repos/community-any/PKGBUILD (from rev 617608, python-parameterized/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-22 09:06:04 UTC (rev 617609)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parameterized
+pkgver=0.7.4
+pkgrel=1
+pkgdesc="Parameterized testing with any Python test framework"
+url="https://github.com/wolever/parameterized"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock')
+source=("https://pypi.io/packages/source/p/parameterized/parameterized-$pkgver.tar.gz")
+sha512sums=('71c51ad57900f5b1b6f4866c60ba4d23649df7740e7f7e735a2e0faf4810bc8dc552a1647da8c174f8a0b80db7de5727ce24dabc9fee6b4cfe12ee98c18945d7')
+
+build() {
+  cd parameterized-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd parameterized-$pkgver
+  python setup.py nosetests
+}
+
+package() {
+  cd parameterized-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}

Deleted: skip_Documentation_tests.patch
===================================================================
--- skip_Documentation_tests.patch	2020-04-22 09:05:54 UTC (rev 617608)
+++ skip_Documentation_tests.patch	2020-04-22 09:06:04 UTC (rev 617609)
@@ -1,20 +0,0 @@
---- a/parameterized/test.py
-+++ b/parameterized/test.py
-@@ -2,7 +2,8 @@
- 
- import inspect
- import mock
--from unittest import TestCase
-+import sys
-+from unittest import TestCase, skipIf
- from nose.tools import assert_equal, assert_raises
- 
- from .parameterized import (
-@@ -241,6 +242,7 @@ class TestParamerizedOnTestCase(TestCase
-         missing_tests.remove("%s(%r, bar=%r)" %(expected_name, foo, bar))
- 
- 
-+ at skipIf(sys.version_info[:2] >= (3, 8), "Doesn't work with Python 3.8")
- class TestParameterizedExpandDocstring(TestCase):
-     def _assert_docstring(self, expected_docstring, rstrip=False):
-         """ Checks the current test method's docstring. Must be called directly



More information about the arch-commits mailing list