Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-xdist/, dev-python/pytest-xdist/files/
Date: Sun, 02 Jun 2019 13:31:15
Message-Id: 1559482259.a8c2fb9df70121e653cde6d9d7a14789a54edc1f.vdupras@gentoo
1 commit: a8c2fb9df70121e653cde6d9d7a14789a54edc1f
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 2 13:30:59 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 2 13:30:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c2fb9d
7
8 dev-python/pytest-xdist: bump to 1.28.0
9
10 Had to drop keywords because of new dev-python/filelock dep.
11
12 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
13 Package-Manager: Portage-2.3.66, Repoman-2.3.11
14
15 dev-python/pytest-xdist/Manifest | 1 +
16 .../pytest-xdist-1.28.0-strip-setuptools-scm.patch | 27 +++++++++++++++
17 dev-python/pytest-xdist/pytest-xdist-1.28.0.ebuild | 38 ++++++++++++++++++++++
18 3 files changed, 66 insertions(+)
19
20 diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
21 index b0ea341f170..ba920c0df35 100644
22 --- a/dev-python/pytest-xdist/Manifest
23 +++ b/dev-python/pytest-xdist/Manifest
24 @@ -1 +1,2 @@
25 DIST pytest-xdist-1.23.2.tar.gz 59932 BLAKE2B f2cf73914cf095217fb8b472f5e5f7918435c75f8da1694cc7ceb920ac3a7390d84bea93cca558ba26cf3d14a01815374eab9ea03a137a8a9f5dba2f2d4453a8 SHA512 4aae9a6d74e53a29630d0233d0a903d008023e322de726ef7ab7cf4865f428942f96cc65264e19726cb6213264edaa747da2cb6f368989417ba821f2a3f9b654
26 +DIST pytest-xdist-1.28.0.tar.gz 61486 BLAKE2B ef8157079ea890342cd566f327588148fa898a3404e3edcffb60ba8ba37d9473b4c2a47fc737f7bb074042c6aadd737ac51f348ce79a718eb446036016cd5e23 SHA512 89b8885103a944ae72535de40028db052f76631ade6f969489d3dc3a1a61a3233df6655d0905d9f5253f23740a15aea824b460c680e79c16f275b31cb2abd6ad
27
28 diff --git a/dev-python/pytest-xdist/files/pytest-xdist-1.28.0-strip-setuptools-scm.patch b/dev-python/pytest-xdist/files/pytest-xdist-1.28.0-strip-setuptools-scm.patch
29 new file mode 100644
30 index 00000000000..8ef0272d2b5
31 --- /dev/null
32 +++ b/dev-python/pytest-xdist/files/pytest-xdist-1.28.0-strip-setuptools-scm.patch
33 @@ -0,0 +1,27 @@
34 +diff --git a/setup.py b/setup.py
35 +index 17abe9a..81422db 100644
36 +--- a/setup.py
37 ++++ b/setup.py
38 +@@ -6,9 +6,13 @@ install_requires = ["execnet>=1.1", "pytest>=4.4.0", "pytest-forked", "six"]
39 + with open("README.rst") as f:
40 + long_description = f.read()
41 +
42 ++import os
43 ++with open("xdist/_version.py", 'wt') as fp:
44 ++ fp.write('version = "{}"'.format(os.environ['PV']))
45 ++
46 + setup(
47 + name="pytest-xdist",
48 +- use_scm_version={"write_to": "xdist/_version.py"},
49 ++ version=os.environ['PV'],
50 + description="pytest xdist plugin for distributed testing"
51 + " and loop-on-failing modes",
52 + long_description=long_description,
53 +@@ -24,7 +28,6 @@ setup(
54 + zip_safe=False,
55 + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
56 + install_requires=install_requires,
57 +- setup_requires=["setuptools_scm"],
58 + classifiers=[
59 + "Development Status :: 5 - Production/Stable",
60 + "Framework :: Pytest",
61
62 diff --git a/dev-python/pytest-xdist/pytest-xdist-1.28.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.28.0.ebuild
63 new file mode 100644
64 index 00000000000..9564d797693
65 --- /dev/null
66 +++ b/dev-python/pytest-xdist/pytest-xdist-1.28.0.ebuild
67 @@ -0,0 +1,38 @@
68 +# Copyright 1999-2019 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
74 +
75 +inherit distutils-r1
76 +
77 +DESCRIPTION="Distributed testing and loop-on-failing modes"
78 +HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
79 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
80 +
81 +SLOT="0"
82 +LICENSE="MIT"
83 +KEYWORDS="~amd64 ~sparc ~x86"
84 +IUSE="test"
85 +
86 +RDEPEND="
87 + dev-python/execnet[${PYTHON_USEDEP}]
88 + >=dev-python/pytest-4.4[${PYTHON_USEDEP}]
89 + dev-python/pytest-forked[${PYTHON_USEDEP}]
90 + dev-python/six[${PYTHON_USEDEP}]
91 +"
92 +
93 +DEPEND="${RDEPEND}
94 + dev-python/setuptools[${PYTHON_USEDEP}]
95 + test? ( dev-python/filelock[${PYTHON_USEDEP}] )
96 +"
97 +
98 +PATCHES=(
99 + "${FILESDIR}/${PN}-1.28.0-strip-setuptools-scm.patch"
100 +)
101 +
102 +python_test() {
103 + distutils_install_for_testing
104 + pytest -vv testing || die "Tests failed under ${EPYTHON}"
105 +}