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-localserver/
Date: Thu, 01 Sep 2022 19:42:16
Message-Id: 1662061315.956d303f10db75d9da9547d4d4801813d555c4f2.arthurzam@gentoo
1 commit: 956d303f10db75d9da9547d4d4801813d555c4f2
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 19:20:24 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 19:41:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956d303f
7
8 dev-python/pytest-localserver: add 0.7.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pytest-localserver/Manifest | 1 +
13 .../pytest-localserver-0.7.0.ebuild | 41 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/pytest-localserver/Manifest b/dev-python/pytest-localserver/Manifest
17 index 3e408fc2d500..84e9d27fb3e7 100644
18 --- a/dev-python/pytest-localserver/Manifest
19 +++ b/dev-python/pytest-localserver/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-localserver-0.6.0.tar.gz 182346 BLAKE2B b8f56c6db3bc9c260c747cdf707aac0de22152111d3a8f9c0ea8adb8e5e556edf4a1ffa0d4fd517bf95428c69ebc0c1629a103c3b8f44a57b939f696cb9240cd SHA512 149796393af260fa5d69560852e9d11b569515b8486859302af2ed369a93bbb7cad11f54210851bd4030d8f7f5936a0306fe9599bc8477bdfc61d3d0a83cb205
22 +DIST pytest-localserver-0.7.0.tar.gz 184154 BLAKE2B 31f05dd4f156c8a547dacaf39c1aa1a576f2f84e625d64b96409212768a7d9967944931f85ab293d26f348e3a65eba1c5e341c6c08992271c10e65b2fa453cc4 SHA512 1fb1acaeb190d35ebd05cdd63ce15e4a9138802901cef8c25c1fa6dd177d8af2b6b2749f5a052942bf655ffd2ff6105de8a652d73faab369ce6dcf3219bb2394
23
24 diff --git a/dev-python/pytest-localserver/pytest-localserver-0.7.0.ebuild b/dev-python/pytest-localserver/pytest-localserver-0.7.0.ebuild
25 new file mode 100644
26 index 000000000000..3233d26d2775
27 --- /dev/null
28 +++ b/dev-python/pytest-localserver/pytest-localserver-0.7.0.ebuild
29 @@ -0,0 +1,41 @@
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=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Pytest plugin to test server connections locally"
41 +HOMEPAGE="https://pypi.org/project/pytest-localserver/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
47 +
48 +RDEPEND="
49 + >=dev-python/werkzeug-0.10[${PYTHON_USEDEP}]
50 +"
51 +BDEPEND="
52 + test? (
53 + dev-python/pytest[${PYTHON_USEDEP}]
54 + dev-python/requests[${PYTHON_USEDEP}]
55 + dev-python/six[${PYTHON_USEDEP}]
56 + )
57 +"
58 +
59 +distutils_enable_tests pytest
60 +
61 +EPYTEST_IGNORE=(
62 + # requires aiosmtpd that is dead and broken beyond repair
63 + tests/test_smtp.py
64 +)
65 +
66 +src_prepare() {
67 + # remove aiosmtpd dep
68 + sed -e '/aiosmtpd/d' -i setup.py || die
69 + distutils-r1_src_prepare
70 +}