Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-puremagic for 
openSUSE:Factory checked in at 2026-04-16 17:25:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-puremagic (Old)
 and      /work/SRC/openSUSE:Factory/.python-puremagic.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-puremagic"

Thu Apr 16 17:25:26 2026 rev:5 rq:1345298 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-puremagic/python-puremagic.changes        
2025-07-08 15:27:54.211396712 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-puremagic.new.11940/python-puremagic.changes 
    2026-04-16 17:25:47.940540327 +0200
@@ -1,0 +2,48 @@
+Wed Apr  8 22:07:11 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.2.0:
+  * Refactored into a modular scanner architecture
+  * Added new scanners for Ogg, ASF, and EBML files
+  * Updated build system to use setuptools-scm
+  * Added 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
+  * Dropped support for older Python versions, now requires >= 3.12
+  * 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
+  * Fixing #141 deep scan no longer overrides valid binary format
+    matches (e.g. JPEG) for files without extensions (thanks to
+    marph91)
+  * 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)
+  * Fixing #137 passing non-existent filename to
+    from_string()/from_stream() no longer raises
+    FileNotFoundError (thanks to denisw)
+  * 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)
+  * 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
+
+-------------------------------------------------------------------

Old:
----
  puremagic-1.30.tar.gz

New:
----
  puremagic-2.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-puremagic.spec ++++++
--- /var/tmp/diff_new_pack.E8yuon/_old  2026-04-16 17:25:48.500563399 +0200
+++ /var/tmp/diff_new_pack.E8yuon/_new  2026-04-16 17:25:48.500563399 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-puremagic
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
 
 
 %{?sle15_python_module_pythons}
+%global skip_python311 1
 Name:           python-puremagic
-Version:        1.30
+Version:        2.2.0
 Release:        0
 Summary:        Pure python implementation of magic file detection
 License:        MIT
@@ -26,11 +27,14 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/puremagic/puremagic-%{version}.tar.gz
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools-scm >= 6.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
+Requires:       alts
+BuildRequires:  alts
 %python_subpackages
 
 %description
@@ -44,14 +48,22 @@
 
 %install
 %pyproject_install
+%python_clone -a %{buildroot}%{_bindir}/puremagic
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative puremagic
+
+%postun
+%python_uninstall_alternative puremagic
+
 %files %{python_files}
 %doc AUTHORS.rst CHANGELOG.md README.rst
 %license LICENSE
+%python_alternative %{_bindir}/puremagic
 %{python_sitelib}/puremagic
 %{python_sitelib}/puremagic-%{version}.dist-info
 

++++++ puremagic-1.30.tar.gz -> puremagic-2.2.0.tar.gz ++++++
++++ 7849 lines of diff (skipped)

Reply via email to