diff options
Diffstat (limited to 'dev-embedded/nodemcu-uploader')
-rw-r--r-- | dev-embedded/nodemcu-uploader/Manifest | 5 | ||||
-rw-r--r-- | dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0-r1.ebuild | 28 | ||||
-rw-r--r-- | dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0.ebuild | 26 |
3 files changed, 24 insertions, 35 deletions
diff --git a/dev-embedded/nodemcu-uploader/Manifest b/dev-embedded/nodemcu-uploader/Manifest index e677b6a38281..162664033e39 100644 --- a/dev-embedded/nodemcu-uploader/Manifest +++ b/dev-embedded/nodemcu-uploader/Manifest @@ -1,4 +1,3 @@ -DIST nodemcu-uploader-1.0.0.tar.gz 855474 BLAKE2B f61e10d8c55653003063f93f276fda3d22eb7f4b30cf36bf23dac68775e6be55b73931a4cab54eb244f158b61b7dd4bb5290994386fb355b4be103bf429b5b3c SHA512 9196f8394a26bb5d412d667f7ad423c38b23f906c800e190bbc6f93206a2cbf7da28609a0803bff8b83b32c699df073c49525c05d2dbf276530156224c539864 -EBUILD nodemcu-uploader-1.0.0-r1.ebuild 718 BLAKE2B 33bb83c6ec261282d5f37a208451d2cdab01517a310685d8aaed5f0092775ba9db204f884947841127cef7aa217077c772e83caef24fc903796983aa314079b3 SHA512 802e2fb982ad5701b801d328c5ca4581650121540eac57891905da3f1ef44c7c38284f5d9af3953a72d107fd10ab45ee3834b76a4d06c170be507fa69a7d1a70 -EBUILD nodemcu-uploader-1.0.0.ebuild 685 BLAKE2B 13b979ae0bf4a119543927da7086612dca216d26864f61a41e87b8b88fc9c4eb2f3584be0fd7cffa694d6215e1e7add8d840deb5cab848b7eb33ad593db89779 SHA512 39915aa3be963828c112f4ea344aefcf12f2441e078501dc5f54e231dcfae2f324c461537634acf2abed28417d774af53dc79533e73b7b9870b6c1de5a50dea6 +DIST nodemcu-uploader-1.0.0.gh.tar.gz 855474 BLAKE2B f61e10d8c55653003063f93f276fda3d22eb7f4b30cf36bf23dac68775e6be55b73931a4cab54eb244f158b61b7dd4bb5290994386fb355b4be103bf429b5b3c SHA512 9196f8394a26bb5d412d667f7ad423c38b23f906c800e190bbc6f93206a2cbf7da28609a0803bff8b83b32c699df073c49525c05d2dbf276530156224c539864 +EBUILD nodemcu-uploader-1.0.0-r1.ebuild 875 BLAKE2B e4611253e168ae35dbac7b3c783a8ad0037249e1f568f3f81cebd4f851da720643495ce1ebd1dc9b1d5d2e560ca3307d4f446dc5afbf82e1a6ad110f1b86aa1b SHA512 edded56577bc37a4f3b7ffb6e8b28376eb4a860cbfda209b97f4a7150b52f150235df65742b550d8f4894f99dd4a388acf080e70237e1dacf625bb5a17bcc99d MISC metadata.xml 332 BLAKE2B 5c5b56b41cc365544be813e3de4769a552a19ff9507a9919e61e99bede556c638bc6e9c2a2aa014cebf1f7aa6711071d87289e70300293b7ede1a9301217d764 SHA512 671aaed13d9b55f2806b496985959ac0a7116680fee3afef4ad50614c9de4c56f349a35624a5399f70fa6385472c712b45e6be560c2bb7c0f26ab0b29b9a3daf diff --git a/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0-r1.ebuild b/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0-r1.ebuild index bf82f1c4fcba..e13505b028f7 100644 --- a/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0-r1.ebuild +++ b/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0-r1.ebuild @@ -4,20 +4,31 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) + inherit distutils-r1 DESCRIPTION="Simple tool for uploading files to the filesystem of an ESP8266 running NodeMCU" HOMEPAGE="https://github.com/kmpm/nodemcu-uploader" -SRC_URI="https://github.com/kmpm/nodemcu-uploader/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI=" + https://github.com/kmpm/nodemcu-uploader/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" - -RDEPEND=">=dev-python/pyserial-3.4[${PYTHON_USEDEP}]" - -distutils_enable_tests setup.py +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pyserial-3.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + ) +" src_prepare() { # https://bugs.gentoo.org/796422 @@ -25,3 +36,8 @@ src_prepare() { distutils-r1_src_prepare } + +python_test() { + "${EPYTHON}" -m unittest -v tests.get_tests || + die "Tests failed on ${EPYTHON}" +} diff --git a/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0.ebuild b/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0.ebuild deleted file mode 100644 index d6a6dde13414..000000000000 --- a/dev-embedded/nodemcu-uploader/nodemcu-uploader-1.0.0.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9..10} ) -inherit distutils-r1 - -DESCRIPTION="Simple tool for uploading files to the filesystem of an ESP8266 running NodeMCU" -HOMEPAGE="https://github.com/kmpm/nodemcu-uploader" -SRC_URI="https://github.com/kmpm/nodemcu-uploader/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=">=dev-python/pyserial-3.4[${PYTHON_USEDEP}]" - -distutils_enable_tests setup.py - -src_prepare() { - # https://bugs.gentoo.org/796422 - sed -i -e 's:description-file:description_file:' setup.cfg || die - - distutils-r1_src_prepare -} |