Сравнение esptool-3.3.3 с esptool-4.5.1

/usr/portage/dev-embedded/esptool/esptool-4.5.1.ebuild 2023-10-09 14:52:29.348368347 +0300
16 16
LICENSE="GPL-2+"
17 17
SLOT="0"
18 18
KEYWORDS="amd64 ~arm ~arm64 x86"
19
IUSE="test"
20
RESTRICT="!test? ( test )"
21 19

  
22 20
RDEPEND="
23 21
	$(python_gen_cond_dep '
......
33 31
		dev-python/wheel[${PYTHON_USEDEP}]
34 32
	')
35 33
	test? ( $(python_gen_cond_dep '
36
		dev-python/coverage[${PYTHON_USEDEP}]
34
		dev-python/cffi[${PYTHON_USEDEP}]
37 35
		dev-python/pyelftools[${PYTHON_USEDEP}]
36
		dev-python/pytest[${PYTHON_USEDEP}]
38 37
	') )
39 38
"
40 39

  
41
python_test() {
42
	"${EPYTHON}" test/test_imagegen.py || die "imagegen test failed with ${EPYTHON}"
43
	"${EPYTHON}" test/test_espsecure.py || die "espsecure test failed with ${EPYTHON}"
44
	"${EPYTHON}" test/test_espefuse_host.py || die "espefuse_host test failed with ${EPYTHON}"
45
	"${EPYTHON}" test/test_merge_bin.py || die "espefuse_host test failed with ${EPYTHON}"
40
distutils_enable_tests pytest
41

  
42
EPYTEST_DESELECT=(
46 43
	# test/test_esptool.py and test/test_espefuse.py need real hardware connected
44
	test/test_esptool.py
45
	test/test_espefuse.py
46
)
47

  
48
src_prepare() {
49
	default
50

  
51
	# test_espsecure_hsm.py needs setup of a "Soft HSM" or real hardware. remove.
52
	rm test/test_espsecure_hsm.py || die
53
}
54

  
55
pkg_postinst() {
56
	if ver_test ${REPLACING_VERSIONS} -lt 4; then
57
		ewarn "${P} - new 4.x release with breaking changes:"
58
		ewarn "  - Public API has been defined by limiting access to internals that have been refactored into multiple source files"
59
		ewarn "  - If active security features are detected, the default behavior changes to prevent unintentional bricking"
60
		ewarn "  - Flash parameters in an image header can now be changed only when no SHA256 digest is appended"
61
		ewarn "  - The ESP8684 alias has been removed, ESP32-C2 has to be used"
62
		ewarn "  - Megabit flash sizes have been deprecated, use megabyte units from now on"
63
	fi
47 64
}
Спасибо!