aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-10 22:02:08 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-11 04:24:12 +0000
commitebf029ce11ec86bca948b2e757d62492c06ee1d2 (patch)
treeee678dea25fd452a52d55a591c9bc0f75a810ef0
parentf9a7debf16a6ab2d910d2792d15a90a5b973a88b (diff)
downloadaports-ebf029ce11ec86bca948b2e757d62492c06ee1d2.tar.gz
aports-ebf029ce11ec86bca948b2e757d62492c06ee1d2.tar.bz2
aports-ebf029ce11ec86bca948b2e757d62492c06ee1d2.tar.xz
main/py3-chardet: upgrade to 4.0.0
-rw-r--r--main/py3-chardet/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch26
-rw-r--r--main/py3-chardet/APKBUILD10
2 files changed, 4 insertions, 32 deletions
diff --git a/main/py3-chardet/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch b/main/py3-chardet/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch
deleted file mode 100644
index c50feb1638..0000000000
--- a/main/py3-chardet/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-https://github.com/chardet/chardet/commit/440828f8faafdb58700c64a9ea8f6a30b154c08b.patch
-
-From 440828f8faafdb58700c64a9ea8f6a30b154c08b Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Mon, 11 Nov 2019 21:02:51 +0100
-Subject: [PATCH] Support pytest 4, don't apply marks directly to parameters
- (#174)
-
-Fixes https://github.com/chardet/chardet/issues/173
----
- test.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/test.py b/test.py
-index 9833307..ad2b753 100644
---- a/test.py
-+++ b/test.py
-@@ -59,7 +59,7 @@ def gen_test_params():
- full_path = join(path, file_name)
- test_case = full_path, encoding
- if full_path in EXPECTED_FAILURES:
-- test_case = pytest.mark.xfail(test_case)
-+ test_case = pytest.param(*test_case, marks=pytest.mark.xfail)
- yield test_case
-
-
diff --git a/main/py3-chardet/APKBUILD b/main/py3-chardet/APKBUILD
index 56c191c3e0..45ad3c1053 100644
--- a/main/py3-chardet/APKBUILD
+++ b/main/py3-chardet/APKBUILD
@@ -2,16 +2,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=chardet
pkgname=py3-$_pkgname
-pkgver=3.0.4
-pkgrel=4
+pkgver=4.0.0
+pkgrel=0
pkgdesc="The Universal Character Encoding Detector"
url="https://github.com/chardet/chardet/"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-setuptools"
checkdepends="py3-pytest"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
- 440828f8faafdb58700c64a9ea8f6a30b154c08b.patch"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-chardet" # Backwards compatibility
@@ -29,5 +28,4 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
-sha512sums="61a03b23447a2bfe52ceed4dd1b9afdb5784da1933a623776883ee9f297e341f633e27f0ce0230bd5fdc5fdb5382105ab42736a74a417ddeb9f83af57455dba5 chardet-3.0.4.tar.gz
-6b4f87cca02579e2499b590e3bc85ef5afc5ced7a94af65af9669ed06a493deb01dd9a211bbc01d75fef2e7cb7b4157d3480afb32b113a24dd21e88aed8638ad 440828f8faafdb58700c64a9ea8f6a30b154c08b.patch"
+sha512sums="ebd7f420e1094445270db993f6373ffe7370419e002b0bb13299dc6c9b0f7c4e77b0f44f871fba6371e6869e7c86728514367db377e3137487a3acf50cb81e96 chardet-4.0.0.tar.gz"