Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/MechanicalSoup/
Date: Thu, 22 Sep 2022 10:29:10
Message-Id: 1663842544.df3a453ace97d9e02211ad1add167b6219049ddb.mgorny@gentoo
1 commit: df3a453ace97d9e02211ad1add167b6219049ddb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 10:25:32 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 10:29:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3a453a
7
8 dev-python/MechanicalSoup: Bump to 1.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/MechanicalSoup/Manifest | 1 +
13 .../MechanicalSoup/MechanicalSoup-1.2.0.ebuild | 51 ++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-python/MechanicalSoup/Manifest b/dev-python/MechanicalSoup/Manifest
17 index 32f0e612a905..d4203bb62d6a 100644
18 --- a/dev-python/MechanicalSoup/Manifest
19 +++ b/dev-python/MechanicalSoup/Manifest
20 @@ -1 +1,2 @@
21 DIST MechanicalSoup-1.1.0.tar.gz 49270 BLAKE2B 947b35d819dc69508595adcfe5a0c8e6bd34888c995e9c3931613498ee1ca840ce16a14359aacbf9d40aa4f9ae59d45d14da5a150e3ce39ae7e72f587c94820e SHA512 26eaa54bcd1c0aac26504d7c482ed001830a1c79bf48a3055cef92348e9336887bef86cda68281911032159a3404a1f4ee8de9b6516d7d767cfd6b3b380c4ebe
22 +DIST MechanicalSoup-1.2.0.tar.gz 49669 BLAKE2B a9791fd2d389c8a553ed0acce179094770651553b7aaf299ec6779509b4ffb1bb97a4a4afe01af3e4ccb56cf100b5bacc39e9aedf1143a9eb6f4b98dbb020062 SHA512 5857274e07c678dc0e19ad4fef828ccf41bb846edad566c2da9914144ced8802efd546265efac792acbb885b29cab5cde4ac3cd2002826a8bb31f91004eb2caa
23
24 diff --git a/dev-python/MechanicalSoup/MechanicalSoup-1.2.0.ebuild b/dev-python/MechanicalSoup/MechanicalSoup-1.2.0.ebuild
25 new file mode 100644
26 index 000000000000..c44576b3c1e6
27 --- /dev/null
28 +++ b/dev-python/MechanicalSoup/MechanicalSoup-1.2.0.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A Python library for automating interaction with websites"
41 +HOMEPAGE="
42 + https://github.com/MechanicalSoup/MechanicalSoup/
43 + https://pypi.org/project/MechanicalSoup/
44 +"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="examples"
51 +
52 +RDEPEND="
53 + >=dev-python/beautifulsoup4-4.7[${PYTHON_USEDEP}]
54 + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
55 + dev-python/lxml[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + test? (
59 + >=dev-python/requests-mock-1.3.0[${PYTHON_USEDEP}]
60 + dev-python/pytest-httpbin[${PYTHON_USEDEP}]
61 + dev-python/pytest-mock[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +distutils_enable_sphinx docs
67 +
68 +python_prepare_all() {
69 + # Override pytest options to skip coverage and flake8
70 + sed -e '/^addopts =/d' -i setup.cfg || die
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_install_all() {
75 + if use examples; then
76 + docompress -x "/usr/share/doc/${PF}/examples"
77 + dodoc -r examples
78 + fi
79 + distutils-r1_python_install_all
80 +}