[arch-commits] Commit in python-fixtures/repos/community-staging-any (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 20:16:52 UTC 2021


    Date: Wednesday, December 1, 2021 @ 20:16:52
  Author: felixonmars
Revision: 1060685

archrelease: copy trunk to community-staging-any

Added:
  python-fixtures/repos/community-staging-any/PKGBUILD
    (from rev 1060684, python-fixtures/trunk/PKGBUILD)
  python-fixtures/repos/community-staging-any/skip-tests-failing-in-Python-3.9.patch
    (from rev 1060684, python-fixtures/trunk/skip-tests-failing-in-Python-3.9.patch)
Deleted:
  python-fixtures/repos/community-staging-any/PKGBUILD
  python-fixtures/repos/community-staging-any/skip-tests-failing-in-Python-3.9.patch

----------------------------------------+
 PKGBUILD                               |   70 ++++++++++++------------
 skip-tests-failing-in-Python-3.9.patch |   90 +++++++++++++++----------------
 2 files changed, 80 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 20:16:42 UTC (rev 1060684)
+++ PKGBUILD	2021-12-01 20:16:52 UTC (rev 1060685)
@@ -1,35 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-fixtures
-pkgver=3.0.0
-pkgrel=11
-pkgdesc="Fixtures, reusable state for writing clean tests and more"
-arch=('any')
-license=('Apache')
-url="https://launchpad.net/python-fixtures"
-depends=('python-pbr' 'python-six' 'python-testtools')
-checkdepends=('python-subunit' 'python-mock')
-source=("https://pypi.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
-        skip-tests-failing-in-Python-3.9.patch)
-sha512sums=('e52ba864c42d15a8baa60583761006b2dd78e3cd5f3f043f5702346aef428b933d62e8fa5889b7cb4196e4072acc5df3b7ffa39702a1b782887bdc109299b695'
-            'c75dcab7db5db8a441ee9ff0630796d3a7cad36631d6d3f20eb6349e7eb4aa191a897a9948cedcabc5585e181def95d2adb2edb9714599c2e0566e81bdcea3b5')
-
-prepare() {
-  cd fixtures-$pkgver
-  patch -Np1 -i ../skip-tests-failing-in-Python-3.9.patch
-}
-
-build() {
-  cd fixtures-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd fixtures-$pkgver
-  python -m testtools.run fixtures.test_suite
-}
-
-package() {
-  cd fixtures-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-fixtures/repos/community-staging-any/PKGBUILD (from rev 1060684, python-fixtures/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-01 20:16:52 UTC (rev 1060685)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-fixtures
+pkgver=3.0.0
+pkgrel=12
+pkgdesc="Fixtures, reusable state for writing clean tests and more"
+arch=('any')
+license=('Apache')
+url="https://launchpad.net/python-fixtures"
+depends=('python-pbr' 'python-six' 'python-testtools')
+checkdepends=('python-subunit' 'python-mock')
+source=("https://pypi.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
+        skip-tests-failing-in-Python-3.9.patch)
+sha512sums=('e52ba864c42d15a8baa60583761006b2dd78e3cd5f3f043f5702346aef428b933d62e8fa5889b7cb4196e4072acc5df3b7ffa39702a1b782887bdc109299b695'
+            'c75dcab7db5db8a441ee9ff0630796d3a7cad36631d6d3f20eb6349e7eb4aa191a897a9948cedcabc5585e181def95d2adb2edb9714599c2e0566e81bdcea3b5')
+
+prepare() {
+  cd fixtures-$pkgver
+  patch -Np1 -i ../skip-tests-failing-in-Python-3.9.patch
+}
+
+build() {
+  cd fixtures-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd fixtures-$pkgver
+  python -m testtools.run fixtures.test_suite
+}
+
+package() {
+  cd fixtures-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Deleted: skip-tests-failing-in-Python-3.9.patch
===================================================================
--- skip-tests-failing-in-Python-3.9.patch	2021-12-01 20:16:42 UTC (rev 1060684)
+++ skip-tests-failing-in-Python-3.9.patch	2021-12-01 20:16:52 UTC (rev 1060685)
@@ -1,45 +0,0 @@
-From 2c87c998801c6ad3259a468ed815f72b2a11e508 Mon Sep 17 00:00:00 2001
-From: Javier Pena <jpena at redhat.com>
-Date: Thu, 1 Oct 2020 10:59:41 +0200
-Subject: [PATCH] Skip tests failing in Python 3.9
-
-Two monkeypatch-related tests are failing in Python 3.9 [1]. While
-the cause for the error is figured out, let's skip those two tests
-if running in Python 3.9.
-
-[1] - https://github.com/testing-cabal/fixtures/issues/44
----
- fixtures/tests/_fixtures/test_monkeypatch.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/fixtures/tests/_fixtures/test_monkeypatch.py b/fixtures/tests/_fixtures/test_monkeypatch.py
-index 6f11fab..8e89b7a 100644
---- a/fixtures/tests/_fixtures/test_monkeypatch.py
-+++ b/fixtures/tests/_fixtures/test_monkeypatch.py
-@@ -14,6 +14,7 @@
- # limitations under that license.
- 
- import functools
-+import sys
- 
- import testtools
- from testtools.matchers import Is
-@@ -181,6 +182,7 @@ class TestMonkeyPatch(testtools.TestCase, TestWithFixtures):
-         self._check_restored_static_or_class_method(oldmethod, oldmethod_inst,
-                 C, 'foo_cls')
- 
-+    @testtools.skipIf(sys.version_info > (3, 8), "Fails with Python 3.9")
-     def test_patch_classmethod_with_classmethod(self):
-         oldmethod = C.foo_cls
-         oldmethod_inst = C().foo_cls
-@@ -212,6 +214,7 @@ class TestMonkeyPatch(testtools.TestCase, TestWithFixtures):
-         self._check_restored_static_or_class_method(oldmethod, oldmethod_inst,
-                 C, 'foo_cls')
- 
-+    @testtools.skipIf(sys.version_info > (3, 8), "Fails with Python 3.9")
-     def test_patch_classmethod_with_boundmethod(self):
-         oldmethod = C.foo_cls
-         oldmethod_inst = C().foo_cls
--- 
-2.26.2
-

Copied: python-fixtures/repos/community-staging-any/skip-tests-failing-in-Python-3.9.patch (from rev 1060684, python-fixtures/trunk/skip-tests-failing-in-Python-3.9.patch)
===================================================================
--- skip-tests-failing-in-Python-3.9.patch	                        (rev 0)
+++ skip-tests-failing-in-Python-3.9.patch	2021-12-01 20:16:52 UTC (rev 1060685)
@@ -0,0 +1,45 @@
+From 2c87c998801c6ad3259a468ed815f72b2a11e508 Mon Sep 17 00:00:00 2001
+From: Javier Pena <jpena at redhat.com>
+Date: Thu, 1 Oct 2020 10:59:41 +0200
+Subject: [PATCH] Skip tests failing in Python 3.9
+
+Two monkeypatch-related tests are failing in Python 3.9 [1]. While
+the cause for the error is figured out, let's skip those two tests
+if running in Python 3.9.
+
+[1] - https://github.com/testing-cabal/fixtures/issues/44
+---
+ fixtures/tests/_fixtures/test_monkeypatch.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/fixtures/tests/_fixtures/test_monkeypatch.py b/fixtures/tests/_fixtures/test_monkeypatch.py
+index 6f11fab..8e89b7a 100644
+--- a/fixtures/tests/_fixtures/test_monkeypatch.py
++++ b/fixtures/tests/_fixtures/test_monkeypatch.py
+@@ -14,6 +14,7 @@
+ # limitations under that license.
+ 
+ import functools
++import sys
+ 
+ import testtools
+ from testtools.matchers import Is
+@@ -181,6 +182,7 @@ class TestMonkeyPatch(testtools.TestCase, TestWithFixtures):
+         self._check_restored_static_or_class_method(oldmethod, oldmethod_inst,
+                 C, 'foo_cls')
+ 
++    @testtools.skipIf(sys.version_info > (3, 8), "Fails with Python 3.9")
+     def test_patch_classmethod_with_classmethod(self):
+         oldmethod = C.foo_cls
+         oldmethod_inst = C().foo_cls
+@@ -212,6 +214,7 @@ class TestMonkeyPatch(testtools.TestCase, TestWithFixtures):
+         self._check_restored_static_or_class_method(oldmethod, oldmethod_inst,
+                 C, 'foo_cls')
+ 
++    @testtools.skipIf(sys.version_info > (3, 8), "Fails with Python 3.9")
+     def test_patch_classmethod_with_boundmethod(self):
+         oldmethod = C.foo_cls
+         oldmethod_inst = C().foo_cls
+-- 
+2.26.2
+



More information about the arch-commits mailing list