commit: e80d6d9f352e7fc1745164bbd3e04aa5d1c4e34e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Oct 30 06:09:02 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Oct 30 06:44:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e80d6d9f
dev-python/dulwich: Bump to 0.24.8 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/dulwich/Manifest | 3 + dev-python/dulwich/dulwich-0.24.8.ebuild | 123 +++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest index b3211b672c1b..8baa01d4744d 100644 --- a/dev-python/dulwich/Manifest +++ b/dev-python/dulwich/Manifest @@ -6,6 +6,8 @@ DIST dulwich-0.24.6.tar.gz 946625 BLAKE2B 76522ea32796b8db0fc1873f7ad555de79b11d DIST dulwich-0.24.6.tar.gz.provenance 9391 BLAKE2B 9168157d0059a622c603d46d0768379ceb709e580789ce5c83e73d8596a7174138f5efcb32da01288211225f3310088d88a8456b2a628cbc0f67df02141a8f50 SHA512 4d9a5cd1d2f07e21cb298d8d9adc461c4ffe7ba1057f70c5ff1894e99ee986b0923e95560dc532080741f4991d6efa30579edf5b5664b7045e48afd97e5427b9 DIST dulwich-0.24.7.tar.gz 968411 BLAKE2B 4565335f4d1f7bb9dcd05c079b261f3881c86542d57810722bc6d225e8145f5e61b77f3f3fd0722a68ae00994b8ad8cf7b13f03c26d8a0cdd4ac5cab599673bd SHA512 1d060f75aaa08c491008b7e198691f296c643eea829c2a2f14800b5725472b659d271aed042954281e259d369f6c76cd067a6f461a9ce821669789f8e45167df DIST dulwich-0.24.7.tar.gz.provenance 9720 BLAKE2B 4b5d683bfd30387ba2b0d0ad8e597ed817d4e062457f7df5dd20c60f9e03da6538b1603b74848163425c00ad448af0ff253e2fabdeeea23f08757125bf4f55d3 SHA512 035b860fbdd7f3c43be6c61dab3a196f2cabfff3b368c40cb70d671ca66b1d7547e4040a20d9fff4a132395d72849a1a9e6d34f97897de776b7311045dccd5af +DIST dulwich-0.24.8.tar.gz 998526 BLAKE2B ee5ee83ed26aa6e561ba86de0dd97c8d6a2ddbd3eaf2f659c17e7faddef8377411c81338f8d7690446cafda20048f5847b96c5bc37881cfbd7ba8c5a0a759b5b SHA512 818af9224d05c58ab5faf8d1dee5834c1fdbd9c7b3e9244728d78b24349cc218eabbb55381ef4e05e70737c03c87f1eb502abd20c46547e0356ec62475812e68 +DIST dulwich-0.24.8.tar.gz.provenance 9771 BLAKE2B aaf178067787591a823ff17c3c86082c8d1e39620325500840cbd4227856c14021dbb0dceef1c075b86913b547b88e144ebedbe0156f5222e997ca1b4b490cac SHA512 1e0b02c544d35ca4548987ea9a24bcdbd7e88e9dbd2d685d9446bba21fb52007ada0bf09ee88663157901e1791de3e78546e18b6dba5ba317381aaea2031afbf DIST heck-0.5.0.crate 11517 BLAKE2B 5365ec43b2239a76b33a174f1a4292ece4147f9d382a68c6c60db78fdc8bad0afb1d51a65bcb25e96675372faa4ea37c318265030b0546ba51942f7c929e1835 SHA512 f044fc9c3d22466629fd8f772ec0555350fd611c0cfadca51d99a3d2f10e155f77c1091916c8a95a6b9b499f366c2e99a5fbf45b010f988bfb9b2501bf9f6a76 DIST indoc-2.0.6.crate 17164 BLAKE2B 1a6cff95bc12ea885ef36b935bf4f1c7870d65be0ff31ffc67dcab904fa80215c1254c1803c5d0c5686252addfad3512e9e1ec79d3edcba026a879f4706926d1 SHA512 e2ea2e5c8226c802bbe0631c1a99d2edd088cbafbf978b2a7b71c7c7f47754c6d4653f466e286441b61cc46def1c7f7a02d4785caab93a61dd785211dba7d1a9 DIST libc-0.2.174.crate 779933 BLAKE2B 20ffcbbcad6961e732521940f0595039dc0576d85b2d3b2ad3f1decd37571132a4cd7505b2e108078a4379fc4cec46290b5633bcbcc6e7009c3b474c1a852628 SHA512 243f2ffd5741ef859e4dc5b7ee0396071943b1d10429efcaecb322957e256c4be88a7a649029dfd47e6456acc73ee257893fb6c4e8b4d0fe66a12bc5d1c13c73 @@ -34,6 +36,7 @@ DIST pyo3-macros-backend-0.26.0.crate 81809 BLAKE2B 73885035855daf00b001e97e0a5e DIST pyo3-macros-backend-0.27.0.crate 82461 BLAKE2B 5edd562cfc43197328621b7d6167fd0135f45047eb82f02c774fdadcb896fa8be6ed5725311994d4c6f6b8f75e3724a6b0aee6eb56b98fe9c4c0ff29c56fc879 SHA512 ad895e12e3891ec36bb755b3cf8530a2fe12597715a8e32aba8873823d455d852c31d9eb9d573c9099d8a8278b20f50b68fc5be6b4613f788184ccb45e40f9a4 DIST quote-1.0.40.crate 31063 BLAKE2B 09036ff3e5ebbd775c466bb936de91d4c070481eb4b98c62a4cddcda57cd7b67d63f979b321f6ec64aabee3f5da6c28e7a3efb83f4647768ba578f1bd0bd0bdb SHA512 45a76e22a2b0bec47e4ba73c3b73cc41d821dfcce9876134c5d8eed514da214aee4ce7612e372c8709f888c0d8b9b7e5442f27adb7a59f3571f0339ed7e2ac99 DIST quote-1.0.41.crate 31408 BLAKE2B 9d496e0878fc329ac9492ecbd470e762bd807ec8ca4e17a856b4d1c776351434778f519977137a67b8c143ee60b20774c09768d480cff51b22f2cfcb364a20d9 SHA512 64374d70eb29f7d7e02e535ba383586d93f68a9b6464c79840fa6c42a1ac47be7ba14e415a40e158f845e486ed33d5c564c882913780d296360b30a56301ff7e +DIST similar-2.7.0.crate 53928 BLAKE2B 41d6aec64403069dcf81a9a00b9db041967b89d09cf9f2371444928f32bbc2a8c6066adb93eaf25c72a257fab87e24c160265d687c4e33848728a4ddd374012a SHA512 4a2559d2e47e7747eb2bde0f02a0e652ff0e116d1d3c3756dd86fd48f114e2b42157b860165e5cc29c2123cf19c64ebd17f023aaa05950de03ab5752562206b3 DIST syn-2.0.104.crate 299699 BLAKE2B f64d2267abe9140456dd31d52ada0c75bfa3e4e0112ca77491245e9e84a0530f6c7cdc7428b73cf567a65ef6e7727f814fb9cb34db0ecc9cc3afd05b69fd36f7 SHA512 da532fa362266161b5604c821c913f8f990eb32c18e18c0a360b7147b9f71ae008e208f377cb203e85818bd5db926951122a971fa97563a10678f0ba4671e64f DIST syn-2.0.106.crate 301514 BLAKE2B 6b28b30ee067c23dc4bd1b38365d14c1700245c974e785173965b0822301966d642b36bdda25210d61f17a99fc71eb81e29a56c89d1649773908bae32778fb1f SHA512 e07e1058770fa3f1039eaf335340cefb597c0dd11bb90fec9fa777ca5815d0e0bb1711bb4db52cac77e205dd68fbe2bce0e1aa9895c2a52a1ea6d7758d13424c DIST syn-2.0.107.crate 301716 BLAKE2B 76ae71e40724b7ab0912df8c5d9ff571a21b6da1ed8f849395ca8565535c245894bbb1927952fa2c81891ce08d5e19336138f80c6374ca4a46c8bc8ed1ff53c7 SHA512 6c65589ad86a01307defcbfcb62d95b342135ad22636b899195784e56d476fe5eb5c7f2b54f827166e573f0a4af0ca834f4a107700417fd68edce7e423467f4a diff --git a/dev-python/dulwich/dulwich-0.24.8.ebuild b/dev-python/dulwich/dulwich-0.24.8.ebuild new file mode 100644 index 000000000000..e7d3c48a53a8 --- /dev/null +++ b/dev-python/dulwich/dulwich-0.24.8.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=1 +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/jelmer/dulwich +PYTHON_COMPAT=( python3_{11..14} ) + +CRATES=" + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] + [email protected] +" + +inherit cargo distutils-r1 pypi + +DESCRIPTION="Pure-Python implementation of the Git file formats and protocols" +HOMEPAGE=" + https://github.com/jelmer/dulwich/ + https://pypi.org/project/dulwich/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="GPL-2+ Apache-2.0" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0" +LICENSE+=" )" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc examples +native-extensions test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/urllib3-2.2.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.0[${PYTHON_USEDEP}] + ' 3.11) +" +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-python/setuptools-rust[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + dev-python/fastimport[${PYTHON_USEDEP}] + dev-python/gpgmepy[${PYTHON_USEDEP}] + dev-python/merge3[${PYTHON_USEDEP}] + dev-python/paramiko[${PYTHON_USEDEP},server(+)] + ) +" + +distutils_enable_sphinx docs + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/dulwich/_.*.so" + +pkg_setup() { + # avoid rust_pkg_setup which will die when there's no Rust found + if use native-extensions ; then + rust_pkg_setup # implicitly inherited through cargo + fi +} + +src_unpack() { + pypi_src_unpack + cargo_src_unpack +} + +python_compile() { + # make extension build errors fatal + local -x CIBUILDWHEEL=1 + unset PURE + if ! use native-extensions; then + local -x PURE=1 + fi + + distutils-r1_python_compile +} + +python_test() { + # remove interference from the tests that do stuff like user.name + unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE + unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE + unset EMAIL + # Do not use make check which rebuilds the extension and uses -Werror, + # causing unexpected failures. + "${EPYTHON}" -m unittest -v tests.test_suite || + die "tests failed with ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +}
