commit: d70395a810d48415aa1472d282e911e84bae3fb8 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Mar 4 03:26:01 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Mar 4 03:42:56 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d70395a8
dev-python/pyproject-fmt: Bump to 2.18.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pyproject-fmt/Manifest | 3 + .../pyproject-fmt/pyproject-fmt-2.18.1.ebuild | 101 +++++++++++++++++++++ 2 files changed, 104 insertions(+) diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest index 1bf01d6a8878..6a4d884261a2 100644 --- a/dev-python/pyproject-fmt/Manifest +++ b/dev-python/pyproject-fmt/Manifest @@ -63,6 +63,8 @@ DIST pyproject_fmt-2.16.2.tar.gz 139582 BLAKE2B caa5ad60008574ebb910b8c0f4e5923c DIST pyproject_fmt-2.16.2.tar.gz.provenance 9789 BLAKE2B ee1f2122553f90bd9ba59ede9d2602118e4e92d3c6dddbdfa709f45bf1367f132be9098434358f28d3d4f4f5b4923f924bedae85bec567d58eac3bbb9fb4db28 SHA512 038e1a23dd6df293d938baba758744dc88c4694991cffe9484692a0601572250c3ada159bd544d167661a79e3efc994817ebcd2a0fb54f1de5eeffb9b02480a1 DIST pyproject_fmt-2.17.0.tar.gz 142314 BLAKE2B 2825f4ab78c9e67ecf249285651cec5cd4aaa18bde38d6f1ae2781f6801f0892a40de027448fc2b55f96e54b287f722904e7e1e2bde65fd69d38bceb057a050f SHA512 56d5532e59e8a183f21cd2de03d6d365b1af4d8155bfc7bcd543bb78d8c0105fc44cc286938a208272ee8893d93ba906f9cc3d75f1f5e718078862b4cb2959cc DIST pyproject_fmt-2.17.0.tar.gz.provenance 9524 BLAKE2B 1f51ba29fcb5b8fe59e6bfd8fedad5a4e52ba8fa280ac7ebcd137ebd47c860a572f23b87b25d9da6e87e3f89a4e798e5e053f11172223e16956ed89b697270ba SHA512 58abd305308a8ebce90dde903516b01638259096c42e5c9719c267446990becec016a77d76cc2b71753536c4da1565dbd6a3c7dc3e0e58268f5a62104394ad8b +DIST pyproject_fmt-2.18.1.tar.gz 144273 BLAKE2B 0ff9b93e1656e81a40eb6ba30611aa739afa8e6d588ba272d62973372d853214cc8fa9620d6e216030f1840d7a23610ea601d74cf055164c67ae792630656b48 SHA512 fcb313ecdc3fd201822320b5d041d0cd906c0a165705cc64097ce5610aae1fdd2fb52dca42fb377df32f352b2bbb70ad74cccd23e92ed243c951aabd86cce621 +DIST pyproject_fmt-2.18.1.tar.gz.provenance 9759 BLAKE2B d7305322100ac499084b59ad63fec53bdffbf284de1bccbe3a6642436c57d4336106276cfbe2a07cb37578dbd7a4a0af43747b2ac7a700a52a50958e1dd618b2 SHA512 89ed48e1433c8c0232a8651539cffeac2e1b4f0e9054bc6f05cbca3f3824322cc5146a1b738f1cb3fa7cc1a4e4abfb6f426436672d4bee2f6afc8d29c529453f 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.0-crates.tar.xz 18679884 BLAKE2B 737736f64dae80 DIST toml-fmt-pyproject-fmt-2.16.1-crates.tar.xz 18688740 BLAKE2B a6ff8d9468778de9bdccc48149c48c71c29e3905e73be923e065594f5569ac1303eb883ed225e967c8757a5883318934aec8b15a8f4790bd83727b2d30cb00d4 SHA512 452d401737a78ce1286b179d2b6126ae096017139b2ed18e9661edad8ac232c983ae9417f371e116581552edd61c8c1f5d16e31b6d08fc097ade9eddfb9cc51c DIST toml-fmt-pyproject-fmt-2.16.2-crates.tar.xz 18771972 BLAKE2B e71da5e3586cb0dec8e9d3c106c287a6b84aa0dd585fe7f22e503490df660b5e0be18f4c269075a04274983bd0c13d52c9902092bb0c7a9a8316c9aa5a786f89 SHA512 6ab3f9259b3ec2a92ddd614640a1801bec08bfdff9e3b3ef8a5b52d7de39a7a132ff559f2eaa223b05a1c3971ef25c995043e60fde51e2af5708fe23fe988654 DIST toml-fmt-pyproject-fmt-2.17.0-crates.tar.xz 18776984 BLAKE2B c56f94f4bd9e12141ad878cca8d29a6069c3cacb82b9321817fefd5add5eaa0ff0c850a2fd3961dd7022db5d7494b2efcd07ec55b0c3541c14662ae7a67a24eb SHA512 63abd3e6a3266cf584a18e35348f90168d5d07a6fcbec6de0daa2ff219d0728c72f41b13c0e09b34462629598ed4462bf101c936712ad1f486eb37df23095ff7 +DIST toml-fmt-pyproject-fmt-2.18.1-crates.tar.xz 18776984 BLAKE2B c56f94f4bd9e12141ad878cca8d29a6069c3cacb82b9321817fefd5add5eaa0ff0c850a2fd3961dd7022db5d7494b2efcd07ec55b0c3541c14662ae7a67a24eb SHA512 63abd3e6a3266cf584a18e35348f90168d5d07a6fcbec6de0daa2ff219d0728c72f41b13c0e09b34462629598ed4462bf101c936712ad1f486eb37df23095ff7 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.18.1.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-2.18.1.ebuild new file mode 100644 index 000000000000..78a77fce445e --- /dev/null +++ b/dev-python/pyproject-fmt/pyproject-fmt-2.18.1.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;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-accessor' + [tombi-ast-editor]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-ast-editor' + [tombi-ast]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-ast' + [tombi-cache]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-cache' + [tombi-comment-directive-serde]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-comment-directive-serde' + [tombi-comment-directive-store]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-comment-directive-store' + [tombi-comment-directive]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-comment-directive' + [tombi-config]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-config' + [tombi-date-time]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-date-time' + [tombi-diagnostic]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-diagnostic' + [tombi-document-tree]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-document-tree' + [tombi-document]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-document' + [tombi-formatter]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-formatter' + [tombi-future]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-future' + [tombi-json-lexer]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-json-lexer' + [tombi-json-syntax]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-json-syntax' + [tombi-json-value]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-json-value' + [tombi-json]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-json' + [tombi-lexer]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-lexer' + [tombi-parser]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-parser' + [tombi-regex]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-regex' + [tombi-rg-tree]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-rg-tree' + [tombi-schema-store]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-schema-store' + [tombi-severity-level]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-severity-level' + [tombi-syntax]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-syntax' + [tombi-text]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-text' + [tombi-toml-text]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-toml-text' + [tombi-toml-version]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-toml-version' + [tombi-uri]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-uri' + [tombi-validator]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-validator' + [tombi-version-sort]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;tombi-%commit%/crates/tombi-version-sort' + [tombi-x-keyword]='https://github.com/tombi-toml/tombi;a46abd1e69cc36bba19f01cedf52eb7009ac83d7;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 +}
