Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-testrepository


Commits:
69caef84 by Jelle van der Waa at 2025-12-18T21:40:30+01:00
upgpkg: 0.0.21-4: Rebuild for Python 3.14

- - - - -


4 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- + remove-broken-test.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-testrepository
        pkgdesc = A repository of test results.
        pkgver = 0.0.21
-       pkgrel = 3
+       pkgrel = 4
        url = https://launchpad.net/testrepository
        arch = any
        license = Apache-2.0 OR BSD-3-Clause
@@ -18,6 +18,8 @@ pkgbase = python-testrepository
        depends = python-fixtures
        depends = python-subunit
        source = 
python-testrepository-0.0.21.tar.gz::https://github.com/testing-cabal/testrepository/archive/refs/tags/0.0.21.tar.gz
+       source = remove-broken-test.patch
        sha512sums = 
90fadfc78831f03e42cba08e2dab31fe15dcd61e9d78c726afcd99c84368fff4ff38ff715d60f5573058354ebf6d17e60f981a2bcae953fd95229ee41400ea3d
+       sha512sums = 
7870d06fd02e9657d771722d8d0afbada747f05edbaa0bae3e82857d52bbceb3d4c76117f55b75a5f549a6ae2627c5ca8f0745030fe186cd0c8597c187f88521
 
 pkgname = python-testrepository


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-testrepository
 pkgver=0.0.21
-pkgrel=3
+pkgrel=4
 pkgdesc="A repository of test results."
 arch=('any')
 license=('Apache-2.0 OR BSD-3-Clause')
@@ -10,8 +10,15 @@ url="https://launchpad.net/testrepository";
 depends=('python' 'python-testtools' 'python-fixtures' 'python-subunit')
 makedepends=('python-hatchling' 'python-hatch-vcs' 'python-build' 
'python-installer' 'python-wheel')
 checkdepends=('python-testresources' 'python-pytz' 'python-testscenarios')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/testrepository/archive/refs/tags/$pkgver.tar.gz";)
-sha512sums=('90fadfc78831f03e42cba08e2dab31fe15dcd61e9d78c726afcd99c84368fff4ff38ff715d60f5573058354ebf6d17e60f981a2bcae953fd95229ee41400ea3d')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/testrepository/archive/refs/tags/$pkgver.tar.gz";
+       "remove-broken-test.patch")
+sha512sums=('90fadfc78831f03e42cba08e2dab31fe15dcd61e9d78c726afcd99c84368fff4ff38ff715d60f5573058354ebf6d17e60f981a2bcae953fd95229ee41400ea3d'
+            
'7870d06fd02e9657d771722d8d0afbada747f05edbaa0bae3e82857d52bbceb3d4c76117f55b75a5f549a6ae2627c5ca8f0745030fe186cd0c8597c187f88521')
+
+prepare() {
+  cd testrepository-$pkgver
+  patch -Np1 -i ${srcdir}/remove-broken-test.patch
+}
 
 build() {
   cd testrepository-$pkgver


=====================================
REUSE.toml
=====================================
@@ -20,3 +20,10 @@ path = [
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"
+
+[[annotations]]
+path = [
+    "remove-broken-test.patch",
+]
+SPDX-FileCopyrightText = "python-testrepository contributors"
+SPDX-License-Identifier = "0BSD"


=====================================
remove-broken-test.patch
=====================================
@@ -0,0 +1,37 @@
+diff -aur testrepository-0.0.21.old/testrepository/tests/test_repository.py 
testrepository-0.0.21/testrepository/tests/test_repository.py
+--- testrepository-0.0.21.old/testrepository/tests/test_repository.py  
2025-12-18 21:37:16.617154784 +0100
++++ testrepository-0.0.21/testrepository/tests/test_repository.py      
2025-12-18 21:37:43.415060086 +0100
+@@ -358,33 +358,6 @@
+         run = repo.get_test_run(inserted)
+         self.assertEqual(inserted, run.get_id())
+ 
+-    def test_get_test_run_preserves_time(self):
+-        self.skip('Fix me before releasing.')
+-        # The test run outputs the time events that it received.
+-        now = datetime(2001, 1, 1, 0, 0, 0, tzinfo=iso8601.UTC)
+-        second = timedelta(seconds=1)
+-        repo = self.repo_impl.initialise(self.sample_url)
+-        test_id = self.getUniqueString()
+-        test = make_test(test_id, True)
+-        result = repo.get_inserter()
+-        result.startTestRun()
+-        result.status(timestamp=now, test_id=test_id, 
test_status='inprogress')
+-        result.status(timestamp=(now + 1 * second), test_id=test_id, 
test_status='success')
+-        inserted = result.stopTestRun()
+-        run = repo.get_test_run(inserted)
+-        result = ExtendedTestResult()
+-        run.get_test().run(result)
+-        self.assertEqual(
+-            [('time', now),
+-             ('tags', set(), set()),
+-             ('startTest', Wildcard),
+-             ('time', now + 1 * second),
+-             ('addSuccess', Wildcard),
+-             ('stopTest', Wildcard),
+-             ('tags', set(), set()),
+-             ],
+-            result._events)
+-
+     def test_get_failing_get_id(self):
+         repo = self.repo_impl.initialise(self.sample_url)
+         result = repo.get_inserter()



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-testrepository/-/commit/69caef84ca09ac60a32fe22c407e36d3405e6987

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-testrepository/-/commit/69caef84ca09ac60a32fe22c407e36d3405e6987
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to