diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-10-09 04:27:30 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-10-09 04:42:33 +0200 |
| commit | 1f088eb422949aa7d4bbcdbcd1e41495b87e30ec (patch) | |
| tree | bf98fecb38bebcb162df638f900eea2f0e4d5687 /dev-python | |
| parent | 3f3e6ce11a694fa2e5c2d6aea8a4f223ae3cc40a (diff) | |
| download | gentoo-1f088eb422949aa7d4bbcdbcd1e41495b87e30ec.tar.gz gentoo-1f088eb422949aa7d4bbcdbcd1e41495b87e30ec.tar.bz2 gentoo-1f088eb422949aa7d4bbcdbcd1e41495b87e30ec.zip | |
dev-python/pyproject-fmt: Bump to 2.9.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pyproject-fmt/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyproject-fmt/pyproject-fmt-2.9.0.ebuild | 150 |
2 files changed, 151 insertions, 0 deletions
diff --git a/dev-python/pyproject-fmt/Manifest b/dev-python/pyproject-fmt/Manifest index ea03f9a0a53c..af2c2b488f0f 100644 --- a/dev-python/pyproject-fmt/Manifest +++ b/dev-python/pyproject-fmt/Manifest @@ -70,6 +70,7 @@ DIST pyo3-macros-backend-0.25.0.crate 75089 BLAKE2B ea4d87e16616782c60f46f97d87a DIST pyo3-macros-backend-0.26.0.crate 81809 BLAKE2B 73885035855daf00b001e97e0a5ebe09412d212c8f01aa4db6638ef09990bf1bccbacf2e5a7e6ec21929bb1c2beba06587ecdb6ee954eda9e9c51c6c276cea95 SHA512 4146011a8ef18ecaa44b425eebe6e5e1370945063b98aaa83452e57b66aefbf5d483367b1d4d44aa5091303c4ba7f568c6428ecec0cfa6c90ba41631d4e99367 DIST pyproject_fmt-2.6.0.tar.gz 43484 BLAKE2B 06091446129ef75ad4b41249d4ef9f89965007dfd48bfbdad581fe295021fef06297fc4944f413f353aabf290fb695d09e2878a340129f853c2594a21865f40c SHA512 cfd8a1dcf149895adeced72dcd7036b6f18498f05f55c8148234c95f52868276e4cf1fa1453353ecc311c478321903a577f6056b756b469f52210d9ba3016bfc DIST pyproject_fmt-2.7.0.tar.gz 45559 BLAKE2B 9d7defa66c7bbb0399476cf3303e0bfd3cfcfb312c8a11d50cbfd6ab0eff2163b2e35fec2eb9467a729a218386526f5b1e307fc7e9d306c33dd9f35939a5fd06 SHA512 3fa88282b4ef28031d2f1b6c2891bb84cc6a1631875938b6a0268a8cd13e37cf04379e2ac29182ae86afdb86d3eb2d81c3da7fe1d23a1fe8ec278a1f16eb5cd9 +DIST pyproject_fmt-2.9.0.tar.gz 45704 BLAKE2B 80ba12a6fc90ad9baffe00f7b0ad3380a520bd9db54c0192021be9d92c65f1fdedb73ae5f2f18835bd7f5fe4120ba7504cf3fbeb8f0795236adc378399e89b06 SHA512 a55b869589d127c488469408cb0e8837d7ecf7e9b73f39d22953a050828cdaa1ce66d61088dd7148168ddb989150a0b560f7a622ca6ee78b29c2e00d1483e535 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 diff --git a/dev-python/pyproject-fmt/pyproject-fmt-2.9.0.ebuild b/dev-python/pyproject-fmt/pyproject-fmt-2.9.0.ebuild new file mode 100644 index 000000000000..eff5f5db8030 --- /dev/null +++ b/dev-python/pyproject-fmt/pyproject-fmt-2.9.0.ebuild @@ -0,0 +1,150 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{11..14} ) + +RUST_MIN_VER="1.77.0" +CRATES=" + ahash@0.8.12 + aho-corasick@1.1.3 + any_ascii@0.1.7 + arc-swap@1.7.1 + autocfg@1.4.0 + beef@0.5.2 + bitflags@2.9.1 + bstr@1.12.0 + cfg-if@1.0.0 + countme@3.0.1 + deranged@0.4.0 + either@1.15.0 + equivalent@1.0.2 + fnv@1.0.7 + futures-core@0.3.31 + futures-macro@0.3.31 + futures-task@0.3.31 + futures-timer@3.0.3 + futures-util@0.3.31 + getrandom@0.3.3 + glob@0.3.2 + globset@0.4.16 + hashbrown@0.14.5 + hashbrown@0.15.3 + heck@0.5.0 + indexmap@2.9.0 + indoc@2.0.6 + itertools@0.10.5 + itoa@1.0.15 + lexical-sort@0.3.1 + libc@0.2.172 + log@0.4.27 + logos-derive@0.12.1 + logos@0.12.1 + memchr@2.7.4 + memoffset@0.9.1 + num-conv@0.1.0 + once_cell@1.21.3 + pin-project-lite@0.2.16 + pin-utils@0.1.0 + portable-atomic@1.11.0 + powerfmt@0.2.0 + proc-macro-crate@3.3.0 + proc-macro2@1.0.95 + pyo3-build-config@0.26.0 + pyo3-ffi@0.26.0 + pyo3-macros-backend@0.26.0 + pyo3-macros@0.26.0 + pyo3@0.26.0 + quote@1.0.40 + r-efi@5.2.0 + regex-automata@0.4.9 + regex-syntax@0.6.29 + regex-syntax@0.8.5 + regex@1.11.1 + relative-path@1.9.3 + rowan@0.15.16 + rstest@0.26.1 + rstest_macros@0.26.1 + rustc-hash@1.1.0 + rustc_version@0.4.1 + ryu@1.0.20 + semver@1.0.26 + serde@1.0.219 + serde_derive@1.0.219 + serde_json@1.0.140 + slab@0.4.9 + syn@1.0.109 + syn@2.0.101 + taplo@0.14.0 + target-lexicon@0.13.2 + text-size@1.1.1 + thiserror-impl@1.0.69 + thiserror@1.0.69 + time-core@0.1.4 + time-macros@0.2.22 + time@0.3.41 + toml_datetime@0.6.9 + toml_edit@0.22.26 + tracing-attributes@0.1.28 + tracing-core@0.1.33 + tracing@0.1.41 + unicode-ident@1.0.18 + unindent@0.2.4 + version_check@0.9.5 + wasi@0.14.2+wasi-0.2.4 + winnow@0.7.10 + wit-bindgen-rt@0.39.0 + zerocopy-derive@0.8.25 + zerocopy@0.8.25 +" + +inherit cargo distutils-r1 pypi + +DESCRIPTION="Format your pyproject.toml file" +HOMEPAGE=" + https://github.com/tox-dev/pyproject-fmt/ + https://pypi.org/project/pyproject-fmt/ +" +SRC_URI+=" + ${CARGO_CRATE_URIS} +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" + Apache-2.0-with-LLVM-exceptions ISC MIT Unicode-3.0 + || ( Apache-2.0 Boost-1.0 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + ~dev-python/toml-fmt-common-1.0.1[${PYTHON_USEDEP}] +" +# tox is called as a subprocess, to get targets from tox.ini +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + 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_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 +} |
