Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
c1b7f8c5d8
commit
b1759cdcaf
@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1842 Ebuilds in total, 1831 of them have in total 1853 (42 different) licenses assigned.
|
||||
There are 1845 Ebuilds in total, 1834 of them have in total 1856 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1061|
|
||||
|Apache-2.0|405|
|
||||
|MIT|1062|
|
||||
|Apache-2.0|406|
|
||||
|BSD|108|
|
||||
|GPL-3|107|
|
||||
|BSD|107|
|
||||
|LGPL-3|25|
|
||||
|GPL-2|23|
|
||||
|GPL-3+|14|
|
||||
|
@ -1,7 +1,9 @@
|
||||
DIST esphome-dashboard-20230904.0.tar.gz 5274408 BLAKE2B 3ab9bb245af9375a2b1d5721051c065949995ebc07c039056074b5d185afee486c0f3bbddda424ed8ec95aae9464e26c404abfd2e0f995cb84f03695cbaa0197 SHA512 523d14f0ec590b2d0fdc00ad2f5a58e4e1a87e9805b15dd571c084bb3fa44b6fe763e5bd5159c95827ab207ece8056d80ca4ee4a724ad88a021d617d55e96bd4
|
||||
DIST esphome-dashboard-20231107.0.tar.gz 5322470 BLAKE2B 524769c3f1964cbebce7840deff36f65f58bf8eafdbc6031395d8d840c1380a859a9bc794c04cd35934fe3c776fd6bd335b2fb7822de4bac987a420f875f9a04 SHA512 2a93b03adfe1da96e6af285c5613614f636ab05039e42b7f062086baaaf6660cc1d1ebd93255eedc8e1a4093e26b64acf827718de3bc7376409bf21b8d514fae
|
||||
DIST esphome-dashboard-20240319.0.tar.gz 5383924 BLAKE2B 0cb3ffa8afed61a9083b442b74c85cb12a4f9da7bb57338371db10fe2c210b94a1a4cf27db8786501a0dc3393f7cae43a94d2419e11de672e36d328c738671f4 SHA512 8f51aaf408481c6a9b84be6b1dd1681cf512847e26968d843cc74b51149d084e7a4ef21157d9edf2387c4e5b850dc27acdec085064db96b94fdc61252c24e8bc
|
||||
DIST esphome_dashboard-20240429.1.tar.gz 5379937 BLAKE2B ffb8bc15ce89fd91ea3996bd29b924efa74290b9176335b6aa42a705c5deb08d8072a26f5da61fe6183ca3f10c90196b4a9cd75858abb2253e3f4df9bea58f3f SHA512 adef5882c80dbac9362a1e87c2e28e55b5b29c9b5a59bf56e38c03c6d0675efa608df44e07266b23c1ba8b7f5374c59ef9b0fb5e36d3f3aa73949603dd1f508b
|
||||
EBUILD esphome-dashboard-20230904.0.ebuild 430 BLAKE2B 5eb0e22fd45728a7cdf6b1af0f1d42538d81dc25c716a914565a70a573e63b2acb588e577c1371234784fa8808efe5c2297f985bc2b3527832044ac515426368 SHA512 715cf281323309d5169fa64aca49de59e1913003ef14ab0bdf464971da87538797738f59e5764474dcc0762da8a1bbdfda4dcad0ffe480d860874bc9a2df5293
|
||||
EBUILD esphome-dashboard-20231107.0.ebuild 430 BLAKE2B 5eb0e22fd45728a7cdf6b1af0f1d42538d81dc25c716a914565a70a573e63b2acb588e577c1371234784fa8808efe5c2297f985bc2b3527832044ac515426368 SHA512 715cf281323309d5169fa64aca49de59e1913003ef14ab0bdf464971da87538797738f59e5764474dcc0762da8a1bbdfda4dcad0ffe480d860874bc9a2df5293
|
||||
EBUILD esphome-dashboard-20240319.0.ebuild 430 BLAKE2B 5eb0e22fd45728a7cdf6b1af0f1d42538d81dc25c716a914565a70a573e63b2acb588e577c1371234784fa8808efe5c2297f985bc2b3527832044ac515426368 SHA512 715cf281323309d5169fa64aca49de59e1913003ef14ab0bdf464971da87538797738f59e5764474dcc0762da8a1bbdfda4dcad0ffe480d860874bc9a2df5293
|
||||
EBUILD esphome-dashboard-20240429.1.ebuild 621 BLAKE2B 375bc0a39fc5c088b97ba20f153f6f37923587c4d674510ca1351fab3748417f1f2c1ba5f838c2c16871434e8ac619758e990b2924c2562786fb7bfb6375b4a2 SHA512 f201966199fce0d6b66d96cdd9055ba503aa3de7c91115866d51999f893ad021a59356e4f676d0c79508e914584b2ce8a6ddf4167776b23aa37f21b200c15c3f
|
||||
MISC metadata.xml 516 BLAKE2B 9279866d47bec9f6ff5357e99b7234912ed6c19999eff0101044505f7bc3e3e13c4840e26ac0e92bd724654bc3559c3bbbdcdfc49517300b244a301dbf245670 SHA512 680331484d1334d2b719c7001742064cd39aaccc08245dca38797a32e83a7491f71c4b8e4eace7f570eb04bff9baf24f3538c35237b5ee8721466f5d5fd67650
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="ESPHome dashboard"
|
||||
HOMEPAGE="https://pypi.org/project/esphome-dashboard/ https://github.com/esphome/dashboard"
|
||||
SRC_URI="https://files.pythonhosted.org/packages/a0/23/4b670fdb351bfcf1a208e1494c2c13b5762bcb9757615c508b81e56ff8d1/esphome_dashboard-20240429.1.tar.gz"
|
||||
|
||||
S=${WORKDIR}/esphome_dashboard-${PV}
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Apache-2.0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
DOCS="README.md"
|
@ -8,11 +8,13 @@ DIST esphome-2023.12.9.tar.gz 2064985 BLAKE2B 38d7a842a461aebed8352f54093259f8c5
|
||||
DIST esphome-2024.2.2.tar.gz 2127565 BLAKE2B 52aa760c3c9050640aaabe51ea9f01ed146b76c2ff0a48de855f027c9c92c2df3fb05eb81a4dda27f51cef061116c8b7088864db68756bd918a113807ef693fb SHA512 0f1e4277a0bd12adff8e4cfec702e9e00c6023fa8682d1f247d0153739153cc14956a94044a634afaf3d0a311543a5a4a8c04dd7c791c5c61c994625118b300c
|
||||
DIST esphome-2024.3.0.tar.gz 2236732 BLAKE2B 349223e4e06c811925e2fbb7974954f43a9af9fa6b84d4e5b1751bc955afbed1d6b7682fc1471cbeab3142245576161f57e4ea0769ae061a65ff53739650ef36 SHA512 c54184c85b11a0ea331b6d751acf24c72548ad446c3d226266c1223829671cf78cb2f14e4a577873c08c82d8150ba61f02114308dcfebabed89fbf718eb52641
|
||||
DIST esphome-2024.3.2.tar.gz 2236891 BLAKE2B 8d3d5845a0735c0c3c60163a4709265d6ecb2326a0cba969897a794cc4154f4538c49bdcbcb32236e1053389b647c3bb9fdad55844aa1af3d888acaeb465db2b SHA512 8d3273a886987118865e9bbffe7edfe5922fab670387f093b111b07497b5165040fa1f452c7687b322704446fc0c61df08bc06987e43ab46d62d5e10b08abd14
|
||||
DIST esphome-2024.5.2.tar.gz 2429586 BLAKE2B ac8cfaca5cb5874fe39f2f1091f1fd1eea721acf7b80201d50867c279b9bd83d80de798820e4427571307749738cb9ed19276b17018d8f456cf8b361e45fa8f9 SHA512 b9dad971a483d38f17ff0d9ca2d6080b22c003e2d5163c32e1e550224e158fd83f35c4ac0cee10b5a834b7acf715def7b8caff9c7ebf21a8361131ccce701133
|
||||
EBUILD esphome-2023.10.6.ebuild 3003 BLAKE2B 4daeb36a1081b6608dee0a50836812abe9bca242a06b59223f7c8ed97a0e10c95d059264e1519123f24cdafe2e3d73e28629d13144b4d1ab180ba0d5da9e354d SHA512 c804ce991fada5225e0303cecb44e31b567ce0ed5f0f39550715051a0976afd9c8ab542c8df3b19819827d8e981ad205a1a36a2fa7419748248e3a33853000b8
|
||||
EBUILD esphome-2023.11.6.ebuild 3063 BLAKE2B 2389d0dc3fd36d89041b632227b5d0e06d68e88075263fa6b60848625dff3f3098dda8c557e28952ecf48f11656170700e3246859861e6500ea8f65adb34f4cc SHA512 594a88da89f265d7278bc8df8cab5567beb20f0d3ae65c3993c473886afb7a078ad7d8da36469f1663269be54a5c132aaf01b828d1446c9c45ba24cc5b5aede3
|
||||
EBUILD esphome-2023.12.9.ebuild 3114 BLAKE2B e6ba9c1299d960c69dba6d1b5ffebb71bfa708d21b3bdec867d4e73107d3f78255322229f5f9651fd8522cf97f35f7d95cdeb5a8c1c17cda0e20386de6b037c4 SHA512 ceee6bb8e5d67fa5cece7ada37e1580f48351f068583ef757f988915d3c3c07149259b713bdd2b759d5c312b08f4853f5a800237769edaf5c6568449131d6e43
|
||||
EBUILD esphome-2024.2.2.ebuild 3181 BLAKE2B 66739de0635c499a4cba796999f6177cb42264a87ddc41a9f0cfc4e8d333b353da9f2f1f0b6fe95b7363a02a6a5bbe7f25d3ca14f5eced83671836eff099a606 SHA512 3a8157f256da934d01183425957ddcd6849bd78928a6e6d4e5268a1ad2018b5c1487b4a573f326c2f16843bdfab6339380ee34fe126c54c6f86a4cc2045cc628
|
||||
EBUILD esphome-2024.3.0.ebuild 3383 BLAKE2B 53277fbdc0f7b64ec51d138ab4689f9ff4c41876aeab139009244b04aa55a558878a40123376fd9b332fb88e30acb7b3cad95b58ad80782a343586768958e252 SHA512 7639e4a4a827c5e745ac570dbd139f34ecf404f6758443709e9bd77f32b4fe224cfb60a117875df3a367ca40716eb552ce4435b53960a00c392db8f4e5f5894a
|
||||
EBUILD esphome-2024.3.2-r1.ebuild 3376 BLAKE2B 6cb4ef37a4db313e39166570fa892144d5105377750ede5cbe8f227f1a4380949e87eca14958e83b9781451a0e99e4c645b4b7749209613bdc845d0d810a4082 SHA512 6e76bd6102b34421d8d2d6691e5318660c3260430d00671901901c0118e73b11aecb5f135609e6030ca5bfca792a1ed97c873ec121e8e06b2a94717703bd4115
|
||||
EBUILD esphome-2024.5.2.ebuild 3379 BLAKE2B 1dea110d29b22b966feef250a8841cbb6f76741aff853dd77a537ee61ac3916ae56c1171605a05009c62821893aeee7750acf57ca75f58fb8d42d304e8cb8ece SHA512 86e4285ca2b6f9937fed17107b1ad62ce553629e08c2f5cd802b29f2fad7ac42beac12b8e0a5bc3bac974c7e47bfbcf24d727316fcb1b373cd29e065166d63ab
|
||||
EBUILD esphome-9999.ebuild 3219 BLAKE2B df2d86fc84e7ac2baeb1c36dd21931cb353b74e340eed316a606db8d96fc4df0ea48bb25cb9615dbeac0b72f766205bb5ae98abfc305c71049e8faac327b512c SHA512 6f678afd7ed7fbba3e76b4accd0d873db286ec3d97abac3bb1414eb6dde76a22931eaa48909786b5e0e6b6f434ba36b685a8417f6bc93991aada4e9cc55dd620
|
||||
MISC metadata.xml 585 BLAKE2B 07113af8bf33f8ab4a457387804b65e5927bd40dc42de4931df0e78405ba49e2e9b695de6f3d919070b11e3edca32015f069217624b00549c38e608ffe680cf9 SHA512 fbd6544cfe0826fc63567c55f7882e4c6f61a2ebd337421353ae9afb8c2c66961f6328746fdfbe68ee47e5002193914c809c53a663d4a9a58f64166ba1346f20
|
||||
|
111
dev-embedded/esphome/esphome-2024.5.2.ebuild
Normal file
111
dev-embedded/esphome/esphome-2024.5.2.ebuild
Normal file
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
|
||||
inherit readme.gentoo-r1 distutils-r1
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/esphome/esphome.git"
|
||||
EGIT_BRANCH="dev"
|
||||
S="${WORKDIR}/${P}/"
|
||||
else
|
||||
inherit pypi
|
||||
MY_P=${P/_beta/b}
|
||||
MY_PV=${PV/_beta/b}
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Make creating custom firmwares for ESP32/ESP8266 super easy."
|
||||
HOMEPAGE="https://github.com/esphome/esphome https://pypi.org/project/esphome/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="+server test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DOCS="README.md"
|
||||
|
||||
RDEPEND="
|
||||
server? ( acct-group/${PN} acct-user/${PN} )
|
||||
$(python_gen_cond_dep '
|
||||
~dev-python/cryptography-42.0.5[${PYTHON_USEDEP}]
|
||||
dev-python/voluptuous[${PYTHON_USEDEP}]
|
||||
~dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
|
||||
~dev-python/paho-mqtt-1.6.1[${PYTHON_USEDEP}]
|
||||
~dev-python/colorama-0.4.6[${PYTHON_USEDEP}]
|
||||
dev-python/icmplib[${PYTHON_USEDEP}]
|
||||
server? ( ~dev-python/tornado-6.4[${PYTHON_USEDEP}] )
|
||||
~dev-python/tzlocal-5.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/tzdata-2021.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pyserial-3.5[${PYTHON_USEDEP}]
|
||||
~dev-embedded/platformio-6.1.15[${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-embedded/esptool-4.7.0-r2[${PYTHON_USEDEP}]
|
||||
~dev-python/click-8.1.7[${PYTHON_USEDEP}]
|
||||
~dev-embedded/esphome-dashboard-20240429.1[${PYTHON_USEDEP}]
|
||||
dev-python/aioesphomeapi[${PYTHON_USEDEP}]
|
||||
dev-python/zeroconf[${PYTHON_USEDEP}]
|
||||
~dev-python/python-magic-0.4.27[${PYTHON_USEDEP}]
|
||||
~dev-python/ruamel-yaml-0.18.6[${PYTHON_USEDEP}]
|
||||
~dev-python/kconfiglib-13.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/argcomplete-2.0.0[${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
BDEPEND="$(python_gen_cond_dep '
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/asyncmock[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
')"
|
||||
|
||||
DISABLE_AUTOFORMATTING=1
|
||||
DOC_CONTENTS="
|
||||
The ESPHome dashboard listens on port 6052
|
||||
ESPHome configuration is in: /etc/${PN}
|
||||
dashboard command line arguments are configured in: /etc/conf.d/${PN}
|
||||
logging is to: /var/log/${PN}/{dashboard,warnings}.log
|
||||
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
sed "/aioesphomeapi==/c\aioesphomeapi" -i requirements.txt || die
|
||||
sed "/click==/c\click" -i requirements.txt || die
|
||||
sed "/colorama==/c\colorama" -i requirements.txt || die
|
||||
sed "/zeroconf==/c\zeroconf" -i requirements.txt || die
|
||||
sed "/voluptuous==/c\voluptuous" -i requirements.txt || die
|
||||
sed "/cryptography==/c\cryptography" -i requirements.txt || die
|
||||
sed "/icmplib==/c\icmplib" -i requirements.txt || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc ${DOCS}
|
||||
distutils-r1_python_install_all
|
||||
if use server; then
|
||||
keepdir "/etc/${PN}"
|
||||
fowners -R "${PN}:${PN}" "/etc/${PN}"
|
||||
keepdir "/var/log/${PN}"
|
||||
fowners -R "${PN}:${PN}" "/var/log/${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
|
||||
newinitd "${FILESDIR}/${PN}.init.d-r3" "${PN}"
|
||||
readme.gentoo_create_doc
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use server; then
|
||||
readme.gentoo_print_elog
|
||||
fi
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1,6 +1,8 @@
|
||||
DIST platformio-6.1.11.gh.tar.gz 296333 BLAKE2B 17672b499eca9c828cd7c6ea6a4c8acea7287f42bb78d4fc5fbd11bb93175bb87d9c2d100270869bc99bc0db550b49c163555ddd8edb17b6b33ccc5f3623f768 SHA512 450e3d1dc3b9c8124b6254fbf0a05b207b834aa0661f083ee2915bde5064498b6d5af666ad851b737fa5627ed436db983e038f83ed0437a1e248749a0dcc99ba
|
||||
DIST platformio-6.1.13.gh.tar.gz 298899 BLAKE2B 9b1916bb72d1aea0c9a930a9a681e97a7f2c0ef2c266526f3359ec3cde84dffc1b982e3f46d2cd99051d7dbed3877a11812ad3a7ea21599c9bd05470f35d8c85 SHA512 cd71720c5a293299bc357d9eee82344bea61f44c68bc1b0d287a14c3531cd1f0d8d1d265e7c4a670935b69f93d9f360216cfc613c0c9c3f653415df8ae8f8069
|
||||
DIST platformio-6.1.15.gh.tar.gz 300704 BLAKE2B 1c26ed67d7ecf44b10f90808e1ec044d67ece18188fd5d90f3cbd8f03a767d5863587f34591b2ccf64c719efd811d0cce5454685c848c5571a0ab17b96e07ad1 SHA512 c25bbe1ee707fe2cda46349a63a92e4532ea533e0b44fa56fb8eb74b93647944a0793cabbe034b2de92c58542bae604153520406357187f551d9398443cd1d5d
|
||||
EBUILD platformio-6.1.11-r1.ebuild 3304 BLAKE2B 9b03272e74ed8070d9c9f4d885791ca03d1298bfe3d9100a933fc4b6a2cfa8f8ee18d6ba956609901797a4e6dafc286a912fb582bbcad2860a46f7def1c602a7 SHA512 400ed333d1a198d672bb90f8cacc18516f7e91d1173d1b16802dfadffaf11a8f9e532543167150448ecbb875cdb4cacae892ca6e0e2135fd72b148126e322e1e
|
||||
EBUILD platformio-6.1.11.ebuild 3396 BLAKE2B 5cc2767edc5c081755524f6eee94235c961de3bc49268e0d62e2a41f789d237b85ecbc24cdde037a77dfe3e50c6b42c26527d9e5b68ea192dae272815de24d5b SHA512 07518a41c199c44d975bdf657c8dd2f7eb2481e74af6258976bf8553664de709ebb528234e7909b82a7d8938de69cc3462997aab61b156e5280a9f7485e152e9
|
||||
EBUILD platformio-6.1.13.ebuild 3180 BLAKE2B 3434f3fbfc0d60bcefe4fe9dc8a20e1a08b107f8e6f367ee657b780d241914ee44d0b8a5ad8fd0794eeee775384eb9a79a978b789c1b5317f3f8364364d92220 SHA512 1c8afc6282a4304c6e0324b4d60c8697049833bc1cd38e08bb61ad32d187687f9f6bd6be57c1f727af0d5751ea853d8ac05f9fdd8858d52c93c5fa3573a8c6d4
|
||||
EBUILD platformio-6.1.15.ebuild 3180 BLAKE2B 3434f3fbfc0d60bcefe4fe9dc8a20e1a08b107f8e6f367ee657b780d241914ee44d0b8a5ad8fd0794eeee775384eb9a79a978b789c1b5317f3f8364364d92220 SHA512 1c8afc6282a4304c6e0324b4d60c8697049833bc1cd38e08bb61ad32d187687f9f6bd6be57c1f727af0d5751ea853d8ac05f9fdd8858d52c93c5fa3573a8c6d4
|
||||
MISC metadata.xml 525 BLAKE2B 40eb042e66855b7a7f76251fb994cbe9318bfa5227c529086e5b7e30130df8767cadddd6a58ec5590deb350381f024050a3590919baf6f0b239866611b643733 SHA512 4809b8b1deaa62246ee1dac2f62074c6a2d62f3a7013eec24aafeb1986049776bd8a4f81a10698ea26171cabe1d9d9778428d0cd361adaf23118fd4122d95f70
|
||||
|
114
dev-embedded/platformio/platformio-6.1.15.ebuild
Normal file
114
dev-embedded/platformio/platformio-6.1.15.ebuild
Normal file
@ -0,0 +1,114 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
|
||||
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}.gh.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-core-${PV}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
~dev-python/bottle-0.12.25[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-8.0.4[${PYTHON_USEDEP}]
|
||||
<dev-python/click-9[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
~dev-python/marshmallow-3.21.1[${PYTHON_USEDEP}]
|
||||
~dev-python/pyserial-3.5[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
>=dev-python/semantic-version-2.10[${PYTHON_USEDEP}]
|
||||
<dev-python/semantic-version-3[${PYTHON_USEDEP}]
|
||||
<dev-python/tabulate-1[${PYTHON_USEDEP}]
|
||||
~dev-python/ajsonrpc-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/starlette-0.21[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvicorn-0.19[${PYTHON_USEDEP}]
|
||||
dev-python/wsproto[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyelftools-0.27[${PYTHON_USEDEP}]
|
||||
<dev-python/pyelftools-1[${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/commands/test_run.py
|
||||
tests/commands/pkg/test_exec.py
|
||||
tests/commands/pkg/test_list.py
|
||||
tests/commands/pkg/test_outdated.py
|
||||
tests/commands/pkg/test_search.py
|
||||
tests/commands/pkg/test_show.py
|
||||
tests/commands/pkg/test_install.py
|
||||
tests/commands/pkg/test_uninstall.py
|
||||
tests/commands/pkg/test_update.py
|
||||
tests/misc/ino2cpp/test_ino2cpp.py
|
||||
tests/test_maintenance.py
|
||||
tests/test_misc.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Requires network access
|
||||
tests/misc/test_maintenance.py::test_check_pio_upgrade
|
||||
tests/misc/test_misc.py::test_ping_internet_ips
|
||||
tests/misc/test_misc.py::test_api_cache
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# Allow newer versions of:
|
||||
# - zeroconf, bug #831181.
|
||||
# - wsproto
|
||||
# - semantic_version, bug #853247
|
||||
# - starlette & uvicorn, bug #888427
|
||||
sed \
|
||||
-e '/zeroconf/s/<[0-9.*]*//' \
|
||||
-e '/wsproto/s/==.*/"/' \
|
||||
-e '/semantic_version/s/==[0-9.*]*//' \
|
||||
-e '/starlette/s/==.*/"/' \
|
||||
-e '/uvicorn/s/==.*/"/' \
|
||||
-i setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest -k "not skip_ci"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
udev_dorules platformio/assets/system/99-platformio-udev.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user