Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/platformio/
Date: Wed, 02 Nov 2022 23:34:45
Message-Id: 1667432072.70cf4ba56bdcade431ae6eee0c7db1f0a3deee28.sam@gentoo
1 commit: 70cf4ba56bdcade431ae6eee0c7db1f0a3deee28
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 2 23:34:32 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 23:34:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70cf4ba5
7
8 dev-embedded/platformio: add 6.1.5
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-embedded/platformio/Manifest | 1 +
13 dev-embedded/platformio/platformio-6.1.5.ebuild | 113 ++++++++++++++++++++++++
14 2 files changed, 114 insertions(+)
15
16 diff --git a/dev-embedded/platformio/Manifest b/dev-embedded/platformio/Manifest
17 index d7c7d9b0e9a8..c23b74a4f2b4 100644
18 --- a/dev-embedded/platformio/Manifest
19 +++ b/dev-embedded/platformio/Manifest
20 @@ -1 +1,2 @@
21 DIST platformio-6.1.4.tar.gz 290408 BLAKE2B 41a977d9b5e51a1e65ef61973301ab6e7e9ad0adbe6d4df2640b13f46623055df8303435a664acdd267ad8811229687b6abb088d5b331c33fb46bbe33ab188b1 SHA512 8c46b21212de2fb7579540c51b17061666b8abe4706800fe30fea053cb4233c17a03c2388295f9fb3a21602126f0c2c13f1dd80db962ef1b3d5c31c9a30791c7
22 +DIST platformio-6.1.5.tar.gz 290684 BLAKE2B 1beca08e70f6a932426e13e6b4755188ad2ac266c4b311b2e6ea560623ccc7479ad5fa1955c09e613eb62682164d1952be3b7f050a26d5a5b6bff26435bb2337 SHA512 43835a40636091d7062a1cbd96950ddb29592aba6c4eaeb80f37288f949bd95f3312cb5f33814cf8521e3b5bd3ceeb2e32e76c294ef5cbf992ed3c674d4a9ab7
23
24 diff --git a/dev-embedded/platformio/platformio-6.1.5.ebuild b/dev-embedded/platformio/platformio-6.1.5.ebuild
25 new file mode 100644
26 index 000000000000..d19bf8c9d53a
27 --- /dev/null
28 +++ b/dev-embedded/platformio/platformio-6.1.5.ebuild
29 @@ -0,0 +1,113 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_SINGLE_IMPL=1
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1 udev
40 +
41 +DESCRIPTION="An open source ecosystem for IoT development"
42 +HOMEPAGE="https://platformio.org/"
43 +SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}"/${PN}-core-${PV}
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +RDEPEND="
51 + $(python_gen_cond_dep '
52 + =dev-python/aiofiles-22.1*[${PYTHON_USEDEP}]
53 + dev-python/ajsonrpc[${PYTHON_USEDEP}]
54 + <dev-python/bottle-0.13[${PYTHON_USEDEP}]
55 + =dev-python/click-8*[${PYTHON_USEDEP}]
56 + dev-python/colorama[${PYTHON_USEDEP}]
57 + >=dev-python/pyserial-3[${PYTHON_USEDEP}]
58 + <dev-python/pyserial-4[${PYTHON_USEDEP}]
59 + >=dev-python/python-zeroconf-0.37[${PYTHON_USEDEP}]
60 + =dev-python/requests-2*[${PYTHON_USEDEP}]
61 + >=dev-python/semantic_version-2.9[${PYTHON_USEDEP}]
62 + <dev-python/semantic_version-3[${PYTHON_USEDEP}]
63 + =dev-python/tabulate-0.9*[${PYTHON_USEDEP}]
64 + dev-python/twisted[${PYTHON_USEDEP}]
65 + >=dev-python/pyelftools-0.27[${PYTHON_USEDEP}]
66 + <dev-python/pyelftools-1[${PYTHON_USEDEP}]
67 + =dev-python/marshmallow-3*[${PYTHON_USEDEP}]
68 + =dev-python/starlette-0.21*[${PYTHON_USEDEP}]
69 + =dev-python/uvicorn-0.19*[${PYTHON_USEDEP}]
70 + dev-python/wsproto[${PYTHON_USEDEP}]
71 + ')
72 + virtual/udev"
73 +DEPEND="virtual/udev"
74 +BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )"
75 +
76 +# This list could be refined a bit to have individual tests which need network
77 +# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now.
78 +EPYTEST_IGNORE=(
79 + # Requires network access
80 + tests/test_builder.py
81 + tests/package/test_manager.py
82 + tests/package/test_manifest.py
83 + tests/commands/test_platform.py
84 + tests/commands/test_test.py
85 + tests/commands/test_ci.py
86 + tests/commands/test_init.py
87 + tests/commands/test_lib.py
88 + tests/commands/test_lib_complex.py
89 + tests/commands/test_boards.py
90 + tests/commands/test_check.py
91 + tests/commands/test_run.py
92 + tests/commands/pkg/test_exec.py
93 + tests/commands/pkg/test_list.py
94 + tests/commands/pkg/test_outdated.py
95 + tests/commands/pkg/test_search.py
96 + tests/commands/pkg/test_show.py
97 + tests/commands/pkg/test_install.py
98 + tests/commands/pkg/test_uninstall.py
99 + tests/commands/pkg/test_update.py
100 + tests/misc/ino2cpp/test_ino2cpp.py
101 + tests/test_maintenance.py
102 + tests/test_misc.py
103 +)
104 +
105 +EPYTEST_DESELECT=(
106 + # Requires network access
107 + tests/misc/test_maintenance.py::test_check_pio_upgrade
108 + tests/misc/test_misc.py::test_ping_internet_ips
109 + tests/misc/test_misc.py::test_api_cache
110 +)
111 +
112 +distutils_enable_tests pytest
113 +
114 +src_prepare() {
115 + # Allow newer versions of zeroconf, Bug #831181.
116 + # Also wsproto.
117 + # ... and semantic_version, bug #853247.
118 + sed \
119 + -e '/zeroconf/s/<[0-9.*]*//' \
120 + -e '/wsproto/s/==.*/"/' \
121 + -e '/semantic_version/s/==[0-9.*]*//' \
122 + -i setup.py || die
123 +
124 + default
125 +}
126 +
127 +python_test() {
128 + epytest -k "not skip_ci"
129 +}
130 +
131 +src_install() {
132 + distutils-r1_src_install
133 + udev_dorules scripts/99-platformio-udev.rules
134 +}
135 +
136 +pkg_postinst() {
137 + udev_reload
138 +}
139 +
140 +pkg_postrm() {
141 + udev_reload
142 +}