The NetBSD Project

CVS log for pkgsrc/sysutils/py-puremagic/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-puremagic

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Nov 15 22:21:34 2026 UTC (7 hours, 49 minutes ago) by wiz
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
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

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Oct 13 22:18:51 2026 UTC (4 weeks, 5 days ago) by wiz
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -1 lines
py-puremagic: set PYTHON_SELF_CONFLICT

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Apr 15 18:39:39 2026 UTC (7 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
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

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Mar 29 18:22:25 2026 UTC (7 months, 2 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
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)

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 15 13:19:41 2026 UTC (8 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
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)

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Mar 10 06:12:15 2026 UTC (8 months, 1 week ago) by adam
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
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)

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 22 14:15:28 2026 UTC (8 months, 3 weeks ago) by wiz
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
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

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 6 08:51:15 2025 UTC (16 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
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)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun May 4 14:58:57 2025 UTC (18 months, 1 week ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -3 lines
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

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Apr 12 18:03:06 2025 UTC (19 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
more setuptools fallout

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Nov 11 07:29:00 2024 UTC (2 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -2 lines
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Oct 12 10:57:22 2024 UTC (2 years, 1 month ago) by wiz
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -4 lines
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)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Aug 10 07:45:09 2024 UTC (2 years, 3 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jul 14 13:28:50 2024 UTC (2 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
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)

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 19 04:59:31 2024 UTC (2 years, 4 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
py-puremagic: updated to 1.25

Version 1.25
- Changing to support Python 3.7 again

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jun 18 12:43:45 2024 UTC (2 years, 4 months ago) by adam
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
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)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun May 5 10:32:42 2024 UTC (2 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
py-puremagic: update to 1.23.

Version 1.23
------------

- Fixing #32 MP3 Detection improvements (thanks to Andy - NebularNerd and Sander)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Apr 28 09:59:48 2024 UTC (2 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
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)

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 25 15:19:59 2024 UTC (2 years, 8 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
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)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Feb 13 10:36:22 2024 UTC (2 years, 9 months ago) by adam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -8 lines
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)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 16:02:57 2023 UTC (3 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>