From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6472158087 for ; Fri, 28 Jan 2022 08:02:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03D9E2BC086; Fri, 28 Jan 2022 08:02:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C49C92BC01A for ; Fri, 28 Jan 2022 08:02:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DF17C340FD3 for ; Fri, 28 Jan 2022 08:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9903024E for ; Fri, 28 Jan 2022 08:02:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1643356852.e5b43e9c3b5083981a76f8f5a02e48763e7d756c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/platformio/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/platformio/platformio-5.2.4-r1.ebuild X-VCS-Directories: dev-embedded/platformio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e5b43e9c3b5083981a76f8f5a02e48763e7d756c X-VCS-Branch: master Date: Fri, 28 Jan 2022 08:02:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3bb219e4-f437-4d4a-bee7-ac125eeba3ad X-Archives-Hash: a72fe0c5a0bfbb0c67ad0ff4a4d199da commit: e5b43e9c3b5083981a76f8f5a02e48763e7d756c Author: Matthew Smith offtopica uk> AuthorDate: Fri Jan 14 10:36:42 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 28 08:00:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5b43e9c dev-embedded/platformio: Relax zeroconf requirement Closes: https://bugs.gentoo.org/831181 Signed-off-by: Matthew Smith offtopica.uk> Closes: https://github.com/gentoo/gentoo/pull/23788 Signed-off-by: Sam James gentoo.org> dev-embedded/platformio/platformio-5.2.4-r1.ebuild | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/dev-embedded/platformio/platformio-5.2.4-r1.ebuild b/dev-embedded/platformio/platformio-5.2.4-r1.ebuild new file mode 100644 index 000000000000..16e980cb005a --- /dev/null +++ b/dev-embedded/platformio/platformio-5.2.4-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 udev + +DESCRIPTION="An open source ecosystem for IoT development" +HOMEPAGE="https://platformio.org/" +SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-core-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/aiofiles-0.8.0[${PYTHON_USEDEP}] + dev-python/ajsonrpc[${PYTHON_USEDEP}] + =dev-python/click-7.1.2[${PYTHON_USEDEP}] + =dev-python/pyserial-3[${PYTHON_USEDEP}] + =dev-python/requests-2.4[${PYTHON_USEDEP}] + =dev-python/semantic_version-2.8.1[${PYTHON_USEDEP}] + =dev-python/tabulate-0.8.3[${PYTHON_USEDEP}] + =dev-python/pyelftools-0.25[${PYTHON_USEDEP}] + =dev-python/marshmallow-2.20.5[${PYTHON_USEDEP}] + >=dev-python/starlette-0.17[${PYTHON_USEDEP}] + >=dev-python/uvicorn-0.16[${PYTHON_USEDEP}] + dev-python/wsproto[${PYTHON_USEDEP}] + >=dev-python/zeroconf-0.37[${PYTHON_USEDEP}] + ') + virtual/udev" +DEPEND="virtual/udev" +BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )" + +# This list could be refined a bit to have individual tests which need network +# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now. +EPYTEST_IGNORE=( + # Requires network access + tests/test_builder.py + tests/package/test_manager.py + tests/package/test_manifest.py + tests/commands/test_platform.py + tests/commands/test_test.py + tests/commands/test_ci.py + tests/commands/test_init.py + tests/commands/test_lib.py + tests/commands/test_lib_complex.py + tests/commands/test_boards.py + tests/commands/test_check.py + tests/test_ino2cpp.py + tests/test_maintenance.py + tests/test_misc.py +) + +distutils_enable_tests pytest + +src_prepare() { + # Allow newer versions of zeroconf, Bug #831181. + sed -i '/zeroconf/s/==/>=/' "${S}"/setup.py + default +} + +src_install() { + distutils-r1_src_install + udev_dorules scripts/99-platformio-udev.rules +}