From 5357978bb24e9fa17325257d26a1d4e43d5991ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 30 May 2025 14:53:54 +0200 Subject: [PATCH] dev-python/mechanicalsoup: Bump to 1.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/mechanicalsoup/Manifest | 1 + .../mechanicalsoup-1.4.0.ebuild | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dev-python/mechanicalsoup/mechanicalsoup-1.4.0.ebuild diff --git a/dev-python/mechanicalsoup/Manifest b/dev-python/mechanicalsoup/Manifest index 57317f12db9f2..bd831148f46f7 100644 --- a/dev-python/mechanicalsoup/Manifest +++ b/dev-python/mechanicalsoup/Manifest @@ -1 +1,2 @@ DIST MechanicalSoup-1.3.0.tar.gz 50826 BLAKE2B c47760a0f8d9c7a6430580c81fb750d3eab37a773a7453fb2850396ea2cff1ae143b1ec9ec5e1d8051a52f39c1527b99126f4ea2c90a73c7730597dd92a42a11 SHA512 a205c9b36b540be8b3eb15803c34e67029cb5b33aaf36d235947cc46c588f2d63e68acd97a9872b20ad3f1c87dcdb6133b4860dc7d90752ac477aaaa9a7c3e82 +DIST mechanicalsoup-1.4.0.tar.gz 51131 BLAKE2B 30613e93134f4104a353c1278776650c4013f5e0943acc7ab52c5b9e480a967d0f58955c96c06f50c4638ce52078466227fcbd0912197c793a46b19bbd3b7820 SHA512 e8e8ab304ee9a22886bc4d41871bb1433abfd87005f9a870fca3e22b4632da185be2becb25cfbb9be42662748394d90f70d52f6d81438c391f47716bc7eaf8ea diff --git a/dev-python/mechanicalsoup/mechanicalsoup-1.4.0.ebuild b/dev-python/mechanicalsoup/mechanicalsoup-1.4.0.ebuild new file mode 100644 index 0000000000000..298d0cb0bfacd --- /dev/null +++ b/dev-python/mechanicalsoup/mechanicalsoup-1.4.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=MechanicalSoup +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A Python library for automating interaction with websites" +HOMEPAGE=" + https://github.com/MechanicalSoup/MechanicalSoup/ + https://pypi.org/project/MechanicalSoup/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND=" + >=dev-python/beautifulsoup4-4.7[${PYTHON_USEDEP}] + >=dev-python/certifi-2022.12.7[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/urllib3-2.2.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/requests-mock-1.3.0[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs + +python_test() { + epytest -o addopts= +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +}