[arch-commits] Commit in python-unicodedata2/trunk (PKGBUILD python310.patch)
Caleb Maclennan
alerque at gemini.archlinux.org
Mon Dec 20 18:47:55 UTC 2021
Date: Monday, December 20, 2021 @ 18:47:55
Author: alerque
Revision: 1080624
upgpkg: python-unicodedata2 14.0.0-1
Modified:
python-unicodedata2/trunk/PKGBUILD
Deleted:
python-unicodedata2/trunk/python310.patch
-----------------+
PKGBUILD | 36 +++++++++++++++++++-----------------
python310.patch | 18 ------------------
2 files changed, 19 insertions(+), 35 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-20 18:45:48 UTC (rev 1080623)
+++ PKGBUILD 2021-12-20 18:47:55 UTC (rev 1080624)
@@ -1,34 +1,36 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
# Contributor: Guillaume Horel <guillaume.horel at gmail.com
# Contributor: Philipp A. <flying-sheep at web.de>
pkgname=python-unicodedata2
-pkgver=13.0.0.post2
-pkgrel=3
+_pyname=${pkgname#python-}
+pkgver=14.0.0
+pkgrel=1
pkgdesc="unicodedata backport/updates to Python 3"
arch=('x86_64')
-url="https://github.com/fonttools/unicodedata2"
+url="https://github.com/fonttools/$_pyname"
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fonttools/unicodedata2/archive/${pkgver/.post/-}.tar.gz"
- python310.patch)
-sha256sums=('0bc40afc5938f3e1415524b724d3d4856dfcb8868d39e0b8aeced490494403cd'
- 'e755dd4826b15a8514cae9102e9d33e8cba41841c24dcc2aff3960614ed0e755')
+checkdepends=('python-pytest'
+ 'python-pytest-xdist'
+ 'python-pytest-randomly')
+source=("$url/archive/$pkgver/$_pyname-$pkgver.tar.gz")
+sha256sums=('f95b778ae3c2706c4dfab731261c0c60aa2bd93b9c0ba9de49395b0c45b12a6a')
-prepare() {
- cd "unicodedata2-${pkgver/.post/-}"
- patch -Np1 -i ../python310.patch
+build() {
+ cd "$_pyname-$pkgver"
+ python setup.py build
}
-build() {
- cd "unicodedata2-${pkgver/.post/-}"
-
- python setup.py build
+check() {
+ cd "$_pyname-$pkgver"
+ # PYTHONPATH="./$_pyname" pytest
+ python setup.py test
}
package() {
- cd "unicodedata2-${pkgver/.post/-}"
-
- python setup.py install --root="$pkgdir" --optimize=1
+ cd "$_pyname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
Deleted: python310.patch
===================================================================
--- python310.patch 2021-12-20 18:45:48 UTC (rev 1080623)
+++ python310.patch 2021-12-20 18:47:55 UTC (rev 1080624)
@@ -1,18 +0,0 @@
-# https://github.com/fonttools/unicodedata2/commit/44409e0c0cd5
-
-diff -upr unicodedata2-13.0.0-2.orig/unicodedata2/py3/unicodedata.c unicodedata2-13.0.0-2/unicodedata2/py3/unicodedata.c
---- unicodedata2-13.0.0-2.orig/unicodedata2/py3/unicodedata.c 2020-03-23 13:38:17.000000000 +0200
-+++ unicodedata2-13.0.0-2/unicodedata2/py3/unicodedata.c 2021-12-03 02:54:14.709059346 +0200
-@@ -16,7 +16,12 @@
- #define PY_SSIZE_T_CLEAN
-
- #include "Python.h"
-+#if PY_MINOR_VERSION < 10
- #include "ucnhash.h"
-+#else
-+#define Py_BUILD_CORE
-+#include "internal/pycore_ucnhash.h"
-+#endif
- #include "structmember.h"
- #include "unicodectype.h"
-
More information about the arch-commits
mailing list