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