pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-pre-commit: Update to 3.0.1



Module Name:	pkgsrc-wip
Committed By:	Iku Iwasa <iku.iwasa%gmail.com@localhost>
Pushed By:	iquiw
Date:		Sun Jan 29 10:57:04 2023 +0900
Changeset:	c0bf1d49f46b6bbb05f2dee317eef7c0942da3d8

Modified Files:
	py-pre-commit/Makefile
	py-pre-commit/PLIST
	py-pre-commit/distinfo

Log Message:
py-pre-commit: Update to 3.0.1

Pkgsrc changes:

* Drop Python3.7 compatibility.

Upstream changes:

3.0.1 - 2023-01-26
Fixes

* Ensure coursier hooks are available offline after install.

3.0.0 - 2023-01-23
Features

* Make language: golang bootstrap go if not present.
* language: coursier now supports additional_dependencies and repo: local
* Upgrade ruby-build to 20221225.

Fixes

* Improve error message for invalid yaml for pre-commit autoupdate.
* repo: local no longer provisions an empty git repo.

Updating

* Drop support for python<3.8
* Drop support for top-level list, use pre-commit migrate-config to update.
* Drop support for sha to specify revision, use pre-commit migrate-config
to update.
* Remove pre-commit-validate-config and pre-commit-validate-manifest, use
pre-commit validate-config and pre-commit validate-manifest instead.
* language: golang hooks must use go.mod to specify dependencies

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c0bf1d49f46b6bbb05f2dee317eef7c0942da3d8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-pre-commit/Makefile | 8 ++------
 py-pre-commit/PLIST    | 5 +++--
 py-pre-commit/distinfo | 6 +++---
 3 files changed, 8 insertions(+), 11 deletions(-)

diffs:
diff --git a/py-pre-commit/Makefile b/py-pre-commit/Makefile
index 28aeffb645..3675deab46 100644
--- a/py-pre-commit/Makefile
+++ b/py-pre-commit/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	pre_commit-2.21.0
+DISTNAME=	pre_commit-3.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=p/pre_commit/}
@@ -10,7 +10,7 @@ HOMEPAGE=	https://pre-commit.com/
 COMMENT=	Framework for managing and maintaining multi-language pre-commit hook
 LICENSE=	mit
 
-PYTHON_VERSIONS_INCOMPATIBLE=	27 # not supported
+PYTHON_VERSIONS_INCOMPATIBLE=	27 37 # not supported
 
 DEPENDS+=	${PYPKGPREFIX}-cfgv>=2.0.0:../../wip/py-cfgv
 DEPENDS+=	${PYPKGPREFIX}-identify>=1.0.0:../../wip/py-identify
@@ -19,10 +19,6 @@ DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
 DEPENDS+=	${PYPKGPREFIX}-toml-[0-9]*:../../textproc/py-toml
 DEPENDS+=	${PYPKGPREFIX}-yaml>=5.1:../../textproc/py-yaml
 DEPENDS+=	${PYPKGPREFIX}-virtualenv>=20.10.0:../../devel/py-virtualenv
-.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == "37"
-DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
-.endif
 
 USE_LANGUAGES=	# none
 USE_TOOLS+=	bash
diff --git a/py-pre-commit/PLIST b/py-pre-commit/PLIST
index 27af3491ab..bc8da7e446 100644
--- a/py-pre-commit/PLIST
+++ b/py-pre-commit/PLIST
@@ -1,7 +1,5 @@
 @comment $NetBSD$
 bin/pre-commit
-bin/pre-commit-validate-config
-bin/pre-commit-validate-manifest
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -212,3 +210,6 @@ ${PYSITELIB}/pre_commit/util.pyo
 ${PYSITELIB}/pre_commit/xargs.py
 ${PYSITELIB}/pre_commit/xargs.pyc
 ${PYSITELIB}/pre_commit/xargs.pyo
+${PYSITELIB}/pre_commit/yaml.py
+${PYSITELIB}/pre_commit/yaml.pyc
+${PYSITELIB}/pre_commit/yaml.pyo
diff --git a/py-pre-commit/distinfo b/py-pre-commit/distinfo
index e310f318d3..fc73a0fa0b 100644
--- a/py-pre-commit/distinfo
+++ b/py-pre-commit/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (pre_commit-2.21.0.tar.gz) = 482314b6af84932830b6cf0b647f5f1f5b46f2e07adff3f19841126e2027026e
-SHA512 (pre_commit-2.21.0.tar.gz) = 9fd957de64a2e15aaf9287135c9c3a56760aa12ede5bab26f2db5ee0f0aa4f8d4ca4236baee261e4eecde3c201f6b0a674c3d873c37b88f2b8f650a454aa64cf
-Size (pre_commit-2.21.0.tar.gz) = 174966 bytes
+BLAKE2s (pre_commit-3.0.1.tar.gz) = c4481431600a402430bbcc74820c5d0abd28001ae00aa84d575f4d1b5cc9f591
+SHA512 (pre_commit-3.0.1.tar.gz) = 2e41d7d8d553bf121aa69184569ee868824aecb5b4070126248fe6fb747a69c7f6c92bcaf55c18bb3d941ecc10821c455396c73ca6abe3b096aecca45c4dade4
+Size (pre_commit-3.0.1.tar.gz) = 176200 bytes


Home | Main Index | Thread Index | Old Index