aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2021-12-01 12:07:50 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-12-02 07:32:27 +0000
commit276644fb0bd20fbe9673fdaa119289e6f5757fdc (patch)
treecb22303af74af25485a4ba8874001efd0d9d0fcc
parent87f176106a1ceca8205c32b6cb1605422837c103 (diff)
downloadaports-276644fb0bd20fbe9673fdaa119289e6f5757fdc.tar.gz
aports-276644fb0bd20fbe9673fdaa119289e6f5757fdc.tar.bz2
aports-276644fb0bd20fbe9673fdaa119289e6f5757fdc.tar.xz
testing/pre-commit: upgrade to 2.16.0
-rw-r--r--testing/pre-commit/APKBUILD6
-rw-r--r--testing/pre-commit/fix-importlib-metadata.patch14
2 files changed, 10 insertions, 10 deletions
diff --git a/testing/pre-commit/APKBUILD b/testing/pre-commit/APKBUILD
index c4e009f9b4..4858387d3a 100644
--- a/testing/pre-commit/APKBUILD
+++ b/testing/pre-commit/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=pre-commit
-pkgver=2.15.0
+pkgver=2.16.0
pkgrel=0
pkgdesc="framework for managing and maintaining multi-language pre-commit hooks"
url="https://pre-commit.com"
@@ -65,6 +65,6 @@ package() {
}
sha512sums="
-b87985aa625509d7a21e31e5774f259c264ec74fef88fc5e290cbac0326cdbadc37ab54b5bf3048d815cf9bc6d4adb71619fcb84c955c1bc9741da8dfd34251c pre-commit-2.15.0.tar.gz
-f89d337677d0dba903cb2b9441c5879ca14bd41854913b30e6a92f4310f5565f4777d4bd9a6939ce410699d0e2de40da8527d3f297a58992953c783f4139b733 fix-importlib-metadata.patch
+c9eb14a40e25e8408c2b2b5687eba4908d609bbb7bcf58a0153326696d272bca555156fd75f3ec5f0dec219aeeb4084df77f329f47cf190e40052c11e92fe185 pre-commit-2.16.0.tar.gz
+6c4ef9d9dff0a6b0edbba254d026112a3e269930f145399d29bb48c18a4e1fcca8c7e9125541c1bb9cfc7e5fc8c484c0de4b143f4ab8b29b1098ecc3197602da fix-importlib-metadata.patch
"
diff --git a/testing/pre-commit/fix-importlib-metadata.patch b/testing/pre-commit/fix-importlib-metadata.patch
index 760d1196b1..14af5c3a3b 100644
--- a/testing/pre-commit/fix-importlib-metadata.patch
+++ b/testing/pre-commit/fix-importlib-metadata.patch
@@ -1,14 +1,14 @@
-diff --git a/pre_commit/constants.py b/pre_commit/constants.py
-index 3dcbbac..858fbb4 100644
---- a/pre_commit/constants.py
-+++ b/pre_commit/constants.py
+diff --git i/pre_commit/constants.py w/pre_commit/constants.py
+index d2f9363..694384f 100644
+--- i/pre_commit/constants.py
++++ w/pre_commit/constants.py
@@ -1,10 +1,5 @@
import sys
--if sys.version_info < (3, 8): # pragma: no cover (<PY38)
-- import importlib_metadata
--else: # pragma: no cover (PY38+)
+-if sys.version_info >= (3, 8): # pragma: >=3.8 cover
- import importlib.metadata as importlib_metadata
+-else: # pragma: <3.8 cover
+- import importlib_metadata
-
CONFIG_FILE = '.pre-commit-config.yaml'
MANIFEST_FILE = '.pre-commit-hooks.yaml'