Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-puremagic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-puremagic: update to 2.2.1. Version 2.2.1 ------------- - Fixing #150 shell scripts with `#!/bin/sh`, `bash`, or `zsh` shebangs are now identified as `.sh` / `application/x-shellscript` instead of plain text (thanks to jbleyel and Sai Asish Y) - Fixing #152 CSV detection only sniffs a bounded sample, so large files (such as HTML exported from Excel as `.xls`) no longer take minutes to identify, and HTML starting with an uppercase `<HTML` tag is detected (thanks to nikilase) - Fixing #156 ISO media files (HEIC, AVIF, MP4, 3GP, MOV) are identified by their `ftyp` major brand instead of the box size (thanks to Nick Gigliotti and zhouh) - Fixing #157 CSV files with quoted delimiters, escaped quotes, or multiline fields are no longer rejected (thanks to zhouh) - Fixing #164 JPEG data without a filename hint now reports `.jpg` instead of `.jfif` (thanks to Gil Forcada Codinachs) - Fixing OpenDocument templates (`.ott`, `.ots`, `.otp`) are no longer reported as regular documents during ZIP scanning (thanks to pabszero) - Fixing file extensions are taken from the file's base name, so dots in directory names no longer produce bogus extensions (thanks to rui-zju) - Adding Python 3.15 to tested and supported versions - Changing PyPI releases to use Trusted Publishing, with GitHub Actions pinned to commit SHAs and upgraded off the deprecated Node.js 20 runtime
py-puremagic: set PYTHON_SELF_CONFLICT
py-puremagic: update to 2.2.0. Version 2.2.0 ------------- - Adding Ogg scanner to distinguish Vorbis, Opus, Theora, FLAC, Speex, and OGM codecs - Adding ASF scanner to distinguish WMV (video) from WMA (audio) files - Adding EBML scanner to distinguish Matroska (.mkv) from WebM (.webm) files - Adding MSI (Windows Installer) and MPP (Microsoft Project) detection to CFBF scanner - Fixing #146 OOXML detection now uses `[Content_Types].xml` content types as primary method, correctly identifying docx/xlsx/pptx files from LibreOffice, Google Docs, and other non-Microsoft tools (thanks to jonasdeboeck79) - Fixing ZIP deep scan now inspects all ZIP files instead of short-circuiting on .zip extension - Fixing text scanner now treats files containing NUL bytes as binary data instead of misidentifying them as text - Fixing mz5 HDF5 scanner typo in chromatogram dataset name
py-puremagic: update to 2.1.1. Version 2.1.1 ------------- - Fixing #141 deep scan no longer overrides valid binary format matches (e.g. JPEG) for files without extensions (thanks to marph91)
py-puremagic: update to 2.1.0. Version 2.1.0 ------------- - Adding #6 `from_extension()` and `magic_extension()` to look up MIME types by file extension - Adding #119 CFBF/OLE2 scanner to distinguish Word, Excel, PowerPoint, Outlook MSG, Visio, and Publisher files (thanks to Simeon Stoykov and Andy - NebularNerd) - Adding #139 codespell check (thanks to Christian Clauss) - Adding `-e`/`--extension` CLI flag for extension-based MIME type lookup - Fixing #104 WAV MIME type changed from `audio/wave` to `audio/wav` (thanks to Simon Willison and Andy - NebularNerd)
py-puremagic: updated to 2.0.2 Version 2.0.2 - Fixing 137 passing non-existent filename to from_string()/from_stream() no longer raises FileNotFoundError (thanks to denisw) Version 2.0.1 - Fixing 126 Python scanner false positives — now uses AST node walking instead of regex to verify real Python constructs (thanks to ahobson) - Fixing 134 UTF-16 LE BOM (FF FE) no longer misidentified as .mp1 audio, added UTF-16 BOM detection to text scanner (thanks to tomazfs) - Fixing 135 from_string(), from_stream(), magic_string(), and magic_stream() now perform deep scan when filename is provided (thanks to denisw)
py-puremagic: update to 2.0.0. Version 2.0.0 ------------- - Adding deep scan for improved accuracy #102 #94 #85 #70 #69 #12 #3 - Changing to full semantic versioning to be able to denote bugfixes vs minor features - Changing to use uv instead of requirements - Removing support for python 3.7, 3.8, 3.9, 3.10 and 3.11 please stick to 1.x release chain to support older versions
py-puremagic: update to 1.30. Version 1.30 ------------ - Adding #109 Halt on non-regular files like /dev/zero and /dev/random (thanks to Yuri Schaeffer)
py-puremagic: update to 1.29. Version 1.29 ------------ - Changing to publishing to pypi with Python 3.9 - Fixing #105 fsspec/gcsfs throws an ValueError instead of a OSError (thanks to Markus) - Fixing github actions due to updates
more setuptools fallout
py-*: remove unused tool dependency py-setuptools includes the py-wheel functionality nowadays
py-puremagic: update to 1.28. Version 1.28 - Adding #99 New file support (thanks to Andy - NebularNerd) - Fixing #100 FITS files no longer had mime type (thanks to ejeschke)
py-puremagic: updated to 1.27 Version 1.27 - Adding new verbose output to command line with `-v` or `--verbose` - Adding 92 include py.typed in sdist (thanks to Nicholas Bollweg - bollwyvl) - Adding 93 Improve PDF file detection, fix json description (thanks to Péter - peterekepeter) - Fixing 96 86 stream does not work properly on opened small files (thanks to Felipe Lema and Andy - NebularNerd) - Removing expected invalid WinZip signature
py-puremagic: update to 1.26. Version 1.26 ------------ - Adding #87 sndhdr update and HD/CD/DVD Image files (thanks to Andy - NebularNerd) - Adding #88 Add .caf mime type (thanks to William Bonnaventure) - Fixing #89 add py.typed to package_data (thanks to Sebastian Kreft)
py-puremagic: updated to 1.25 Version 1.25 - Changing to support Python 3.7 again
py-puremagic: updated to 1.24 Version 1.24 ------------ - Adding `.what()` to be a drop in replacement for `imghdr.what()` (thanks to Christian Clauss and Andy - NebularNerd) - Adding Test on Python 3.13 beta (thanks to Christian Clauss) - Adding from __future__ import annotations (thanks to Christian Clauss - Changing all HTML extensions to full `.html` - Fixing Confidence sorting (thanks to Andy - NebularNerd)
py-puremagic: update to 1.23. Version 1.23 ------------ - Fixing #32 MP3 Detection improvements (thanks to Andy - NebularNerd and Sander)
py-puremagic: update to 1.22. Version 1.22 ------------ - Adding #52 magic data for JPEG XS (thanks to Andy - NebularNerd) - Adding #57 Multi-part checks with negative offsets (thanks to Andy - NebularNerd) - Fixing #60 encoding warning (thanks to Andy - NebularNerd and Jason R. Coombs)
py-puremagic: update to 1.21. Version 1.21 ------------ - Adding #50 details for ZSoft .pcx files (thanks to Andy - NebularNerd) - Adding #51 details for JXL files (thanks to Andy - NebularNerd) - Adding #54 missing py.typed file (thanks to Raphaël Vinot) - Fixing #53 magic data for GIF images (thanks to Andy - NebularNerd)
py-puremagic: updated to 1.20 Version 1.20 ------------ - Adding support for multi-part header checks (thanks to Andy) - Fixing matches for webp (thanks to Nicolas Wicht) - Fixing matches for epub (thanks to Alexander Walters)
sysutils/py-puremagic: import py-puremagic-1.15 Packaged for wip by Olaf Seibert and myself. puremagic is a pure python module that will identify a file based off its magic numbers. It is designed to be minimalistic and inherently cross platform compatible. It is also designed to be a stand in for python-magic, it incorporates the functions from_file(filename[, mime]) and from_string(string[, mime]) however the magic_file() and magic_string() are more powerful and will also display confidence and duplicate matches. It does NOT try to match files off non-magic string. In other words it will not search for a string within a certain window of bytes like others might.