commit: a1bf105dffeb20b4cb59126d28c2305c9b0841c7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Feb 13 04:19:54 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Feb 13 04:43:40 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1bf105d
dev-python/pyproject-fmt: Bump to 2.16.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pyproject-fmt/Manifest | 3 + .../pyproject-fmt/pyproject-fmt-2.16.0.ebuild | 101 +++++++++++++++++++++ 2 files changed, 104 insertions(+) diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest index 9c9bdacd4883..b90cf4069bb0 100644 --- a/dev-python/pyproject-fmt/Manifest +++ b/dev-python/pyproject-fmt/Manifest @@ -55,6 +55,8 @@ DIST pyproject_fmt-2.12.1.tar.gz 83062 BLAKE2B 4011b76e449c833653d7e366c5bd9c95b DIST pyproject_fmt-2.14.1.tar.gz 118476 BLAKE2B 4d1045f4744fac803bb3c72efe51ec6ed36d0f67ad3115a0e28c17e59d6525c75c0010b4728269f7e6c01307c4fcc9f3d014ff5c12786c41f5e6c1c1999e348e SHA512 0a58e5bdafb161fcf19b179a60829e032c8ee94a4461571dd5daff8a0a2e1e3c2bac6ab78388e2d5f666b52793b2055ae84fb0d8f57bbae44bb0d6573683f499 DIST pyproject_fmt-2.15.3.tar.gz 130178 BLAKE2B d4436dfa377a414b4ef61e9894d49a3fd50eda219d21e1b0aa769c0f6e2d6bf0a7de5b4cc7b370c429c6654ff9025abb21d3a6e2d2ffa9c75442f6e60115f37e SHA512 f39ef98888a489738a75a740811e5874d91689bbf2cc20d8d69031afe73e1105f57b2d9d146748cb72dcafb68942f6a6920c17241032084243ac5425db784339 DIST pyproject_fmt-2.15.3.tar.gz.provenance 9605 BLAKE2B 6fabf8beb107b5491bab47ca5dda2d6662071620960dc8cfced75d9bffde8a71dd1ac21036ac4f2b490a6a37ad74084e31163a156bf980b9ad8512934d5e7f2b SHA512 0d4cd504f7fd5f72c6591afdf3cf53d84cced4f8d2369e9fa7c7297e06b98602a8ca7ad2fe83b8103cce95e8b5aa7d4c2ca215ffd985b78c28db93632cabac69 +DIST pyproject_fmt-2.16.0.tar.gz 138399 BLAKE2B 0d2207c0806d86cd9c1d5a7b1956b2727ea6f7605ce8ed724272c6fefc4297ffa57fef7d8a5c99096dee3a718b87304c087247a930814d19265d732b5ec66e12 SHA512 c80ff4f406d7de958b3368c21b5cffd0a0f2bf3c4cc3c265950dd0d3fa272da4c97c8613836a5a8d0165781be22897f485964a3c2d3f8c707fca24758e3fb9b0 +DIST pyproject_fmt-2.16.0.tar.gz.provenance 9648 BLAKE2B 37348ac2609d5f031426f15ec9d67e7b627b3c1861a1c390b0ea6e3aa2f16a8291e57fa29ff9c51380dab7ec913c7ae1741e9cc258a8bd70b30bbd9f228ac0f0 SHA512 fd3d2870a390196ce66a9709e9a8b877b4fab37dc56bf145ca3015366d64a6e24b0a7442901fff142828a26c1cc1a3eba23aa3ad3989ed0ff573185cd54f9026 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 @@ -91,6 +93,7 @@ DIST tombi-73d0800f0cf60e04fea74992d7abb6fcac435749.gh.tar.gz 10358630 BLAKE2B b DIST tombi-749df5d762ec02cc6d960f37dbaeaf060ebaf1d5.gh.tar.gz 10358474 BLAKE2B 8be3c90eafd12905f2104ca937e239b30f0c8e3c5cd124e401412c70755daea06f09d7e794f4d6910c6065fdc37c4ab5c3500e3594a9fc747669ace95f8f3a81 SHA512 5b8be960e387af08af4d381958dce6e71319f8022093c2279281e5449e5737d0c6843c1a5b7568076d4f72d86bc06021a5cc8b221af90adc95100c96388eda05 DIST toml-fmt-pyproject-fmt-2.14.1-crates.tar.xz 17945184 BLAKE2B 8e8e9b9713aaac87efcc128f194217c0f662e947d6011d675fe789594ca689ed947f71999a1f2e59ae7afb59cdbb76be1bb96a2a1f54c8a917115ef0a1ef088b SHA512 7d4eec57f8f1733bdbb86fa75ef198a45f9c56e93feff96c3e12c7747f637ffacd55a71f999ec3b34a48ee08e8772e5f858d56bd243b8a003861d504f2edcb8b DIST toml-fmt-pyproject-fmt-2.15.3-crates.tar.xz 18703880 BLAKE2B 49ba7c43f6585b05248632fd96db4db96960930c2190f16008bb2a2490ea334f345623ebb29d9f827bbc41400239652d4e37092e494eb01a8f989c4b183ca0ae SHA512 77ba1a5cdefaadf643601867b5ed4be7c0879831fba67cf579d71d68ec71cbc3c765ae4e0103b93f5170c69f0fdc4e7c6f166e2fe53a38bff70d4f899b817263 +DIST toml-fmt-pyproject-fmt-2.16.0-crates.tar.xz 18679884 BLAKE2B 737736f64dae80d5fc04307d1556b9570fae25bf5053934963ab69355e1c0ad754295b767a5c64ca4367287e8154bfbecbafc09d77eaa62adca936b5d5d6e9e1 SHA512 a03014d241bf262455ba9f1e0517caf69c587b079c2647f667204879cc69ea05c4409ae1be38ff89b9033a43d22963c69fcecb6e6b0c5cf85c6004c4bb6c438b 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.16.0.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-2.16.0.ebuild new file mode 100644 index 000000000000..d0c0f06b4fa1 --- /dev/null +++ b/dev-python/pyproject-fmt/pyproject-fmt-2.16.0.ebuild @@ -0,0 +1,101 @@ +# 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_{11..14} ) + +RUST_MIN_VER="1.87.0" +CRATES=" +" + +declare -A GIT_CRATES=( + [tombi-accessor]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-accessor' + [tombi-ast-editor]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-ast-editor' + [tombi-ast]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-ast' + [tombi-cache]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-cache' + [tombi-comment-directive-serde]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-comment-directive-serde' + [tombi-comment-directive-store]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-comment-directive-store' + [tombi-comment-directive]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-comment-directive' + [tombi-config]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-config' + [tombi-date-time]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-date-time' + [tombi-diagnostic]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-diagnostic' + [tombi-document-tree]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-document-tree' + [tombi-document]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-document' + [tombi-formatter]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-formatter' + [tombi-future]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-future' + [tombi-json-lexer]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-json-lexer' + [tombi-json-syntax]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-json-syntax' + [tombi-json-value]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-json-value' + [tombi-json]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-json' + [tombi-lexer]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-lexer' + [tombi-parser]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-parser' + [tombi-regex]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-regex' + [tombi-rg-tree]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-rg-tree' + [tombi-schema-store]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-schema-store' + [tombi-severity-level]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-severity-level' + [tombi-syntax]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-syntax' + [tombi-text]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-text' + [tombi-toml-text]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-toml-text' + [tombi-toml-version]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-toml-version' + [tombi-uri]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-uri' + [tombi-validator]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-validator' + [tombi-version-sort]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;tombi-%commit%/crates/tombi-version-sort' + [tombi-x-keyword]='https://github.com/tombi-toml/tombi;749df5d762ec02cc6d960f37dbaeaf060ebaf1d5;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-1.2.0[${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 +}
