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/pytest/
Date: Thu, 30 Jul 2020 14:31:04
Message-Id: 1596119456.a72560a3c7c74fbedf115682465512736078d82b.mgorny@gentoo
1 commit: a72560a3c7c74fbedf115682465512736078d82b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 30 13:38:11 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 30 14:30:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a72560a3
7
8 dev-python/pytest: Bump to 6.0.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest/Manifest | 1 +
13 dev-python/pytest/pytest-6.0.1.ebuild | 62 +++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
17 index 472b225a775..282e026a501 100644
18 --- a/dev-python/pytest/Manifest
19 +++ b/dev-python/pytest/Manifest
20 @@ -2,3 +2,4 @@ DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4
21 DIST pytest-4.5.0.tar.gz 943607 BLAKE2B 49a0e91fda7f4231fdd39f90eb2daa344d3034c10faff221330ea0ae7482a2a7d0fb9443a0a264db00f1d92568d5a6005cb73e07d8643b46906f7ecff831adcb SHA512 cbffc6216f83491b1de241058315c116697bfaa5206b5f558192a7f861d43dd036d30d0d689bedae7bdee4f0258dd19ef5827c356e11863dd596a5fabe8249fc
22 DIST pytest-4.6.11.tar.gz 952305 BLAKE2B af07adf5e8fc614b1fdb7b5673fb9c557ff0dd3f22e2f3bf853c643c5c8bd38f307018579299b700d90034a826db73a3e569857d6d6f7ac6646ace894b35a39b SHA512 6fddf4944bd9fab83024aa2d338d54aaf3d164bd5c7f634357376f3b0d2dab6a43d784e7fb567236c2d2f029151c5d9e2cb36c22e9b551c2c8823c52a2246e9c
23 DIST pytest-5.4.3.tar.gz 1022353 BLAKE2B 70d4f23cbbfc4c4ce63c512ee0a01556973761a6d3ebb71a6d9ed4fb4a4a21531e1b151ed0e4c5e56e5dd3243a1a272441f17c4c2c4e3b0b19c24654b74e8e52 SHA512 0a07d4f4f791969c6f21961a0ba0f8c6670e5870c6cc1cebf93766587bb9cb3e10db8e57f0bd33dd22b275f3aad7aa674949f124ac80e0ccca64e35be4beee4e
24 +DIST pytest-6.0.1.tar.gz 1069631 BLAKE2B 89a78ebf8e8cf968ea767fe7244408ca79d247c1ca459815ac299ce773b44c375429935c8a25b4de26349969113c60e4b6812d5aa2d805691664af74796ea85b SHA512 bdd790c3860da2ed3a3ff47f04512c3bfae4fa1e31fc6b96fc19bd57d1804a6fec968ecf17a11c5b20d30dcf82d6391ef0d893ae57a3da9ad777a15c078c129f
25
26 diff --git a/dev-python/pytest/pytest-6.0.1.ebuild b/dev-python/pytest/pytest-6.0.1.ebuild
27 new file mode 100644
28 index 00000000000..e76448a70b4
29 --- /dev/null
30 +++ b/dev-python/pytest/pytest-6.0.1.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{6..9} pypy3 )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Simple powerful testing with Python"
43 +HOMEPAGE="https://pytest.org/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
54 + $(python_gen_cond_dep '
55 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
56 + ' python3_{6,7} pypy3)
57 + dev-python/iniconfig[${PYTHON_USEDEP}]
58 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
59 + dev-python/packaging[${PYTHON_USEDEP}]
60 + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
61 + <dev-python/pluggy-1
62 + >=dev-python/py-1.8.2[${PYTHON_USEDEP}]
63 + dev-python/toml[${PYTHON_USEDEP}]
64 +"
65 +# flake cause a number of tests to fail
66 +DEPEND="
67 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
68 + test? (
69 + ${RDEPEND}
70 + dev-python/argcomplete[${PYTHON_USEDEP}]
71 + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
72 + dev-python/mock[${PYTHON_USEDEP}]
73 + dev-python/nose[${PYTHON_USEDEP}]
74 + dev-python/requests[${PYTHON_USEDEP}]
75 + dev-python/xmlschema[${PYTHON_USEDEP}]
76 + !!dev-python/flaky
77 + )"
78 +
79 +python_prepare_all() {
80 + # fragile to warnings from other packages (setuptools)
81 + # little value for us to run it
82 + sed -i -e 's:test_no_warnings:_&:' \
83 + testing/test_meta.py || die
84 +
85 + distutils-r1_python_prepare_all
86 +}
87 +
88 +python_test() {
89 + distutils_install_for_testing
90 +
91 + "${EPYTHON}" -m pytest -vv --lsof -rfsxX ||
92 + die "Tests failed with ${EPYTHON}"
93 +}