diff options
Diffstat (limited to 'dev-python/pyproject-fmt')
| -rw-r--r-- | dev-python/pyproject-fmt/Manifest | 3 | ||||
| -rw-r--r-- | dev-python/pyproject-fmt/pyproject-fmt-2.21.0.ebuild | 102 |
2 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest index 2c2770596eaf..d4bf5c757975 100644 --- a/dev-python/pyproject-fmt/Manifest +++ b/dev-python/pyproject-fmt/Manifest @@ -63,6 +63,8 @@ DIST pyproject_fmt-2.19.0.tar.gz 144512 BLAKE2B 730772f83fa1bea1b52ffa43cd0e32ca DIST pyproject_fmt-2.19.0.tar.gz.provenance 9567 BLAKE2B c9fb6f1a54fe73283ce2f5534c0eb0edee628f8d218653ca9e2b3bd6cd94c1b9a778b416a215644a94fe51dbf1d8a07bcf6adf1e21a775103461c5d89abe3a3c SHA512 111546995bfc8c963ff61096a2944b1880c5b27a434bc0c4eb7fce5b12516e42faa29f2d04ddcb8e9b13aaf573854bcbdb33ff673ec36a109a1b7d7507744b3d DIST pyproject_fmt-2.20.0.tar.gz 144673 BLAKE2B d2d126c87816b082210b4abc7eaca7482759d02bb07c7b0f31c37a5dc1481b9cf0b04980e4ef4711a94c05060aec8573ab968f5d014218f3b73d61913686731f SHA512 b8b6fe6e2336b203d1f1f7cd76e1ac54d49c4c7bc798160a84d722fde84c2acbfed9472e4e668e729d71a0b5c4342365c2d28d6d693aac1a164caea4f5b7a412 DIST pyproject_fmt-2.20.0.tar.gz.provenance 9797 BLAKE2B 4fe967a8bde8903c260788139105dcba0e0ece5628f1d3037ddf5eadf0ffa5a01f085c4731137f715483a858a38989af2dba201525e9e14c3565cb1471cd9185 SHA512 afa428ea723162b5a5202573d35f99be76c233189a908a9f34ac4ffce2376f7eb27e44ff9bb0d30160f228d59e1e8abbf0a814cc5e6992001a3d83873e7e5d83 +DIST pyproject_fmt-2.21.0.tar.gz 151809 BLAKE2B 4b73e743bc1e325fbecda854b7042ae833948991336a049c5e46807924008c1b355bb20196284cd766b023fc31fd9c65fb70c04f8c9b92d76255471b61ee6504 SHA512 b111c461c2135acb00e41a495f63027caf357bd95a617b51c9a20e275639172032d1868f9e8b9d0d593631e14a52244e6743cf2d1bb4cd5977530e3de006b9b6 +DIST pyproject_fmt-2.21.0.tar.gz.provenance 9570 BLAKE2B fd02d8a86cd2b0191531ff63ca95177473dee9b17ad37f56ba271afca1d50a69b9c150ca29e7e3aa34a7876e0eb9c0727e4bb37468899e2627433daf10be0aa3 SHA512 84ea82bb2109dd4b323e29b35eb2f7b52ef80036ea932621d30ec17379c6a88696466b0302c95fdd37c5d4b62e9254d51377ec4f4b214ea07fbcd981775bd689 DIST quote-1.0.40.crate 31063 BLAKE2B 09036ff3e5ebbd775c466bb936de91d4c070481eb4b98c62a4cddcda57cd7b67d63f979b321f6ec64aabee3f5da6c28e7a3efb83f4647768ba578f1bd0bd0bdb SHA512 45a76e22a2b0bec47e4ba73c3b73cc41d821dfcce9876134c5d8eed514da214aee4ce7612e372c8709f888c0d8b9b7e5442f27adb7a59f3571f0339ed7e2ac99 DIST r-efi-5.2.0.crate 64764 BLAKE2B ee17fae983b2c39137cb75698062a3bf8edb4bc680b04900797730618b54298e2f1d13ceab6b660f7a1799f6fc4113ca15d4320b1b95fc42913e0930f3aa16f8 SHA512 80f89d467b482297ec2c13cb0dc8e310442495483e25c33bb523f1cb66d6ce01fee4a57b36880a4f51c0e9f20eb3f993a5bc0a13224d52693dbc81b97c630158 DIST regex-1.11.1.crate 254170 BLAKE2B 5cf41012fc2ba8a006c0eb4a922cbbf1614bf300be361c9e2d98956a9a5e9b140e37bea09132fab7bfb633d4439158723624bcf45e8c619c4061b399253c1b82 SHA512 d065f6dc405771518260425f39a5eaaf8cab62e78c91ceed3b3994a9a121674d2484cadaaf816bdad89c87a40550d57b66a3d9de6618a7119a658301ce7e67d8 @@ -106,6 +108,7 @@ DIST toml-fmt-pyproject-fmt-2.16.2-crates.tar.xz 18771972 BLAKE2B e71da5e3586cb0 DIST toml-fmt-pyproject-fmt-2.18.1-crates.tar.xz 18776984 BLAKE2B c56f94f4bd9e12141ad878cca8d29a6069c3cacb82b9321817fefd5add5eaa0ff0c850a2fd3961dd7022db5d7494b2efcd07ec55b0c3541c14662ae7a67a24eb SHA512 63abd3e6a3266cf584a18e35348f90168d5d07a6fcbec6de0daa2ff219d0728c72f41b13c0e09b34462629598ed4462bf101c936712ad1f486eb37df23095ff7 DIST toml-fmt-pyproject-fmt-2.19.0-crates.tar.xz 18775804 BLAKE2B 2b977dce1adc8a43f0a6932dbb821a17a0885f570fbbb0cec6e5bf3ea8177baa6c9c6725a20e3326eeab337f7c521817f41b42225b18029baaa8d9eb2f31706c SHA512 495f714fcded00a9ad8da1deed04ed871c1ddca977c9ba0d28fc2a69a4ed693e0f2d2c0fb976417f98e2a52420d59543fbf7a0cc50599588b725f9f56c6285ef DIST toml-fmt-pyproject-fmt-2.20.0-crates.tar.xz 18775804 BLAKE2B 2b977dce1adc8a43f0a6932dbb821a17a0885f570fbbb0cec6e5bf3ea8177baa6c9c6725a20e3326eeab337f7c521817f41b42225b18029baaa8d9eb2f31706c SHA512 495f714fcded00a9ad8da1deed04ed871c1ddca977c9ba0d28fc2a69a4ed693e0f2d2c0fb976417f98e2a52420d59543fbf7a0cc50599588b725f9f56c6285ef +DIST toml-fmt-pyproject-fmt-2.21.0-crates.tar.xz 18777332 BLAKE2B aa707ea2dbb90b121eb57241eec5feb1f60950c8f485cd358798b2ece359bb92449600a354fd25699d17ee6bf96ff90047a882b91f8a52da522aca262ec85b2a SHA512 7857d37f999bf1abc6848455dacbc4c7d06fd1f8382c20e570ce78bbc7799acae92e3e7b9b316f5d456bf69daea997a41d4d08f223d59ae26ba2c2f700037fa9 DIST toml_datetime-0.6.9.crate 12622 BLAKE2B 0362fbee2359fb7388bd679ccf114e554234294437dd3aa26b0e969aadd0e0fb76ad89eb33e0c4a2b50883764f64708fad2e265562feba13688fdd07623e18af SHA512 8409a902d7f6c22a8837cb71fd0e4fbb40b34c1608c3e858f4f5268c34948b94e9f9dae9e6f3ba73c78e3db14754fcec0b22081160acb228ae366aeafaaead9c DIST toml_edit-0.22.26.crate 121714 BLAKE2B c1e39ec75d3d34e038d7a7e3af4d74b1a53010ed2d837a3643f08e459231ec7f15c149910dbc5294187601e342b0ba03fa8129dbc879b326841a32513ed7fdd2 SHA512 8cad3472f790e3423dadb34da76f77fd122721daa1c855a749699ac0af8e39c2453ed47369b14e8603204acb896a966ea98857118003a5d75cc48ca5e28ecff7 DIST tracing-0.1.41.crate 82448 BLAKE2B c056d938e001654e03efaec7a11eb8ecfbdfe9af2099271fcefa43f4f4683b40c59f7111fdf7f27df4da38bcbe94f1b2ac0abb6ec3d6e6a0d165b9fbb14da3a3 SHA512 dffb8d3a1375f1b9d5418550a46cb7b1d92b2cc8ffbccb430a38f7731547960775bb42798074186711847d256eee30fb3e74078b69cb36f28c07d9f231dbf96c diff --git a/dev-python/pyproject-fmt/pyproject-fmt-2.21.0.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-2.21.0.ebuild new file mode 100644 index 000000000000..21a7e77f469a --- /dev/null +++ b/dev-python/pyproject-fmt/pyproject-fmt-2.21.0.ebuild @@ -0,0 +1,102 @@ +# 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 +PYPI_VERIFY_REPO=https://github.com/tox-dev/toml-fmt +PYTHON_COMPAT=( python3_{10..14} ) + +RUST_MIN_VER="1.87.0" +CRATES=" +" + +declare -A GIT_CRATES=( + [tombi-accessor]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-accessor' + [tombi-ast-editor]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-ast-editor' + [tombi-ast]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-ast' + [tombi-cache]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-cache' + [tombi-comment-directive-serde]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-comment-directive-serde' + [tombi-comment-directive-store]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-comment-directive-store' + [tombi-comment-directive]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-comment-directive' + [tombi-config]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-config' + [tombi-date-time]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-date-time' + [tombi-diagnostic]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-diagnostic' + [tombi-document-tree]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-document-tree' + [tombi-document]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-document' + [tombi-formatter]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-formatter' + [tombi-future]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-future' + [tombi-hashmap]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-hashmap' + [tombi-json-lexer]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-json-lexer' + [tombi-json-syntax]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-json-syntax' + [tombi-json-value]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-json-value' + [tombi-json]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-json' + [tombi-lexer]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-lexer' + [tombi-parser]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-parser' + [tombi-regex]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-regex' + [tombi-rg-tree]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-rg-tree' + [tombi-schema-store]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-schema-store' + [tombi-severity-level]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-severity-level' + [tombi-syntax]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-syntax' + [tombi-text]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-text' + [tombi-toml-text]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-toml-text' + [tombi-toml-version]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-toml-version' + [tombi-uri]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-uri' + [tombi-validator]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-validator' + [tombi-version-sort]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;tombi-%commit%/crates/tombi-version-sort' + [tombi-x-keyword]='https://github.com/tombi-toml/tombi;afbc4d39033e872c0739d43b66cb4b5c278ba11c;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_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 +} |
