pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-pathvalidate
Module Name: pkgsrc
Committed By: adam
Date: Mon Nov 27 20:30:58 UTC 2023
Modified Files:
pkgsrc/devel/py-pathvalidate: Makefile PLIST distinfo
Log Message:
py-pathvalidate: updated to 3.2.0
v3.2.0
Add reserved_name_handler argument to sanitize_filename function and sanitize_filepath function
Add NullValueHandler class and ReservedNameHandler class
Add fs_encoding property and byte_count property to ValidationError class
Add additional_reserved_names argument to validate/sanitize functions to allow custom reserved names
Modify the return value format of ValidationError.__str__ method
Improve type annotations
v3.1.0
Fix validation error messages to show the target-platform properly
Fix README: out of date with the actual error generated by validate_filename
Add description property to ErrorReason class
Add as_slog method to ValidationError class
Add docs extras
Change the type of the return value of ValidationError.reason from Optional[ErrorReason] to ErrorReason
Update [build-system]
Drop support for Python 3.6
v3.0.0
Trim heading spaces in Windows
Consider filesystem encoding for length calculations
Fix type model
Fix sanitizing of filenames that only consist of whitespaces and periods
Add validate_unprintable_char function
Add validate_after_sanitize keyword argument to sanitize_filename and sanitize_filepath functions
Add error codes to ErrorReason
Add zip_safe=False to setup
Modify to accept pathvalidate.Platform type as platform arguments
Rename type alias from Handler to NullValueHandler
Remove InvalidLengthError to use ValidationError
Improve type annotations
Make it possible to import FileNameValidator and FilePathValidator classes from the package root
Change constructor arguments of FileNameSanitizer and FilePathSanitizer classes
Remove min_len
Add validator
Remove deprecated functions
Modify error messages
Refactoring
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-pathvalidate/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-pathvalidate/PLIST \
pkgsrc/devel/py-pathvalidate/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-pathvalidate/Makefile
diff -u pkgsrc/devel/py-pathvalidate/Makefile:1.3 pkgsrc/devel/py-pathvalidate/Makefile:1.4
--- pkgsrc/devel/py-pathvalidate/Makefile:1.3 Sun Sep 4 18:56:05 2022
+++ pkgsrc/devel/py-pathvalidate/Makefile Mon Nov 27 20:30:58 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2022/09/04 18:56:05 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2023/11/27 20:30:58 adam Exp $
-DISTNAME= pathvalidate-2.5.2
+DISTNAME= pathvalidate-3.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pathvalidate/}
@@ -10,10 +10,15 @@ HOMEPAGE= https://github.com/thombashi/p
COMMENT= Python library to sanitize/validate a string such as filenames
LICENSE= mit
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+TEST_DEPENDS+= ${PYPKGPREFIX}-allpairspy>=2:../../devel/py-allpairspy
+TEST_DEPENDS+= ${PYPKGPREFIX}-click>=6.2:../../devel/py-click
+
USE_LANGUAGES= # none
USE_TOOLS+= pkg-config
PYTHON_VERSIONS_INCOMPATIBLE= 27
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-pathvalidate/PLIST
diff -u pkgsrc/devel/py-pathvalidate/PLIST:1.1 pkgsrc/devel/py-pathvalidate/PLIST:1.2
--- pkgsrc/devel/py-pathvalidate/PLIST:1.1 Wed Aug 31 08:23:29 2022
+++ pkgsrc/devel/py-pathvalidate/PLIST Mon Nov 27 20:30:58 2023
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2022/08/31 08:23:29 sborrill Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2023/11/27 20:30:58 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/pathvalidate/__init__.py
${PYSITELIB}/pathvalidate/__init__.pyc
${PYSITELIB}/pathvalidate/__init__.pyo
@@ -31,6 +31,9 @@ ${PYSITELIB}/pathvalidate/_ltsv.pyo
${PYSITELIB}/pathvalidate/_symbol.py
${PYSITELIB}/pathvalidate/_symbol.pyc
${PYSITELIB}/pathvalidate/_symbol.pyo
+${PYSITELIB}/pathvalidate/_types.py
+${PYSITELIB}/pathvalidate/_types.pyc
+${PYSITELIB}/pathvalidate/_types.pyo
${PYSITELIB}/pathvalidate/argparse.py
${PYSITELIB}/pathvalidate/argparse.pyc
${PYSITELIB}/pathvalidate/argparse.pyo
Index: pkgsrc/devel/py-pathvalidate/distinfo
diff -u pkgsrc/devel/py-pathvalidate/distinfo:1.1 pkgsrc/devel/py-pathvalidate/distinfo:1.2
--- pkgsrc/devel/py-pathvalidate/distinfo:1.1 Wed Aug 31 08:23:29 2022
+++ pkgsrc/devel/py-pathvalidate/distinfo Mon Nov 27 20:30:58 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2022/08/31 08:23:29 sborrill Exp $
+$NetBSD: distinfo,v 1.2 2023/11/27 20:30:58 adam Exp $
-BLAKE2s (pathvalidate-2.5.2.tar.gz) = f274476423f3db08a3c16288e2c4b55978883d6b2bc605cbe34ff1a304105662
-SHA512 (pathvalidate-2.5.2.tar.gz) = 44c9d329f60deb81590854e0aa4699e4105821535aa5bf306c78df395c510ce851075db246937a459f46ee2f9abc54538a4a48995b94f5eb031f14fe60c769ce
-Size (pathvalidate-2.5.2.tar.gz) = 26715 bytes
+BLAKE2s (pathvalidate-3.2.0.tar.gz) = 34794b8e9d8fdff243a8fa2411bbb665113c23022075ee71e6a0879e4829ef30
+SHA512 (pathvalidate-3.2.0.tar.gz) = e3a898bb3a1a35b7851600d6c8a6254220905a95e0dca2e697e0aa95857e3a741e3b77c3c3f0aadc42f458fabd5f1b10d34f99434e7aa3891836470b7a33a77f
+Size (pathvalidate-3.2.0.tar.gz) = 31246 bytes
Home |
Main Index |
Thread Index |
Old Index