Path to this page:
./
devel/py-pathvalidate,
Python library to sanitize/validate a string such as filenames
Branch: CURRENT,
Version: 3.2.1,
Package name: py312-pathvalidate-3.2.1,
Maintainer: pkgsrc-userspathvalidate is a Python library to sanitize/validate a string such as
filenames/file-paths/etc.
Master sites:
Filesize: 57.874 KB
Version history: (Expand)
- (2024-08-27) Updated to version: py312-pathvalidate-3.2.1
- (2023-11-27) Updated to version: py311-pathvalidate-3.2.0
- (2022-08-31) Package added to pkgsrc.se, version py310-pathvalidate-2.5.2 (created)
CVS history: (Expand)
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2024-08-27 11:04:49 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-pathvalidate: updated to 3.2.1
3.2.1
Test Python 3.12 in CIs
Bump actions/setup-python from 4 to 5
Bump actions/upload-artifact from 3 to 4
Bump actions/download-artifact from 3 to 4
Fix CI
Update the CI workflow to include a job that publishes packages to TestPyPI
Fix coverage report
Fix sanitize_filename truncation
Fix validation functions of filepaths
If platform argument is windows or universal, filepaths ending with a space or a \
period should be detected as an error
Fix POSIX-style absolute paths were not detected as errors with \
platform="windows" or platform="universal" on Python 3.12 \
and below
Add support for Python 3.13
Improve type annotations
Add a build and publish workflow
Add Sigstore signatures to release assets
Update copyright year to include the last update year
Add CHANGELOG
|
2023-11-27 21:30:58 by Adam Ciarcinski | Files touched by this commit (3) | |
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
|
2022-09-04 20:56:05 by Thomas Klausner | Files touched by this commit (2) |
Log message:
py-pathvalidate: does not support python 2.7
|
2022-08-31 11:36:03 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
py-pathvalidate: set better HOMEPAGE, do not require any languages
|
2022-08-31 10:23:29 by Stephen Borrill | Files touched by this commit (4) |
Log message:
py-pathvalidate: Add 2.5.2
pathvalidate is a Python library to sanitize/validate a string such
as filenames, file-paths, etc.
|