mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
dev-python/pyproject-fmt: Bump to 2.24.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -4,9 +4,13 @@ DIST pyproject_fmt-2.21.1.tar.gz 152372 BLAKE2B d3c71cfad8dc645f4c02c98fccd4c417
|
||||
DIST pyproject_fmt-2.21.1.tar.gz.provenance 9617 BLAKE2B d64c03acd2d43cf10e77e53f9c80cdd4fb3afdec2d4fd84ce09868dea1942a8ad4749a210ec54bbf31ff4698ef09eb71a1a4d2172cd982c299cf6d0c2cea10c7 SHA512 81a3bf26b5a6cc0bab6918f6e2ddc288f52373e91bbd337a9c8482e14b604b926e19bd4b51e43c5e44f11d7fc5dbdcd65e4654e23907e4ae3614df37e3484edc
|
||||
DIST pyproject_fmt-2.21.2.tar.gz 155067 BLAKE2B e1d5ed9ad538c934d176d54c64030312f430746e3450d383c9bce7156bb953cefeb1976b81825e8dd108ccd5c5c4b5f0af2c6986a838b9b8c206132ed5b738a1 SHA512 6e13de792660c3dcb01f4857df08c12e099a3c6ce411886f0d63d66aff126980f283428dd1de322f0f1d5fc4dcde8d23b1490bedf6e580340542895d315bd39a
|
||||
DIST pyproject_fmt-2.21.2.tar.gz.provenance 9899 BLAKE2B dd64f16733cdceab98a70dd4680d3ef603976ba1d2a7e088c2906cd0ec05f3081586dd4d09a56c772106ff3dd8d3d81ffda497e34bd205aec0eec5ec5f0b108b SHA512 2585c2ab36baa9a1fce11e11d1468c990a736c543ce4de6c7476dd7df6f754b107795c238762110555eec284aefaa53e6eddc5733fce5b5ee701344baae5d086
|
||||
DIST pyproject_fmt-2.24.0.tar.gz 281070 BLAKE2B a3b8b23f7a3f3e422423a5806e54d3678eb4465b53f339b90e04c3caa16c1306f40bf01b38f4289f28f342a9b45e4b9214fb62a4edcecd6313f6c26b1c7a5aa1 SHA512 90eb0564ed6e22dffce25da12096fdc06f3cf7d5008a2852a32b8da6ae286496991b81d9b60e13cab298c1a26a57322d9a21ef4e130e213850da820dabbb432a
|
||||
DIST pyproject_fmt-2.24.0.tar.gz.provenance 9841 BLAKE2B 68e52f9f7642d98206a45c582dc60201c7a7cb67fa9c152b1ef1c7dbfe29dfcf4716da98c218605274b2e45cb515662c09a8ab77cd03bd25fae486b029448457 SHA512 ea24c7c0aa8201f681f2dd525798b6ff52886f0eb25cb77ea4a674b89bb5eb221d32741a477a0f6f6370b69b5894bbdfc847b613c1b888d2d802f70944607fcf
|
||||
DIST tombi-0d64bd3bd8a5ddcaafdfc7b114e3b73ada0b325b.gh.tar.gz 10564681 BLAKE2B 1cc4e307d89ae978c8022aed63ad7a7c08e71f810e42743589a6bf44499051250102ca3a60aa2cea65292dfd187240da96f6fb963511b6d4c06559c20bbc67a3 SHA512 e398e14c9b092f2378dfa848c697ea5cb0af705bcb801f288d2ca98b8c0d4aa3abf7a71f2f5a10a4a6a77e1e8d1f7089a0359b2a3ec9b226a19bbb40f0aa0a14
|
||||
DIST tombi-afbc4d39033e872c0739d43b66cb4b5c278ba11c.gh.tar.gz 10400276 BLAKE2B f697615f6538f0b47da592dc217342d915036223ecf0b97e05f6dcef15e8788e4314214dd7b624c1d6b7715df15ef5e6c480a0a9113f2016c58ab2744ec03f32 SHA512 87cfe1cf661c974dfb74382a178eb5d060cadc90eb62dbe8fe6671e3e29ff6cc77f4205be7a7ac0b15ad73be1529c2203a07e9fb383f81c72e07342705769d23
|
||||
DIST tombi-d5056f9743d7e3f194158e125b90d7294aa59ad7.gh.tar.gz 10475854 BLAKE2B 6a629d533e576930e8e988662e3d350137d32ce9b517578f4ee5f20437b75d31300568adf4a4fae2e9fc7a033af1031d4fbcaafa51656a3af2b8a7e03365495e SHA512 74aa91819f15420207850951d0d6b41d61dadf3bdb38406299ae1126bb9ae597a7eb9b69a4485165bf465eb10384b67c73b0e231ce22e1910bc2db448c4eb626
|
||||
DIST tombi-e9213370947e9d7ab6dd98c1cf17533bbbcc797f.gh.tar.gz 10608653 BLAKE2B 7fd8a27bec2e0c5ab357f2c56ca50c848d71e02da3faca9b0650541b35b177ce7b669d294c20add3dac2ba70e5ced46046d5c2de14df81fcee418fccaaa47344 SHA512 a84ca3f676b95d11c121df08382e3bc6ca2e31c0c867ff3027c5564219f637abda34bcc00d563d777280e1b4522354e83b6bb4b0412b067e9ce57272a4e34d15
|
||||
DIST toml-fmt-pyproject-fmt-2.20.0-crates.tar.xz 18775804 BLAKE2B 2b977dce1adc8a43f0a6932dbb821a17a0885f570fbbb0cec6e5bf3ea8177baa6c9c6725a20e3326eeab337f7c521817f41b42225b18029baaa8d9eb2f31706c SHA512 495f714fcded00a9ad8da1deed04ed871c1ddca977c9ba0d28fc2a69a4ed693e0f2d2c0fb976417f98e2a52420d59543fbf7a0cc50599588b725f9f56c6285ef
|
||||
DIST toml-fmt-pyproject-fmt-2.21.1-crates.tar.xz 18661404 BLAKE2B cb19d8ebbb7d4fb43494a89a910bc844862bbbc6f677dff27fceca27a74cc573d42f009cf2e0d979f286b7efe80bb72e88072b20da3afdc98b023b6740ccdba6 SHA512 1699771da1ee01a593d963b8d945038c8d2abdadaf40203a56504ec6a9dfbca896b1aa77a63c98ed77bed779fe3dfe365fab219eced7c3b7b222876be0a68170
|
||||
DIST toml-fmt-pyproject-fmt-2.21.2-crates.tar.xz 18776904 BLAKE2B ae748ae98a2769a78b34a2051e3237c40bc6714d88c58a22aec5af85caa86e4690e9749ddd1f87d2ebe0908a1a3f24a01a48e4abcf107fcdbd5d8322a0738c6a SHA512 474d707babc9a3f98a933ae645ffb951062491158c6863ff9dea7fee065b19f440501e092fbc28e62e4e67dce435689096a27b96c6acde3b8128b76b5890ca3e
|
||||
DIST toml-fmt-pyproject-fmt-2.24.0-crates.tar.xz 18713448 BLAKE2B 6b5c71bc419891391ec4f375a29821ff8b2039222ace04da609d155b9260a187520ff70c3b71a7d804f628041e41df20d5b69c0e2cea9cc415404535407363dc SHA512 7a3726f24f7a4e00e892c24f1ee94e763f7faa212ed908c2b13ba70b5ae67cab3b269fcffc0c0755a13cdc6a290e281a274b5746fec0620cc6c980d0f3ddb7a5
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
DISTUTILS_UPSTREAM_PEP517=standalone
|
||||
PYPI_VERIFY_REPO=https://github.com/tox-dev/toml-fmt
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
RUST_MIN_VER="1.87.0"
|
||||
CRATES="
|
||||
"
|
||||
|
||||
declare -A GIT_CRATES=(
|
||||
[tombi-accessor]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-accessor'
|
||||
[tombi-ast-editor]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-ast-editor'
|
||||
[tombi-ast]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-ast'
|
||||
[tombi-cache]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-cache'
|
||||
[tombi-comment-directive-serde]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-comment-directive-serde'
|
||||
[tombi-comment-directive-store]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-comment-directive-store'
|
||||
[tombi-comment-directive]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-comment-directive'
|
||||
[tombi-config]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-config'
|
||||
[tombi-date-time]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-date-time'
|
||||
[tombi-diagnostic]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-diagnostic'
|
||||
[tombi-document-tree]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-document-tree'
|
||||
[tombi-document]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-document'
|
||||
[tombi-formatter]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-formatter'
|
||||
[tombi-future]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-future'
|
||||
[tombi-hashmap]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-hashmap'
|
||||
[tombi-json-lexer]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-json-lexer'
|
||||
[tombi-json-syntax]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-json-syntax'
|
||||
[tombi-json-value]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-json-value'
|
||||
[tombi-json]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-json'
|
||||
[tombi-lexer]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-lexer'
|
||||
[tombi-parser]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-parser'
|
||||
[tombi-regex]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-regex'
|
||||
[tombi-rg-tree]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-rg-tree'
|
||||
[tombi-schema-store]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-schema-store'
|
||||
[tombi-severity-level]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-severity-level'
|
||||
[tombi-syntax]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-syntax'
|
||||
[tombi-text]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-text'
|
||||
[tombi-toml-text]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-toml-text'
|
||||
[tombi-toml-version]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-toml-version'
|
||||
[tombi-uri]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-uri'
|
||||
[tombi-validator]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-validator'
|
||||
[tombi-version-sort]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-version-sort'
|
||||
[tombi-x-keyword]='https://github.com/tombi-toml/tombi;e9213370947e9d7ab6dd98c1cf17533bbbcc797f;tombi-%commit%/crates/tombi-x-keyword'
|
||||
)
|
||||
|
||||
inherit cargo distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Format your pyproject.toml file"
|
||||
HOMEPAGE="
|
||||
https://github.com/tox-dev/toml-fmt/
|
||||
https://pypi.org/project/pyproject-fmt/
|
||||
"
|
||||
SRC_URI+="
|
||||
${CARGO_CRATE_URIS}
|
||||
https://github.com/gentoo-crate-dist/toml-fmt/releases/download/pyproject-fmt%2F${PV}/toml-fmt-${P}-crates.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT MPL-2.0
|
||||
Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/toml-fmt-common[${PYTHON_USEDEP}]
|
||||
"
|
||||
# tox is called as a subprocess, to get targets from tox.ini
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/tox
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-mock )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
QA_FLAGS_IGNORED="usr/lib/py.*/site-packages/pyproject_fmt/_lib.*.so"
|
||||
|
||||
src_unpack() {
|
||||
pypi_src_unpack
|
||||
cargo_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
sed -i -e '/strip/d' pyproject.toml || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# something about ANSI codes, no clue
|
||||
pyproject-fmt/tests/test_main.py::test_main[format-absolute-no_check-in_place]
|
||||
pyproject-fmt/tests/test_main.py::test_main[format-cwd-no_check-in_place]
|
||||
)
|
||||
|
||||
epytest pyproject-fmt
|
||||
}
|
||||
|
||||
python_test_all() {
|
||||
# default features cause linking errors because they make pyo3
|
||||
# wrongly assume it's compiling a Python extension
|
||||
# https://github.com/tox-dev/toml-fmt/issues/23
|
||||
cargo_src_test --no-default-features
|
||||
}
|
||||
Reference in New Issue
Block a user