commit: aa74ad17642a9457baabda8a7945571725abc1aa Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Jan 18 02:32:18 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Jan 18 03:40:20 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa74ad17
dev-python/dulwich: Bump to 1.0.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/dulwich/Manifest | 2 + dev-python/dulwich/dulwich-1.0.0.ebuild | 124 ++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest index 8b51bb7885b6..407faccc1f32 100644 --- a/dev-python/dulwich/Manifest +++ b/dev-python/dulwich/Manifest @@ -5,6 +5,8 @@ DIST dulwich-0.25.0.tar.gz 1076943 BLAKE2B 9dbaf0aed3bc914245f85443d082dc602450a DIST dulwich-0.25.0.tar.gz.provenance 9577 BLAKE2B d084d4a695269607eb482805eb1cc90a4a09ffe63f29c08e939db539c8d4b10368a58bc3b93fe009f69201021baeea31c0d22f2a9fa2e5b8653af0bcd96aa640 SHA512 38b7b8fdc23ea2d9b505c3c38dc9b56050221961f45239cf6aec37aee9d4cf937280ff3fec6fcac0a3731c69fd0eb80b3adaacfeb3742be5089acb7ba3ddcb06 DIST dulwich-0.25.2.tar.gz 1126499 BLAKE2B 6e2f5dd6dd1ff32cdde8303215d3c212bc9e559fc9b7efb082b84131a3f9a0b9622bbe3fa1dc6bb52a73d5e55ac6a66ccd4fd0c3b36332a940134f9545edde3f SHA512 e4bcfc7ad93af53ff66ff924419810b86269e0af849d1a1a9bcc8d52743c2cf1d3c0f00d417d1b015376a22854608acdb80a21f0ffe7f5a9966afb025d8ea24d DIST dulwich-0.25.2.tar.gz.provenance 9326 BLAKE2B 4fcc5bb9ef5e2185f58fbb2a95a31a3e1ad8d3ef5bd8e7b3b6fb1c61a38da60bf7106367a2d7ce723b42958f03588404ca29184fea44b86a54a6015aca5ad9a7 SHA512 c046142cfad02d6d172bb1512f86dc1d606e11eeb4d937e1eb202713a2edf68c72a10f2250b2bb41166a05d0e7be1021908ec4ce4c54486e456dd135e8427b84 +DIST dulwich-1.0.0.tar.gz 1135862 BLAKE2B 0ebd27998344bb4a088104413319b1c74a6ade9a0f69f9b64a34b9b578752026809a9856416e431974a5897e742df7fe4b3155e42f883bbcf84db852bd7d0b60 SHA512 e2720cf84698ddc0f77f5013fe27ecd910564ee7854212dc8618a42e2481c1576af8d878240f45d45c41084a76ccb5aa204cd4138b9220de8473673dabfae544 +DIST dulwich-1.0.0.tar.gz.provenance 9361 BLAKE2B 309dc38a86668b0add37a312a8d96a330a46017967db66c25c886fc99b3331d0ce27c206519a36b88802e8b0334eb1ec0720a5ff1a5a8bfe399c272cb0283c97 SHA512 4d6d69f8e387d3cb9086daf48a07b28dbf5bb10f3ceda62d612020dca9b990e432d5f8f2ef8f0d061518f0ae95dd27fcad05ab217c4893512132c93008caaa22 DIST heck-0.5.0.crate 11517 BLAKE2B 5365ec43b2239a76b33a174f1a4292ece4147f9d382a68c6c60db78fdc8bad0afb1d51a65bcb25e96675372faa4ea37c318265030b0546ba51942f7c929e1835 SHA512 f044fc9c3d22466629fd8f772ec0555350fd611c0cfadca51d99a3d2f10e155f77c1091916c8a95a6b9b499f366c2e99a5fbf45b010f988bfb9b2501bf9f6a76 DIST indoc-2.0.7.crate 17184 BLAKE2B aae454874b44dbc908a75b64626e608e04017c1407daff9a2e2dd12a337ac04db594540d2f31bfc590d6f37f0d711ff2d3054352ff1b33e736c36620404be0a0 SHA512 6e80cf927001821606488a822fd0f67ae1a569b022c98e727e6b1571c88d87775166f088322bd5f17abb8fc1fde62c9d14fb2e99f1e50918487252d823e48f73 DIST libc-0.2.177.crate 792045 BLAKE2B ecea1ade26b0faa9cb5fb025e237f3a59dfb562e7b3de3682b42a41038b1d436e83b42b53158c1fc1cc4b1cc64ab55ba1497e869ae850a677c089fcce9138912 SHA512 9d737091dba80244137987d06a52ffcd44a968c96b59ae9af9cfa40c38cb9675d023f6324fbf25c436ce1b9592ebf26248f85b0a7c97ee02360ca624b0efb3e0 diff --git a/dev-python/dulwich/dulwich-1.0.0.ebuild b/dev-python/dulwich/dulwich-1.0.0.ebuild new file mode 100644 index 000000000000..e98e3da76d88 --- /dev/null +++ b/dev-python/dulwich/dulwich-1.0.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2026 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] + [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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~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 +}
