1 |
commit: 50927e2cd84ef3d10fb38481528d7dd0c96be18a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 25 02:42:17 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 25 02:42:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50927e2c |
7 |
|
8 |
dev-embedded/platformio: add 6.0.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-embedded/platformio/Manifest | 1 + |
13 |
dev-embedded/platformio/platformio-6.0.2.ebuild | 108 ++++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/dev-embedded/platformio/Manifest b/dev-embedded/platformio/Manifest |
17 |
index 5a74045ba900..51724e0adc5b 100644 |
18 |
--- a/dev-embedded/platformio/Manifest |
19 |
+++ b/dev-embedded/platformio/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST platformio-5.2.5.tar.gz 254813 BLAKE2B 96911a64f8e73567820ef2c7b2297ed9e32c36c65c49572af6037c2666da4072bdf920dc31e8de7e07296eb7f1b407c47191d68a80ed212a9c351dfca604b408 SHA512 cf939254c231bb2cb97ac509175b7235a6a2ba447e55a2d9a59a9fe610656743c190f00cb7bfa1fc2e6b64487be7f02a193e2f270236bbb9200537f19175dc22 |
22 |
+DIST platformio-6.0.2.tar.gz 285452 BLAKE2B c70523837b5118fcc1209a36a425fb6ab0aac73e56732916ff3d39fe87d50a47bf7d31d77324f491093ed366b1b3e4f88274e973bc896b164f5a07687a53bd12 SHA512 a2e48ad9ca22024a06509a9e36e5a7586088d0e8abd67d309d1988a8a112a41e301f077f1b466b5db390dc4048add570acd5bb762bbf22db69715dead0d8fc89 |
23 |
|
24 |
diff --git a/dev-embedded/platformio/platformio-6.0.2.ebuild b/dev-embedded/platformio/platformio-6.0.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..bf24334631e4 |
27 |
--- /dev/null |
28 |
+++ b/dev-embedded/platformio/platformio-6.0.2.ebuild |
29 |
@@ -0,0 +1,108 @@ |
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-0.9[${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/click-9[${PYTHON_USEDEP}] |
57 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pyserial-3[${PYTHON_USEDEP}] |
59 |
+ <dev-python/pyserial-4[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/requests-2.4[${PYTHON_USEDEP}] |
61 |
+ <dev-python/requests-3[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/semantic_version-2.9[${PYTHON_USEDEP}] |
63 |
+ <dev-python/semantic_version-3[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/tabulate-0.8.3[${PYTHON_USEDEP}] |
65 |
+ <dev-python/tabulate-1[${PYTHON_USEDEP}] |
66 |
+ dev-python/twisted[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/pyelftools-0.25[${PYTHON_USEDEP}] |
68 |
+ <dev-python/pyelftools-1[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/marshmallow-2.20.5[${PYTHON_USEDEP}] |
70 |
+ =dev-python/starlette-0.18*[${PYTHON_USEDEP}] |
71 |
+ =dev-python/uvicorn-0.17*[${PYTHON_USEDEP}] |
72 |
+ dev-python/wsproto[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/zeroconf-0.37[${PYTHON_USEDEP}] |
74 |
+ ') |
75 |
+ virtual/udev" |
76 |
+DEPEND="virtual/udev" |
77 |
+BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )" |
78 |
+ |
79 |
+# This list could be refined a bit to have individual tests which need network |
80 |
+# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now. |
81 |
+EPYTEST_IGNORE=( |
82 |
+ # Requires network access |
83 |
+ tests/test_builder.py |
84 |
+ tests/package/test_manager.py |
85 |
+ tests/package/test_manifest.py |
86 |
+ tests/commands/test_platform.py |
87 |
+ tests/commands/test_test.py |
88 |
+ tests/commands/test_ci.py |
89 |
+ tests/commands/test_init.py |
90 |
+ tests/commands/test_lib.py |
91 |
+ tests/commands/test_lib_complex.py |
92 |
+ tests/commands/test_boards.py |
93 |
+ tests/commands/test_check.py |
94 |
+ tests/commands/test_run.py |
95 |
+ tests/commands/pkg/test_exec.py |
96 |
+ tests/commands/pkg/test_list.py |
97 |
+ tests/commands/pkg/test_outdated.py |
98 |
+ tests/commands/pkg/test_search.py |
99 |
+ tests/commands/pkg/test_show.py |
100 |
+ tests/commands/pkg/test_install.py |
101 |
+ tests/commands/pkg/test_uninstall.py |
102 |
+ tests/commands/pkg/test_update.py |
103 |
+ tests/misc/ino2cpp/test_ino2cpp.py |
104 |
+ tests/test_maintenance.py |
105 |
+ tests/test_misc.py |
106 |
+) |
107 |
+ |
108 |
+EPYTEST_DESELECT=( |
109 |
+ # Requires network access |
110 |
+ tests/misc/test_maintenance.py::test_check_pio_upgrade |
111 |
+ tests/misc/test_misc.py::test_ping_internet_ips |
112 |
+ tests/misc/test_misc.py::test_api_cache |
113 |
+) |
114 |
+ |
115 |
+distutils_enable_tests pytest |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ # Allow newer versions of zeroconf, Bug #831181. |
119 |
+ # Also wsproto. |
120 |
+ # ... and semantic_version, bug #853247. |
121 |
+ sed \ |
122 |
+ -e '/zeroconf/s/<[0-9.*]*//' \ |
123 |
+ -e '/wsproto/s/==.*/"/' \ |
124 |
+ -e '/semantic_version/s/==[0-9.*]*//' \ |
125 |
+ -i setup.py || die |
126 |
+ |
127 |
+ default |
128 |
+} |
129 |
+ |
130 |
+python_test() { |
131 |
+ epytest -k "not skip_ci" |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ distutils-r1_src_install |
136 |
+ udev_dorules scripts/99-platformio-udev.rules |
137 |
+} |