- update to 3.2.1:
* Test Python 3.12 in CIs
* 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
OBS-URL: https://build.opensuse.org/request/show/1198062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathvalidate?expand=0&rev=9
* Test Python 3.12 in CIs
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathvalidate?expand=0&rev=17
- update to 3.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
- update to 3.1.0:
* Fix validation error messages to show the `target-platform`
properly: #34 (Thanks to @matanster)
* Fix README: out of date with the actual error generated by
`validate_filename` #35 (Thanks to @hXtreme)
* 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
OBS-URL: https://build.opensuse.org/request/show/1132221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pathvalidate?expand=0&rev=8
* 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
- update to 3.1.0:
* Fix validation error messages to show the `target-platform`
properly: #34 (Thanks to @matanster)
* Fix README: out of date with the actual error generated by
`validate_filename` #35 (Thanks to @hXtreme)
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathvalidate?expand=0&rev=15
* Add support for Python 3.11: #22 (Thanks to @hegjon)
- v2.5.1
* Add __all__ by @eggplants in #24
* Add DeprecationWarning to deprecated functions
- v2.5.0
* Add support for Python 3.10
* Drop support for Python 3.5
* Add null_value_handler argument to
sanitize_filename/sanitize_filepath functions: #20 (Thanks to @
mkbloke)
* Add AbstractSanitizer/AbstractValidator classes to import path
* Add replace_ansi_escape function
* Add setup-ci target to Makefile
* Modify min_len/max_len to use default values when assigned minus values
- v2.4.1
* Fix filename validations that include '\' (backslash) on other
than Windows: #18 (Thanks to @Traktormaster)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathvalidate?expand=0&rev=13