[arch-commits] Commit in python-unittest-xml-reporting/repos/community-staging-any (3 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 31 23:46:20 UTC 2019
Date: Thursday, October 31, 2019 @ 23:46:18
Author: felixonmars
Revision: 521736
archrelease: copy trunk to community-staging-any
Added:
python-unittest-xml-reporting/repos/community-staging-any/PKGBUILD
(from rev 521735, python-unittest-xml-reporting/trunk/PKGBUILD)
python-unittest-xml-reporting/repos/community-staging-any/unittest-xml-reporting-python-3.8.patch
(from rev 521735, python-unittest-xml-reporting/trunk/unittest-xml-reporting-python-3.8.patch)
Deleted:
python-unittest-xml-reporting/repos/community-staging-any/PKGBUILD
-----------------------------------------+
PKGBUILD | 73 ++++++++++++++++--------------
unittest-xml-reporting-python-3.8.patch | 14 +++++
2 files changed, 54 insertions(+), 33 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 23:46:05 UTC (rev 521735)
+++ PKGBUILD 2019-10-31 23:46:18 UTC (rev 521736)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Thomas S Hatch <thatch45 at gmail.com>
-
-pkgname=python-unittest-xml-reporting
-pkgver=2.5.1
-pkgrel=3
-pkgdesc='unittest-based test runner with Ant/JUnit like XML reporting.'
-arch=('any')
-url='https://github.com/xmlrunner/unittest-xml-reporting'
-license=('BSD')
-depends=('python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-lxml' 'python-mock')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/xmlrunner/unittest-xml-reporting/archive/$pkgver.tar.gz")
-sha512sums=('86e3c78d0f5f41c05214e080bf31d47bf0c33d4d6b8ad8a6d9b5286086cab4d7b6e7bea27cda94e9184afc5830709d1ae6bc72355f4a9306d842d8abc01df7ca')
-
-build() {
- cd unittest-xml-reporting-$pkgver
- python setup.py build
-}
-
-check() {
- cd unittest-xml-reporting-$pkgver
- python setup.py test
-}
-
-package() {
- cd unittest-xml-reporting-$pkgver
- python setup.py install --root="$pkgdir" -O1
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-unittest-xml-reporting/repos/community-staging-any/PKGBUILD (from rev 521735, python-unittest-xml-reporting/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-31 23:46:18 UTC (rev 521736)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgname=python-unittest-xml-reporting
+pkgver=2.5.1
+pkgrel=4
+pkgdesc='unittest-based test runner with Ant/JUnit like XML reporting.'
+arch=('any')
+url='https://github.com/xmlrunner/unittest-xml-reporting'
+license=('BSD')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-lxml' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/xmlrunner/unittest-xml-reporting/archive/$pkgver.tar.gz"
+ unittest-xml-reporting-python-3.8.patch)
+sha512sums=('86e3c78d0f5f41c05214e080bf31d47bf0c33d4d6b8ad8a6d9b5286086cab4d7b6e7bea27cda94e9184afc5830709d1ae6bc72355f4a9306d842d8abc01df7ca'
+ 'c75efff884d8587dc34455e32f92f104827d7d9f21fc1e221e95d77911abbda41f09c9ef0247501ba4f3034ea650c236ddcae03956bd07b02711f0436b0499f7')
+
+prepare() {
+ cd unittest-xml-reporting-$pkgver
+ patch -p1 -i ../unittest-xml-reporting-python-3.8.patch # Update test for python 3.8
+}
+
+build() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py install --root="$pkgdir" -O1
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: python-unittest-xml-reporting/repos/community-staging-any/unittest-xml-reporting-python-3.8.patch (from rev 521735, python-unittest-xml-reporting/trunk/unittest-xml-reporting-python-3.8.patch)
===================================================================
--- unittest-xml-reporting-python-3.8.patch (rev 0)
+++ unittest-xml-reporting-python-3.8.patch 2019-10-31 23:46:18 UTC (rev 521736)
@@ -0,0 +1,14 @@
+diff --git a/tests/testsuite.py b/tests/testsuite.py
+index 0b0cb7a..5de5814 100755
+--- a/tests/testsuite.py
++++ b/tests/testsuite.py
+@@ -306,8 +306,7 @@ class XMLTestRunnerTestCase(unittest.TestCase):
+ outdir.seek(0)
+ output = outdir.read()
+ self.assertIn(
+- u'<skipped message="demonstrating non-ascii skipping: éçà" '
+- u'type="skip"/>'.encode('utf8'),
++ u'<skipped type="skip" message="demonstrating non-ascii skipping: éçà"/>'.encode('utf8'),
+ output)
+
+ def test_xmlrunner_safe_xml_encoding_name(self):
More information about the arch-commits
mailing list