commit:     56ee1280ef7f185e73c0532dff92639a73fd8d64
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 15 06:24:51 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 15 07:04:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56ee1280

dev-python/dulwich: Bump to 0.24.4

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/dulwich/Manifest              |   2 +
 dev-python/dulwich/dulwich-0.24.4.ebuild | 121 +++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+)

diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest
index 19daad9152a9..0cc08d507eb2 100644
--- a/dev-python/dulwich/Manifest
+++ b/dev-python/dulwich/Manifest
@@ -3,6 +3,8 @@ DIST dulwich-0.23.2.tar.gz 704361 BLAKE2B 
2ba377c86a96069efa93f0e227297ba679bf04
 DIST dulwich-0.24.1.tar.gz 806136 BLAKE2B 
fc8f8534c8df24cdd3c2ec6b8ce0a8c85d68fbc12aba057d1853973ea7b4a2cc0637dafa8e7c4d369b08e2d2cf5e145d323af1f23ea2afd95195072e421b3963
 SHA512 
705096f4822fbf8530deed78bbf2c41bf9143b19432e93a428343d0faf1ae25f6865fa777c0f1c35c94f3e6bc8fd12ab1b6f6bdaa80694bde4926846ec4f1934
 DIST dulwich-0.24.2.tar.gz 883284 BLAKE2B 
4ab3488c864c835b97a60d73bad69ec3fab9303770b8edfb672aa1a3f7ee2d7331e473a194fab0dc6c6cd5c7f8be39291e00a82ee2c97be0b787fb082f644db2
 SHA512 
baff0ecd16669c442f567f295ec4a459af47ee59c47f6f1cf79f0b619e9774d92504b9b0e6f0d1b64fb5a4038df9522251d2f34aada2d56c217ea401df22c22f
 DIST dulwich-0.24.3.tar.gz 911540 BLAKE2B 
b315d4387573c6723ad3fac4e29d7af60c956f22923d1d3c24d700fb11f916ac5bfa56b3ae61d10a37a9a2e1f5262471b66da0ec33b00cddc6074e807cce28a4
 SHA512 
3662dd2024241695f21d6d146dbe37efe0143d0965c0f93bd5d334a46718744ab561799e1aeee6d7b75abd8de1579c6a4b958b99850ac946d22a9004ee0dd9be
+DIST dulwich-0.24.4.tar.gz 911727 BLAKE2B 
6c9dd91a8fadd819180b57b42a0822487693e1d33b44600017d0d1cb07baf18b10d41a0f60d914c135df72b9bda5142a9b2782d1efdb3a1c0bba7b2fef8809db
 SHA512 
67477820d6b13eb93a645e4e390ae52d0fe5af1118620dbddb3e4bf86b797b6aed042b74d4a8418003bef6a6619230e7b3458d2496f21baca1399f1809a574cd
+DIST dulwich-0.24.4.tar.gz.provenance 9583 BLAKE2B 
9ae12f5f0778f29349cce27d5de52e7ae0ad7c30fc5fcda2d80f21b86673c70ba8f1e497ea855126ddc8b3c1ea46d8ef4e4da1b9162a11eb3cc149cb79bb9634
 SHA512 
f8ffa810329897f926d92e9a8f20ea40dc44f9f8f1859fb123c1202909ebb311c6e715df7422570ed23342d153466d8e0006251a384dfc6f2f6e4b96399c3e7c
 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

diff --git a/dev-python/dulwich/dulwich-0.24.4.ebuild 
b/dev-python/dulwich/dulwich-0.24.4.ebuild
new file mode 100644
index 000000000000..61ce3c188c65
--- /dev/null
+++ b/dev-python/dulwich/dulwich-0.24.4.ebuild
@@ -0,0 +1,121 @@
+# 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]
+"
+
+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-with-LLVM-exceptions MIT Unicode-3.0"
+LICENSE+=" )"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~ppc64 ~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() {
+       unset PURE
+       # TODO: enable Rust extensions
+       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
+}

Reply via email to