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

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51ebe169cade538c986e92eb65562b8ff3a1293baf14b9ad977df888061ed78e
size 4336261

3
esptool-2.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d3c9f6bc1e2a619c207ef33920aa0c8251584489f68a777dbc381e19f9679fb
size 5396543

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Sep 13 07:57:08 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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
-------------------------------------------------------------------
Thu Feb 28 01:47:40 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

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