File project.diff of Package python-esptool

--- python-esptool.changes.orig
+++ python-esptool.changes
@@ -1,4 +1,61 @@
 -------------------------------------------------------------------
+Wed Sep  3 17:22:21 CEST 2025 - ro@suse.de
+
+- use service file and update to 5.0.2
+- Version 5.0.2
+  * Fix compatibility with Click 8.2.0+
+  * Fix --port-filter argument parsing
+  * Fix buffering issues with CP2102 converter causing connection failures
+  * ESP32-S3: Fix stub flasher execution with active Secure Boot
+  * ESP32-C3: Disable flasher stub when Secure Boot is active
+  * espefuse: Handle error in burn-efuse command when no arguments are provided
+- Version 5.0.1
+  * elf2image: Validate ELF section types and addresses before processing
+  * elf2image: Handle PREINIT_ARRAY section type in ESP32-P4 ELF files properly
+  * elf2image: Fix incorrect logger call
+- Version 5.0.0
+
+🚨- Breaking changes
+  * Public Python API redesign: Reworked the public API to work as a Python module. Command functions accept explicit parameters
+  * CLI overhaul: esptool, espefuse, espsecure now use click for CLI argument parsing and rich-click for nice CLI rendering
+  * All commands / options names have replaced underscores (_) with dashes (-) (e.g., flash_id -> flash-id). Old names will print deprecation warnings
+  * Removed .py suffix from scripts
+  * Centralised logging: All tools' output now goes through the EsptoolLogger class, allowing easy redirection
+  * image-info: Deprecated the --version 1 output format
+  * errors: Errors are now printed to STDERR, added KeyboardInterrupt handling
+  * make-image: Removed the ESP8266 make-image command in favor of other workflows
+  * espefuse: Removed execute-scripts in favor of the new public API
+  * Removed support for beta chip targets: ESP32-C5(beta3), ESP32-C6(beta), ESP32-H2(beta1/2), ESP32-S3(beta2) are no longer supported
+  * Deprecated support for Python 3.7, 3.8, and 3.9
+  * write-flash: Removed the superfluous --verify option
+
+✨- New Features
+  * logging: Added collapsible output stages and ASCII progress bars
+  * trace: Updated --trace with more info and more readable formatting
+  * verbosity: Allowed setting silent or verbose output levels
+  * cmds: Allowed commands to output bytes, as well as write to a file
+  * cmds: Allowed inputs of commands to be file paths, bytes, or file-like objects
+  * flash_attach: Encapsulated logic for flash attaching and configuration
+  * espefuse: Added eFuse calculation fields for ESP32-C5
+  * espefuse: Added 3-bit field for wafer major version in ESP32-P4
+  * espsecure: Dropped ecdsa module, using cryptography instead
+  * targets: Updated chip features lists with more info
+  * Added support for Adesto flash chips
+  * Added support for k, M suffix for flash sizes
+
+  - Bug Fixes
+  * write-flash: Detect more cases of unresponsive flash, fixed failing flash_size check
+  * autodetection: Removed the Unsupported detection protocol stage
+  * elf2image: Fixed RAM app generation when SHA256 offset is not specified
+  * image-info: Sanitized app and bootloader info of null bytes
+  * logging: Avoid crashes when flushing if sys.stdout is not available
+  * ESP32-S2: Enabled auto-detection in secure download mode
+  * ESP32-P4: Enabled ECO5 chip detection
+  * elf2image: Multiple fixes from 3rd party frameworks
+  * read-flash: Added timeout to to avoid infinite loops
+  * espefuse: Close data files after reading the data
+
+-------------------------------------------------------------------
 Wed Jun 25 13:24:02 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
 
 - Update to 4.9.0
--- python-esptool.spec.orig
+++ python-esptool.spec
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-esptool
-Version:        4.9.0
+Version:        5.0.2
 Release:        0
 Summary:        A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips
 License:        GPL-2.0-or-later
@@ -36,6 +36,7 @@ BuildRequires:  %{python_module pyserial
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module reedsolo >= 1.5.3}
 BuildRequires:  %{python_module requests}
+BuildRequires:  %{python_module rich-click}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
@@ -69,10 +70,15 @@ Allows flashing firmware, reading back f
 
 %install
 %pyproject_install
+%python_clone -a %{buildroot}%{_bindir}/espefuse
 %python_clone -a %{buildroot}%{_bindir}/espefuse.py
+%python_clone -a %{buildroot}%{_bindir}/espsecure
 %python_clone -a %{buildroot}%{_bindir}/espsecure.py
+%python_clone -a %{buildroot}%{_bindir}/esptool
 %python_clone -a %{buildroot}%{_bindir}/esptool.py
+%python_clone -a %{buildroot}%{_bindir}/esp_rfc2217_server
 %python_clone -a %{buildroot}%{_bindir}/esp_rfc2217_server.py
+
 %python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__/*.pyc
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
@@ -84,23 +90,35 @@ rm -v test/test_espsecure.py test/test_e
 %pytest -m host_test
 
 %post
+%python_install_alternative espefuse
 %python_install_alternative espefuse.py
+%python_install_alternative espsecure
 %python_install_alternative espsecure.py
+%python_install_alternative esptool
 %python_install_alternative esptool.py
+%python_install_alternative esp_rfc2217_server
 %python_install_alternative esp_rfc2217_server.py
 
 %postun
+%python_uninstall_alternative espefuse
 %python_uninstall_alternative espefuse.py
+%python_uninstall_alternative espsecure
 %python_uninstall_alternative espsecure.py
+%python_uninstall_alternative esptool
 %python_uninstall_alternative esptool.py
+%python_uninstall_alternative esp_rfc2217_server
 %python_uninstall_alternative esp_rfc2217_server.py
 
 %files %{python_files}
 %license LICENSE
 %doc README.md
+%python_alternative %{_bindir}/esptool
 %python_alternative %{_bindir}/esptool.py
+%python_alternative %{_bindir}/espsecure
 %python_alternative %{_bindir}/espsecure.py
+%python_alternative %{_bindir}/espefuse
 %python_alternative %{_bindir}/espefuse.py
+%python_alternative %{_bindir}/esp_rfc2217_server
 %python_alternative %{_bindir}/esp_rfc2217_server.py
 %{python_sitelib}/esptool-%{version}.dist-info
 %{python_sitelib}/esptool
openSUSE Build Service is sponsored by