Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ansible-compat/
Date: Tue, 11 Jan 2022 18:38:33
Message-Id: 1641926300.f99978d822bd5f39598909e79458f55e71c77bca.marecki@gentoo
1 commit: f99978d822bd5f39598909e79458f55e71c77bca
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 11 18:37:57 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 11 18:38:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99978d8
7
8 dev-python/ansible-compat: add 1.0.0
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 dev-python/ansible-compat/Manifest | 1 +
13 .../ansible-compat/ansible-compat-1.0.0.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/ansible-compat/Manifest b/dev-python/ansible-compat/Manifest
17 index 942408e367d8..5471b0454288 100644
18 --- a/dev-python/ansible-compat/Manifest
19 +++ b/dev-python/ansible-compat/Manifest
20 @@ -1 +1,2 @@
21 DIST ansible-compat-0.5.0.tar.gz 32913 BLAKE2B 468dbcf20865225c76896dd8aad6f4b9a749b7a45d661484f89e2eaab4416b29f2e0ea0477b86ea52193165cd23180a79ebd5adac571e0b7d659096e84c27bcb SHA512 3ea219ceda313daf923d11ff45c31a760ddbae7ac782b1f89316eb29960a8028fab4e7e242fa0247c6ef5824d71ff9f22ae8956af73dda261a69713110e3db8e
22 +DIST ansible-compat-1.0.0.tar.gz 34729 BLAKE2B 56eb32314e310777e454a5f5e020cc4dfc485e6d5720d45e99734ce8cf238377f1ff443f9f78f5b9de947944564a7001294907c0e186fe94cd4561d4d348723e SHA512 dd02b47acf38b378016acbe6f2e6494df1cbf68d88a0cb685a5f594ee24b23af1c4d14878090ba7ea69f76185afb57eeb546cc40a6038171eebc991401c6e241
23
24 diff --git a/dev-python/ansible-compat/ansible-compat-1.0.0.ebuild b/dev-python/ansible-compat/ansible-compat-1.0.0.ebuild
25 new file mode 100644
26 index 000000000000..e963e3ab20d9
27 --- /dev/null
28 +++ b/dev-python/ansible-compat/ansible-compat-1.0.0.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Contains functions that facilitate working with various versions of Ansible"
41 +HOMEPAGE="https://pypi.org/project/ansible-compat/ https://github.com/ansible-community/ansible-compat/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="
49 + >=app-admin/ansible-base-2.9.0[${PYTHON_USEDEP}]
50 + dev-python/pyyaml[${PYTHON_USEDEP}]
51 + >=dev-python/subprocess-tee-0.3.5[${PYTHON_USEDEP}]
52 +"
53 +BDEPEND="$(python_gen_cond_dep '
54 + >=dev-python/setuptools_scm-6.3.1[${PYTHON_USEDEP}]
55 + >=dev-python/setuptools_scm_git_archive-1.0[${PYTHON_USEDEP}]
56 + test? (
57 + dev-python/flaky[${PYTHON_USEDEP}]
58 + dev-python/pytest-markdown[${PYTHON_USEDEP}]
59 + dev-python/pytest-mock[${PYTHON_USEDEP}]
60 + dev-python/pytest-plus[${PYTHON_USEDEP}]
61 + )
62 +')"
63 +
64 +# All these tests attempt to connect to galaxy.ansible.com
65 +EPYTEST_DESELECT=(
66 + test/test_runtime.py::test_install_collection
67 + test/test_runtime.py::test_install_collection_dest
68 + test/test_runtime.py::test_prepare_environment_with_collections
69 + test/test_runtime.py::test_prerun_reqs_v1
70 + test/test_runtime.py::test_prerun_reqs_v2
71 + test/test_runtime.py::test_require_collection_no_cache_dir
72 + test/test_runtime.py::test_require_collection_wrong_version
73 + test/test_runtime.py::test_require_collection
74 + test/test_runtime.py::test_upgrade_collection
75 + test/test_runtime_example.py::test_runtime
76 +)
77 +
78 +# Requires currently unpackaged Sphinx extension myst_parser
79 +#distutils_enable_sphinx docs 'dev-python/sphinx_ansible_theme'
80 +
81 +distutils_enable_tests pytest