Change src download, in mirror:pypi have deleted the test directory and changelog.md

Remove python_test is included in python-utils-r1.eclass
Add cli command line tools (and deps)
Update python test dependencies from setup.cfg
remove redundant dev-python/setuptools is in distutils-r1.eclass
Require pytest-asyncio-0.14.0 for test
Sync pytest-asyncio from gentoo official repository

check with pkgcheck 0.10.21
This commit is contained in:
Fco Javier Felix 2023-02-05 12:14:10 +01:00
parent ae1380b21b
commit 6a627b4ebc
6 changed files with 109 additions and 5 deletions

View File

@ -1,7 +1,9 @@
DIST pylutron-caseta-0.13.1.gh.tar.gz 30497 BLAKE2B f8b93cbd534cddc13744155c315642f046bbe33b69fdf79b4210384012b387a8eb8fd599cb70b82d26ac4cef684c07f8c575c36b44ee7b677b3da3a5ffb4cce1 SHA512 ddbe45324df264bd7ad8e7cb08848e5892457afbaf848a9509dc8a990121e381d56aceb25eba191912056079bb77973bce732afef5522ae7218aae45ac84fdc2
DIST pylutron-caseta-0.15.2.gh.tar.gz 53766 BLAKE2B d6b4fd1b16156dd2b7e8278b7abd09ea3fb37dbaf8cab05225dd70e71e83a5e7185593e11cce46f0bd3a4aeb3b073721ab6a17d52d8ffc64047652bd84d43629 SHA512 3949ff3db78eb99aa9aba0d26dd44f04ee0c3514bfb9b110bee00aa7b797f033d679fe3de69a31e453d7202f588ffc4186d600fc7842b964fb9d50002a611f0e
DIST pylutron-caseta-0.17.1.tar.gz 28573 BLAKE2B 7a00aedb789ee652d075d3428a33d6fc8d0c7c17e58cdc396bb395da663fd5aa205c95fea3e095e842c70c8620d0305cb492a0b24e15f8075a7e0bc8176c68ad SHA512 a6fa2b9c9bc5828a11d2262d66e4f50ed77462d64a18b6b811220e7f4d7d34445c680e56b1b83af15f68b75b30daac4018ec05172d2adf2e0312ffa4843c9760
DIST pylutron-caseta-0.18.1.gh.tar.gz 54225 BLAKE2B 2717df86bb52d4c76b2d43b81d8829478c81397b75417d693d9c3fcd78bc7fc46d19626ace6743bfdad344e5ebc1f061550656d4390d3e76aba9366c25e4902d SHA512 caed10953848b3f6df4ef21977f34baa98506a259f7741be263662306d8d388089ce15f1e72a99bff8c085e74fae28353f89700ab385e7b0afaa2a590b0768b7
EBUILD pylutron-caseta-0.13.1.ebuild 822 BLAKE2B 4f1897c6e0864c613543760dea6b3793a288353c2019c657f13183953a5662725e8147291710a7878dd3149c3bee0d7bbf094e143b7f06deb405326d6179b8bf SHA512 680d60df4b102802e2383f22ae14246434414201a549f7b9efe97b8fe7d71c45885c4e1d464a798f04d4de03bd6e141966e44b53abd0261486ff239d408b69ad
EBUILD pylutron-caseta-0.15.2.ebuild 885 BLAKE2B 80a7a7644f18f078617a598a8348e42717795a9f463f1dfbebec7707571e17a2d597c0967f6c48b83c25bb535e1ac823a73fdede66b34b2e64ac53a3e3a20657 SHA512 7802d245d046dac0bb57de12fdf009c6332e115d8c6d23e3057d854c53dd0bec82eced990167a246735ad8f6eb6184b29b1729d2e9159d515091585e78581230
EBUILD pylutron-caseta-0.17.1.ebuild 913 BLAKE2B 963ae96138af567fc78e063e157553b8e423a36d2c96806b45a1e80f45c0cac4f99eb023a7c184c6126e15bcfaf5e1679e5056507991e84b209ffd0643e6fd63 SHA512 b02c84d9b7bfe17c0a523ab28cdce41c29f01ae57e3f10d896be602e7a0dde8eda810cd3003654da28fb7148b54f0a2a1c84306f783da945ed3888c4d763049a
MISC metadata.xml 401 BLAKE2B 54df947c84da5c587483e79d4511faf1e620bae48a91a515d229b75393f40923ef04429049a4859bcee82df7595a1d3daec94d31ab0bdfa197446e2441adcb4b SHA512 cbfe7e9a77ddb0b166dcb226173e2ce0860bca0c192c3b806c1c4c0b18d7e6bbb14367aeed7fa318324b20949ef747bbb345389b04522bd2060f1b731cef1eb7
EBUILD pylutron-caseta-0.18.1.ebuild 1258 BLAKE2B 0c130ce1fe251484b438bfe48a3013f671c9c04c6d542a28bc1da6a2ead3abf419a0856261a383f5ce906404534140f639a558a7b9a7e75c9d4aacafe2553d13 SHA512 f6b8ec9740163c606affef078cf02a3e87defd2d97f69495e672df872480b663bef08e2d5355a7af8e7c90c8b5558e105ab163ccd0b5312cddeb527846959cfb
MISC metadata.xml 473 BLAKE2B bee29c99b9cfe5b0952924c4f1f5495c52da2263f0915928a3a97174549cc7bb1eec4d90032381a54c9cf7d7d9fae6c64fd3cc2662c8b0a467ebbb6bebc454aa SHA512 5b88f962c44852d4232041746a6bfa55509a93c028be60cf2dda445c6721bfdc564add454dc97da98d04b46cb6bddbad99ea722a0ba55e77de07fa045ffdc93a

View File

@ -9,4 +9,7 @@
<remote-id type="pypi">pylutron-caseta</remote-id>
<remote-id type="github">gurumitts/pylutron-caseta</remote-id>
</upstream>
<use>
<flag name="cli">Install command line tools</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,46 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Provides an API to the Lutron Smartbridge"
HOMEPAGE="https://github.com/gurumitts/pylutron-caseta https://pypi.org/project/pylutron-caseta/"
SRC_URI="https://github.com/gurumitts/pylutron-caseta/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="cli test"
RESTRICT="!test? ( test )"
DOCS="CHANGELOG.md README.md"
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]"
BDEPEND="
cli? (
dev-python/click[${PYTHON_USEDEP}]
dev-python/python-zeroconf[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
)
test? (
dev-python/coveralls[${PYTHON_USEDEP}]
~dev-python/pytest-asyncio-0.14.0[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-sugar[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_install() {
distutils-r1_python_install
if ! use cli; then
rm "${ED}"/usr/lib/python-exec/${EPYTHON}/{lap-pair,leap,leap-scan} || die
rm "${ED}"/usr/bin/{lap-pair,leap,leap-scan} || die
fi
}

View File

@ -1,3 +1,5 @@
DIST pytest-asyncio-0.14.0.gh.tar.gz 14796 BLAKE2B 0a110dabde491293dc10452239971809ec6a4006a2036e848aac067df1af328d0d1d5c7afae8cfc1ecf5c919c0922050e2db182065500ec614a8094d3799c0cd SHA512 d1fadff152a0c94f80a8272a0dd293bd9d9300ad9e79c69556b5901c1a8ce00545f7715e503a383e3f4f35c8090d8f9ec33d16739b85378b59b1786a50441fca
DIST pytest-asyncio-0.20.2.gh.tar.gz 25876 BLAKE2B 75f948b804cb8945ec6153a5386ec4e2c5e95757c012acb04f9dcc877b109f0af1f9093a242c6d38196014c8da01fe459687d37fd4cb2fbeed2705936a9fba15 SHA512 5d8b4965cea14dec2a2c7f21f6bb1bad6693b93f07b9dab5c880107a944942bd2c3ef38adc0e17b309222a53afa7504f827baf42201c2a0282a266118e3f7eb7
EBUILD pytest-asyncio-0.20.2.ebuild 1183 BLAKE2B 92e167f7b6a154e9a0ae1f110d7c4e49a560132fa7e6dfbb83d0ceffc2d6377db9354799eec73c207521364b287de28fb2b253b1eee7cad2cabc987d660751e9 SHA512 63e03403b1d669bfee0b6ba8aff1a99187cfd943ec8bdda60e669c1b3303ea62a12a620e11da2c4ffbe2379c4e180d57b7edfaedf5f2b80add7f9fe33136df57
EBUILD pytest-asyncio-0.14.0.ebuild 1266 BLAKE2B 032873765bc45e0cde28da76602abff97ebf46377b2d26e51dc21cbc5797369e6d2a8bd6325934e68b8f381bc04f70afb7112fa26a2aebbb9a71cd65a89c585d SHA512 0129c73412398cd32f79b514fb27c7b2590d9b84244ebeeb8fb646d521975fc0055ffd1de69ae06c88b17c8e329e4b204f4f19d4b9a24ff63067831926e490c5
EBUILD pytest-asyncio-0.20.2.ebuild 1266 BLAKE2B 032873765bc45e0cde28da76602abff97ebf46377b2d26e51dc21cbc5797369e6d2a8bd6325934e68b8f381bc04f70afb7112fa26a2aebbb9a71cd65a89c585d SHA512 0129c73412398cd32f79b514fb27c7b2590d9b84244ebeeb8fb646d521975fc0055ffd1de69ae06c88b17c8e329e4b204f4f19d4b9a24ff63067831926e490c5
MISC metadata.xml 385 BLAKE2B 3d8faba48e1b3e531ea338f08f2de4b7bf637190e65fc61df2bd4d994cc97707016f83927f4a5181ac27d412a8c91255e90caba15f2d687f2339bc8ea61b18f2 SHA512 71178d3fba362e7532c87cb519f3661b25018771b86c302660de11f1bc7817b8352a2c8fcf60084a5e62b15148307a360267381ac38e8c856784034d80327d4d

View File

@ -0,0 +1,51 @@
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} pypy3 )
inherit distutils-r1
DESCRIPTION="Library for testing asyncio code with pytest"
HOMEPAGE="
https://github.com/pytest-dev/pytest-asyncio/
https://pypi.org/project/pytest-asyncio/
"
SRC_URI="
https://github.com/pytest-dev/pytest-asyncio/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
RDEPEND="
>=dev-python/pytest-5.4.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
dev-python/flaky[${PYTHON_USEDEP}]
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
EPYTEST_DESELECT=(
# rely on precise warning counts
tests/test_pytest_min_version_warning.py
tests/modes/test_legacy_mode.py
tests/trio/test_fixtures.py::test_strict_mode_ignores_trio_fixtures
)
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x PYTEST_PLUGINS=pytest_asyncio.plugin,_hypothesis_pytestplugin,flaky.flaky_pytest_plugin
epytest
}

View File

@ -1,10 +1,10 @@
# Copyright 2019-2022 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{9..11} pypy3 )
inherit distutils-r1
@ -20,7 +20,7 @@ SRC_URI="
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
RDEPEND="
>=dev-python/pytest-5.4.0[${PYTHON_USEDEP}]