Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-ipython-genutils


Commits:
a86f920c by Antonio Rojas at 2024-11-20T10:48:20+01:00
upgpkg: 0.2.0-4: Python 3.13 rebuild

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- − python-3.12.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,19 +1,18 @@
 pkgbase = python-ipython-genutils
        pkgdesc = Vestigial utilities from IPython
        pkgver = 0.2.0
-       pkgrel = 3
+       pkgrel = 4
        url = http://ipython.org/
        arch = any
-       license = BSD
+       license = BSD-3-Clause
        checkdepends = python-nose
+       makedepends = git
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-wheel
        depends = python
-       source = 
https://files.pythonhosted.org/packages/source/i/ipython_genutils/ipython_genutils-0.2.0.tar.gz
-       source = python-3.12.patch
-       sha256sums = 
eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8
-       sha256sums = 
9733e6604a67e2e7652436827e7c5f72326c15f84403b0b2985abd3fce936f96
+       source = git+https://github.com/ipython/ipython_genutils#tag=0.2.0
+       sha256sums = 
30652fe4cffe207eb85a25b45ad2ea6ce536be8e1d29d67fef2cb02af097a61b
 
 pkgname = python-ipython-genutils


=====================================
PKGBUILD
=====================================
@@ -3,38 +3,38 @@
 pkgname=python-ipython-genutils
 _name=ipython_genutils
 pkgver=0.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Vestigial utilities from IPython'
 arch=(any)
 url='http://ipython.org/'
-license=(BSD)
+license=(BSD-3-Clause)
 depends=(python)
-makedepends=(python-build
+makedepends=(git
+             python-build
              python-installer
              python-setuptools
              python-wheel)
 checkdepends=(python-nose)
-source=(https://files.pythonhosted.org/packages/source/i/$_name/$_name-$pkgver.tar.gz
-        python-3.12.patch)
-sha256sums=('eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8'
-            '9733e6604a67e2e7652436827e7c5f72326c15f84403b0b2985abd3fce936f96')
+source=(git+https://github.com/ipython/ipython_genutils#tag=$pkgver)
+sha256sums=('30652fe4cffe207eb85a25b45ad2ea6ce536be8e1d29d67fef2cb02af097a61b')
 
 prepare() {
-  patch -d $_name-$pkgver -p1 < python-3.12.patch # Fix tests with python 3.11
+  cd $_name
+  git cherry-pick -n 27279feaed2cd253b50683db9239d829de48f64a # Fix tests with 
python 3.11
 }
 
 build() {
-  cd $_name-$pkgver
+  cd $_name
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd $_name-$pkgver
+  cd $_name
   nosetests
 }
 
 package() {
-  cd $_name-$pkgver
+  cd $_name
   python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 COPYING.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }


=====================================
python-3.12.patch deleted
=====================================
@@ -1,35 +0,0 @@
-From 27279feaed2cd253b50683db9239d829de48f64a Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
-Date: Mon, 29 Nov 2021 12:27:00 +0100
-Subject: [PATCH] Don't use deprecated unittest aliases trough nose, they are
- removed in Python 3.11
-
----
- ipython_genutils/tests/test_path.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/ipython_genutils/tests/test_path.py 
b/ipython_genutils/tests/test_path.py
-index 04ca85d..4a9e75d 100644
---- a/ipython_genutils/tests/test_path.py
-+++ b/ipython_genutils/tests/test_path.py
-@@ -47,17 +47,17 @@ def dst(self, *args):
-         return os.path.join(self.tempdir.name, *args)
- 
-     def assert_inode_not_equal(self, a, b):
--        nt.assert_not_equals(os.stat(a).st_ino, os.stat(b).st_ino,
-+        nt.assert_not_equal(os.stat(a).st_ino, os.stat(b).st_ino,
-                              "%r and %r do reference the same indoes" %(a, b))
- 
-     def assert_inode_equal(self, a, b):
--        nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino,
-+        nt.assert_equal(os.stat(a).st_ino, os.stat(b).st_ino,
-                          "%r and %r do not reference the same indoes" %(a, b))
- 
-     def assert_content_equal(self, a, b):
-         with open(a) as a_f:
-             with open(b) as b_f:
--                nt.assert_equals(a_f.read(), b_f.read())
-+                nt.assert_equal(a_f.read(), b_f.read())
- 
-     @skip_win32
-     def test_link_successful(self):



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ipython-genutils/-/commit/a86f920cfd5004f3ac25cc3f7a9c3d67b93dde19

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


Reply via email to