Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-httpserver/
Date: Sat, 30 Jul 2022 12:35:39
Message-Id: 1659184513.bfa7938ade412ca8e8f5f9f8716f49e7231c7ac4.arthurzam@gentoo
1 commit: bfa7938ade412ca8e8f5f9f8716f49e7231c7ac4
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 12:35:13 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 12:35:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfa7938a
7
8 dev-python/pytest-httpserver: add 1.0.5
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pytest-httpserver/Manifest | 1 +
13 .../pytest-httpserver-1.0.5.ebuild | 39 ++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-python/pytest-httpserver/Manifest b/dev-python/pytest-httpserver/Manifest
17 index 817f1cc47e15..8313fde4cc50 100644
18 --- a/dev-python/pytest-httpserver/Manifest
19 +++ b/dev-python/pytest-httpserver/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-httpserver-1.0.4.gh.tar.gz 78911 BLAKE2B 425f72438797b55a84662f580dd9bfc1d6dd8a0513587e72b6e1de7e669eee75c777fdd6c2cfcbc92273737dd47568b48a22f12e8a40952f82a599f30705a604 SHA512 e80754910117736fd172d7bd5e5fc41721fab8adc705b72f0ee4cd866c878ed267ad3819645fd567e3af2c9e53deecb3749f1a873d72ff9e234c4fdd7f7cabea
22 +DIST pytest-httpserver-1.0.5.gh.tar.gz 80395 BLAKE2B 68c075032c57f25854d390f73bf61b7efbe18f78d7f0b2a2a3be10d586ca9cc3ce4a1b390a2ba0da1e88558513782388069c419dae4908a0581e8d583f452bee SHA512 8275475bb044d54769e906571520fafbb9f6fa32fc003f4a00f72b9ff9930e4b80ee84564df1521569cc2a15f5d371c6315129263bc167d0621141004d509a25
23
24 diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.0.5.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.0.5.ebuild
25 new file mode 100644
26 index 000000000000..38988531c5f2
27 --- /dev/null
28 +++ b/dev-python/pytest-httpserver/pytest-httpserver-1.0.5.ebuild
29 @@ -0,0 +1,39 @@
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=poetry
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="HTTP server for pytest to test HTTP clients"
41 +HOMEPAGE="https://github.com/csernazs/pytest-httpserver"
42 +SRC_URI="
43 + https://github.com/csernazs/pytest-httpserver/archive/${PV}.tar.gz
44 + -> ${P}.gh.tar.gz
45 +"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +RDEPEND="dev-python/werkzeug[${PYTHON_USEDEP}]"
52 +BDEPEND="
53 + test? (
54 + dev-python/requests[${PYTHON_USEDEP}]
55 + )
56 +"
57 +
58 +distutils_enable_tests pytest
59 +
60 +python_prepare_all() {
61 + sed -i -e '/^include = \[/,/\]/d' pyproject.toml || die
62 +
63 + distutils-r1_python_prepare_all
64 +}
65 +
66 +python_test() {
67 + epytest -p no:localserver
68 +}