15
0

- Update to 2.7:

* New option write_flash --flash-size keep will keep whatever flash size is
    set in the bootloader header
  * write_flash no longer updates the flash header if the file being written
    to the bootloader offset isn't a valid image file for the chip

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2019-09-13 08:05:52 +00:00
committed by Git OBS Bridge
parent c9b39a9c56
commit ca34716af2
4 changed files with 19 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-esptool
Version: 2.6
Version: 2.7
Release: 0
Summary: A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips
License: GPL-2.0-or-later
@@ -28,14 +28,15 @@ Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz#
BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module pyaes}
BuildRequires: %{python_module pyelftools}
BuildRequires: %{python_module pyserial >= 2.5}
BuildRequires: %{python_module pyserial >= 3.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: openssl
BuildRequires: python-rpm-macros
Requires: python-ecdsa
Requires: python-pyaes
Requires: python-pyserial >= 2.5
Requires: python-pyserial >= 3.0
BuildArch: noarch
%python_subpackages
@@ -48,7 +49,6 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
%prep
%setup -q -n esptool-%{version}
rm -r ecdsa pyaes
sed -i '/flake8/d' setup.py
sed -i '/^#!/d' flasher_stub/*.py
chmod a-x flasher_stub/*.py
@@ -64,7 +64,9 @@ chmod a-x flasher_stub/*.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
# there are more tests but upstream runs only those in .travis.yml
%pytest test/test_imagegen.py
%pytest test/test_espsecure.py
%files %{python_files}
%license LICENSE