From 0ca3f86640e2f1f361da895b997c43bac22090a1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 21:02:07 +0000 Subject: gentoo auto-resync : 10:11:2024 - 21:02:06 --- dev-python/dulwich/Manifest | 2 +- dev-python/dulwich/dulwich-0.22.5-r1.ebuild | 115 ++++++++++++++++++++++++++ dev-python/dulwich/dulwich-0.22.5.ebuild | 121 ---------------------------- 3 files changed, 116 insertions(+), 122 deletions(-) create mode 100644 dev-python/dulwich/dulwich-0.22.5-r1.ebuild delete mode 100644 dev-python/dulwich/dulwich-0.22.5.ebuild (limited to 'dev-python/dulwich') diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest index 78a8d8bdd0a9..a96d66727259 100644 --- a/dev-python/dulwich/Manifest +++ b/dev-python/dulwich/Manifest @@ -31,5 +31,5 @@ DIST unicode-ident-1.0.13.crate 43279 BLAKE2B b5e935020d1c9f3aa24f7d382f6b73d651 DIST unindent-0.2.3.crate 7306 BLAKE2B a57407b117e99c230750c7d4a2a0899586c8271e4ba88ecb409c976905c014f42885372c234a75fbfbedf71dbed779f95f735975d150adacdcb61152a49db4c2 SHA512 2f1eb420ea3653b00d3e5fa0c2c105da8fd8a37cb3e699373c168604b799fccd5f0faf0cddce4212d119c2afb0c86b41efc3a50752b83ff7beda2bd84d360505 EBUILD dulwich-0.21.7-r1.ebuild 1663 BLAKE2B 7aec8e4ce4ae679b5c45b7162c6d4976f9a96cbf19c2137480f206e7107125bb9047a529edd22a0b0df73ab8926e3bd237c43c4c267b5aebc83a9091f495a66b SHA512 ddf38c8d28a17fe0332977dcf9407d6ecafecb9f08f0148fd2bb50be9ded1cd897c4108d34fb8f54bfeabf684d89048a9482ed7c99626c2eba2e811407248d12 EBUILD dulwich-0.22.4-r1.ebuild 2465 BLAKE2B ee055671ad413539031db7b6cf5ce123245300c366df7ca5de24a0c9127ea308cd7c62beff57682b263f31232fbb7336ac0746cbf6f3e96c6b87a6f6720e6e2c SHA512 48edf42bded1cef70dd5e7cae19aee8080b11797ec656472e9c639750df39e469189e0d851420d2572045f2b991c655828f92b12fd749d25e2d910386a6d434e -EBUILD dulwich-0.22.5.ebuild 2605 BLAKE2B 3e15e077d1d610c5a15643004e78e5b190f1d5bac7e512e348549ee5d11f6bb83ee4be4880bb9252e04c2b9ea0d8d9c64252b9c6cae396df201ef17352650ace SHA512 a730a3ccbfc405a7bfa8a9b099a9016fa98e74b7a44f497fb6f3f2817aded30900ab3b167f06c4ae331f6619d941ed6ac485e844edd19a0c641bc28487e0bec0 +EBUILD dulwich-0.22.5-r1.ebuild 2512 BLAKE2B 9ad1b7c8aac19b40a02e6777aaf4d37cc1aac697bbe6fc89e235d521d0ba1f0f27a2ebcd75f7ad6aeb9ee4c50f0a55e5cd6a2a2ff042ed75c0ce48dc265ae67c SHA512 3badca5f7819aa32a1d11c242d489a3ee6ac4d7dcc90cbd4726c453212629042b2c53c9f42b9c8c4b9e6283d46444c1f8ac05e8367999dc46ddb02a3f7bd8cb8 MISC metadata.xml 556 BLAKE2B 240554ff522160e9508bf6debadafcc44b5ccc4074dd4c9d3ce82358963084c60a1afae9fafee6ab1e6e5d898940ccb4d1b524cebff155e61bf6707c9396b647 SHA512 a7cdca224a01d5bd26bf4a5adb0273977ddff61f75cd02f5642132656fd0c6608114617efcb068d834f107804666cf4fb3725967e804b73d2ddcb67342dc30de diff --git a/dev-python/dulwich/dulwich-0.22.5-r1.ebuild b/dev-python/dulwich/dulwich-0.22.5-r1.ebuild new file mode 100644 index 000000000000..a237b8715cf7 --- /dev/null +++ b/dev-python/dulwich/dulwich-0.22.5-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2024 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 +PYTHON_COMPAT=( python3_{10..13} ) + +CRATES=" + autocfg@1.4.0 + cfg-if@1.0.0 + heck@0.5.0 + indoc@2.0.5 + libc@0.2.162 + memchr@2.7.4 + memoffset@0.9.1 + once_cell@1.20.2 + portable-atomic@1.9.0 + proc-macro2@1.0.89 + pyo3-build-config@0.22.6 + pyo3-ffi@0.22.6 + pyo3-macros-backend@0.22.6 + pyo3-macros@0.22.6 + pyo3@0.22.6 + quote@1.0.37 + syn@2.0.87 + target-lexicon@0.12.16 + unicode-ident@1.0.13 + unindent@0.2.3 +" + +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-DFS-2016" +LICENSE+=" )" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc examples +native-extensions test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/urllib3-1.25[${PYTHON_USEDEP}] +" +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-python/setuptools-rust[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + app-crypt/gpgme[python,${PYTHON_USEDEP}] + dev-python/fastimport[${PYTHON_USEDEP}] + ) +" + +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() { + 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 +} diff --git a/dev-python/dulwich/dulwich-0.22.5.ebuild b/dev-python/dulwich/dulwich-0.22.5.ebuild deleted file mode 100644 index db1bb455ba7f..000000000000 --- a/dev-python/dulwich/dulwich-0.22.5.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2024 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 -PYTHON_COMPAT=( python3_{10..13} ) - -CRATES=" - autocfg@1.4.0 - cfg-if@1.0.0 - heck@0.5.0 - indoc@2.0.5 - libc@0.2.162 - memchr@2.7.4 - memoffset@0.9.1 - once_cell@1.20.2 - portable-atomic@1.9.0 - proc-macro2@1.0.89 - pyo3-build-config@0.22.6 - pyo3-ffi@0.22.6 - pyo3-macros-backend@0.22.6 - pyo3-macros@0.22.6 - pyo3@0.22.6 - quote@1.0.37 - syn@2.0.87 - target-lexicon@0.12.16 - unicode-ident@1.0.13 - unindent@0.2.3 -" - -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-DFS-2016" -LICENSE+=" )" - -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="doc examples +native-extensions test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/urllib3-1.25[${PYTHON_USEDEP}] -" -BDEPEND=" - native-extensions? ( - ${RUST_DEPEND} - dev-python/setuptools-rust[${PYTHON_USEDEP}] - ) - test? ( - ${RDEPEND} - app-crypt/gpgme[python,${PYTHON_USEDEP}] - dev-python/fastimport[${PYTHON_USEDEP}] - ) -" - -distutils_enable_sphinx docs - -QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/dulwich/_.*.so" - -src_unpack() { - cargo_src_unpack -} - -src_prepare() { - default - - if use !native-extensions; then - # avoid hard dep on rust via setuptools_rust - # https://github.com/jelmer/dulwich/issues/1405 - sed -i \ - -e '/from setuptools_rust/d' \ - -e '/^rust_extensions = \[/,/^\]/d' \ - setup.py || die - fi -} - -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 -} -- cgit v1.2.3