Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-salt-factories/, dev-python/pytest-salt-factories/files/
Date: Fri, 04 Sep 2020 01:45:42
Message-Id: 1599183929.d990b8600f1771056a7d84d3f5e37ff79138d457.chutzpah@gentoo
1 commit: d990b8600f1771056a7d84d3f5e37ff79138d457
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Fri Sep 4 01:45:22 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 01:45:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d990b860
7
8 dev-python/pytest-salt-factories: New package
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-3.0.5, Repoman-3.0.1
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/pytest-salt-factories/Manifest | 1 +
15 .../files/pytest-salt-factories-0.92.0-setup.patch | 13 ++++++++
16 dev-python/pytest-salt-factories/metadata.xml | 8 +++++
17 .../pytest-salt-factories-0.92.0.ebuild | 37 ++++++++++++++++++++++
18 4 files changed, 59 insertions(+)
19
20 diff --git a/dev-python/pytest-salt-factories/Manifest b/dev-python/pytest-salt-factories/Manifest
21 new file mode 100644
22 index 00000000000..af8b1dec4dd
23 --- /dev/null
24 +++ b/dev-python/pytest-salt-factories/Manifest
25 @@ -0,0 +1 @@
26 +DIST pytest-salt-factories-0.92.0.tar.gz 112049 BLAKE2B 054ec70df87bb1c1ccd4217ddf66b1efa1329d95c72cc40a633b5516afbe5bc80b4210560438e039def40a5c4aec3730a36f83c7911fd3a12a7bd5d33d388986 SHA512 308a446c870528437967eb5b3167861818311683dd9c4f55af8aa1766cde29ab438e5bf0ba922933d893f1a5469af4b827c422e59adb12cb2b422302550dfdd5
27
28 diff --git a/dev-python/pytest-salt-factories/files/pytest-salt-factories-0.92.0-setup.patch b/dev-python/pytest-salt-factories/files/pytest-salt-factories-0.92.0-setup.patch
29 new file mode 100644
30 index 00000000000..d8d1a915a78
31 --- /dev/null
32 +++ b/dev-python/pytest-salt-factories/files/pytest-salt-factories-0.92.0-setup.patch
33 @@ -0,0 +1,13 @@
34 +diff --git a/setup.py b/setup.py
35 +index d7cab46..1321f06 100644
36 +--- a/setup.py
37 ++++ b/setup.py
38 +@@ -51,7 +51,7 @@ setup(
39 + url="https://github.com/saltstack/pytest-salt-factories",
40 + description="Pytest Salt Plugin",
41 + long_description=read("README.rst"),
42 +- packages=find_packages(),
43 ++ packages=find_packages(exclude=['tests', 'tests.*']),
44 + cmdclass=versioneer.get_cmdclass(),
45 + install_requires=parse_requirements(),
46 + extras_require={"docker": ["docker"], "salt": ["salt>=3000.1"]},
47
48 diff --git a/dev-python/pytest-salt-factories/metadata.xml b/dev-python/pytest-salt-factories/metadata.xml
49 new file mode 100644
50 index 00000000000..cee379b1540
51 --- /dev/null
52 +++ b/dev-python/pytest-salt-factories/metadata.xml
53 @@ -0,0 +1,8 @@
54 +<?xml version="1.0" encoding="UTF-8"?>
55 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
56 +<pkgmetadata>
57 + <maintainer type="person">
58 + <email>chutzpah@g.o</email>
59 + <name>Patrick McLean</name>
60 + </maintainer>
61 +</pkgmetadata>
62
63 diff --git a/dev-python/pytest-salt-factories/pytest-salt-factories-0.92.0.ebuild b/dev-python/pytest-salt-factories/pytest-salt-factories-0.92.0.ebuild
64 new file mode 100644
65 index 00000000000..371c83a76ec
66 --- /dev/null
67 +++ b/dev-python/pytest-salt-factories/pytest-salt-factories-0.92.0.ebuild
68 @@ -0,0 +1,37 @@
69 +# Copyright 2020 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +PYTHON_COMPAT=( python3_{7..8} )
75 +DISTUTILS_USE_SETUPTOOLS=rdepend
76 +inherit distutils-r1
77 +
78 +DESCRIPTION="The new generation of the pytest-salt Plugin"
79 +HOMEPAGE="https://github.com/saltstack/pytest-salt-factories"
80 +SRC_URI="https://github.com/saltstack/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
81 +
82 +LICENSE="Apache-2.0"
83 +SLOT="0"
84 +KEYWORDS="~amd64 ~x86"
85 +IUSE="test"
86 +
87 +RDEPEND="
88 + >=dev-python/pytest-4.6.6[${PYTHON_USEDEP}]
89 + dev-python/pytest-tempdir[${PYTHON_USEDEP}]
90 + dev-python/psutil[${PYTHON_USEDEP}]
91 + dev-python/pyzmq[${PYTHON_USEDEP}]
92 + dev-python/msgpack[${PYTHON_USEDEP}]
93 +"
94 +BDEPEND="${RDEPEND}
95 + test? ( >=app-admin/salt-3000.0[${PYTHON_USEDEP}] )
96 +"
97 +
98 +# pytest just bombs
99 +RESTRICT="test"
100 +
101 +PATCHES=(
102 + "${FILESDIR}/pytest-salt-factories-0.92.0-setup.patch"
103 +)
104 +
105 +distutils_enable_tests pytest