From 2900e684ae4bdce1f20652587728095cd01a30a1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Nov 2023 10:31:10 +0000 Subject: gentoo auto-resync : 25:11:2023 - 10:31:10 --- dev-python/pycurl/Manifest | 2 +- dev-python/pycurl/pycurl-7.45.2-r1.ebuild | 93 +++++++++++++++++++++++++++++++ dev-python/pycurl/pycurl-7.45.2.ebuild | 93 ------------------------------- 3 files changed, 94 insertions(+), 94 deletions(-) create mode 100644 dev-python/pycurl/pycurl-7.45.2-r1.ebuild delete mode 100644 dev-python/pycurl/pycurl-7.45.2.ebuild (limited to 'dev-python/pycurl') diff --git a/dev-python/pycurl/Manifest b/dev-python/pycurl/Manifest index cd8e51c0ac7d..97a06850e2fa 100644 --- a/dev-python/pycurl/Manifest +++ b/dev-python/pycurl/Manifest @@ -1,4 +1,4 @@ AUX pycurl-7.45.2-skip-http3-test.patch 1116 BLAKE2B 9852580ab51cd978501d966292827c6f7739d52f65eb4cb01b3cd9517aa1b7f522c58dd0703264d662f431292ef55188f16d50f9f8df5b0dd1b7e32f0a185e64 SHA512 51567f97f96d94878a0af446a89a032aa79c6a062d2efbe1d32c8a9b70d1ba75eada54fff53ea9de37c739635225310d067976d4883937914dc2708de4837789 DIST pycurl-7.45.2.tar.gz 234245 BLAKE2B 16257a967d2867de08d83478f602d00b54316d37b6a544804e606a814f61507530fb7e1ef3247be824dfa22b9487a69bbfc9b1038b2b776ebc556b18ed2d93ca SHA512 8a82346395acfc0bd37a8c4d8d2b17e5ab4602710308ed50f9ed88c223c73f15f5b1c95fc6191708e3bd9d647e4bc5ec91f740de433dd87e2ae0796ac79879ac -EBUILD pycurl-7.45.2.ebuild 2552 BLAKE2B b3ca9d8caf1ded466ca006f07cbfd6006fa69053c96a9a19e307b0b27d87edab693b88a7032ae04a5058ebb4594f7c44307fa4912c7037a983050e7f61cb115b SHA512 0232c303ec7c260432304cfa891c08e64dc9d83d010c2017a8cf90edeb672e2f2b0a761fee2e8828f4978384d3bdee7b295cae263c6dd702a63b9c4afd89f1c8 +EBUILD pycurl-7.45.2-r1.ebuild 2505 BLAKE2B 6e9938c43afbfa8f76f3b92546835e4dc9e81458474ba85afae455cad220e003a58089b0b926aef69e1b7ae5e4d81acbca2de69210e20db250bcca0ab761a3d5 SHA512 23d2d0557d6ceb9443cd2414d17e41d0e23eed0285294b9daa7f438400392d1be95342d17e03a0f436783b852fcdda2456eacc3c30d63f08377ae0f0cbe1e80c MISC metadata.xml 1100 BLAKE2B dfc7fe054c7cc34c61bf58fef0378df304a539c28cbc0dff4ffff65ccc8892c38aaf1e275885fc54d2854d9acc6b382947038041f815b5941859be7cfe75523f SHA512 f1de0dccd625ae0b02ff9a55cbc1bbf7944faa24dba28ffd711c728001f180afa598a255132aea860ad616637325cdc653577af531b1a954a3994e8902c774aa diff --git a/dev-python/pycurl/pycurl-7.45.2-r1.ebuild b/dev-python/pycurl/pycurl-7.45.2-r1.ebuild new file mode 100644 index 000000000000..940b0bb94856 --- /dev/null +++ b/dev-python/pycurl/pycurl-7.45.2-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 pypi toolchain-funcs + +DESCRIPTION="Python bindings for curl/libcurl" +HOMEPAGE=" + http://pycurl.io/ + https://github.com/pycurl/pycurl/ + https://pypi.org/project/pycurl/ +" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="curl_ssl_gnutls +curl_ssl_openssl examples ssl" + +# Depend on a curl with curl_ssl_* USE flags. +# libcurl must not be using an ssl backend we do not support. +# If the libcurl ssl backend changes pycurl should be recompiled. +# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl +# does not need to initialize gcrypt threading and we do not need to +# explicitly link to libgcrypt. +DEPEND=" + >=net-misc/curl-7.25.0-r1:=[ssl=] + ssl? ( + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= ) + curl_ssl_openssl? ( dev-libs/openssl:= ) + ) +" + +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + test? ( + >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-7.45.2-skip-http3-test.patch +) + +distutils_enable_tests pytest + +python_prepare_all() { + # docs installed into the wrong directory + sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die + # TODO + sed -e 's:test_socks5_gssapi_nec_setopt:_&:' \ + -i tests/option_constants_test.py || die + + distutils-r1_python_prepare_all +} + +python_configure_all() { + # Override faulty detection in setup.py, bug #510974. + export PYCURL_SSL_LIBRARY=${CURL_SSL} +} + +src_test() { + emake -C tests/fake-curl/libcurl CC="$(tc-getCC)" + + distutils-r1_src_test +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_DESELECT=( + # refcounting tests are unreliable + tests/memory_mgmt_test.py::MemoryMgmtTest::test_readdata_refcounting + tests/memory_mgmt_test.py::MemoryMgmtTest::test_writedata_refcounting + tests/memory_mgmt_test.py::MemoryMgmtTest::test_writeheader_refcounting + ) + + epytest -p flaky tests +} + +python_install_all() { + local HTML_DOCS=( doc/. ) + use examples && dodoc -r examples + distutils-r1_python_install_all +} diff --git a/dev-python/pycurl/pycurl-7.45.2.ebuild b/dev-python/pycurl/pycurl-7.45.2.ebuild deleted file mode 100644 index 721c43c1facc..000000000000 --- a/dev-python/pycurl/pycurl-7.45.2.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) - -inherit distutils-r1 pypi toolchain-funcs - -DESCRIPTION="Python bindings for curl/libcurl" -HOMEPAGE=" - http://pycurl.io/ - https://github.com/pycurl/pycurl/ - https://pypi.org/project/pycurl/ -" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl examples ssl" - -# Depend on a curl with curl_ssl_* USE flags. -# libcurl must not be using an ssl backend we do not support. -# If the libcurl ssl backend changes pycurl should be recompiled. -# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl -# does not need to initialize gcrypt threading and we do not need to -# explicitly link to libgcrypt. -DEPEND=" - >=net-misc/curl-7.25.0-r1:=[ssl=] - ssl? ( - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] - curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= ) - curl_ssl_openssl? ( dev-libs/openssl:= ) - ) -" - -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - test? ( - >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}] - dev-python/flaky[${PYTHON_USEDEP}] - net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2] - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-7.45.2-skip-http3-test.patch -) - -distutils_enable_tests pytest - -python_prepare_all() { - # docs installed into the wrong directory - sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die - # TODO - sed -e 's:test_socks5_gssapi_nec_setopt:_&:' \ - -i tests/option_constants_test.py || die - - distutils-r1_python_prepare_all -} - -python_configure_all() { - # Override faulty detection in setup.py, bug #510974. - export PYCURL_SSL_LIBRARY=${CURL_SSL} -} - -src_test() { - emake -C tests/fake-curl/libcurl CC="$(tc-getCC)" - - distutils-r1_src_test -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local EPYTEST_DESELECT=( - # refcounting tests are unreliable - tests/memory_mgmt_test.py::MemoryMgmtTest::test_readdata_refcounting - tests/memory_mgmt_test.py::MemoryMgmtTest::test_writedata_refcounting - tests/memory_mgmt_test.py::MemoryMgmtTest::test_writeheader_refcounting - ) - - epytest -p flaky tests -} - -python_install_all() { - local HTML_DOCS=( doc/. ) - use examples && dodoc -r examples - distutils-r1_python_install_all -} -- cgit v1.2.3