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/libtmux/, dev-python/libtmux/files/
Date: Fri, 23 Sep 2022 05:06:01
Message-Id: 1663909553.fbc951dc7233310828ca43457f1a581ce9164efc.chutzpah@gentoo
1 commit: fbc951dc7233310828ca43457f1a581ce9164efc
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 05:05:26 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 05:05:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbc951dc
7
8 dev-python/libtmux: add 0.15.4
9
10 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
11
12 dev-python/libtmux/Manifest | 1 +
13 .../libtmux/files/libtmux-0.15.4-no-doctest.patch | 13 ++++++
14 dev-python/libtmux/libtmux-0.15.4.ebuild | 52 ++++++++++++++++++++++
15 3 files changed, 66 insertions(+)
16
17 diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
18 index 74da2767fb07..97fa5b5b0937 100644
19 --- a/dev-python/libtmux/Manifest
20 +++ b/dev-python/libtmux/Manifest
21 @@ -1 +1,2 @@
22 DIST libtmux-0.14.2.gh.tar.gz 234682 BLAKE2B e93b0a280c3cfdfab4c9a313d251d15665c530813f00aa78151efe62a6a566f2d8986afed015de4a8be80b48f31ac197e98d3efa592eb8895e8d9626ff34ef72 SHA512 1565529ecf555dac8f896146e2d802c0e5460458ea1da6ba5496d5d2c394f56cc8c5f7650c5d4aebd1750659bbdc529e439e60dff6a0ccef8806bb65305d2421
23 +DIST libtmux-0.15.4.gh.tar.gz 237928 BLAKE2B b12643336717fbba079df884aa7b8a3029c393afd0dbcfe7be07d7c08f15a8252ec73479f5423fbe86efe63fb990529f68ed5690b40e2c7938df7edd2c6e51e5 SHA512 41adc83fde64a00385bb6885243b50c73e4cedd4d0860b1eb5c9a533b73d2f7fedef1e23f1b994c809abb834b666931c3fbdccd417969865172777e34a1cc5fe
24
25 diff --git a/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch b/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch
26 new file mode 100644
27 index 000000000000..ecfebaa450ca
28 --- /dev/null
29 +++ b/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch
30 @@ -0,0 +1,13 @@
31 +diff --git a/setup.cfg b/setup.cfg
32 +index 2547e73..3659616 100644
33 +--- a/setup.cfg
34 ++++ b/setup.cfg
35 +@@ -19,7 +19,7 @@ line_length = 88
36 + [tool:pytest]
37 + filterwarnings =
38 + ignore:.* Use packaging.version.*:DeprecationWarning::
39 +-addopts = --tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest
40 ++addopts = --tb=short --no-header --showlocals --reruns 2 -p no:doctest
41 + doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE
42 + testpaths =
43 + src/libtmux
44
45 diff --git a/dev-python/libtmux/libtmux-0.15.4.ebuild b/dev-python/libtmux/libtmux-0.15.4.ebuild
46 new file mode 100644
47 index 000000000000..c26d228b0f9e
48 --- /dev/null
49 +++ b/dev-python/libtmux/libtmux-0.15.4.ebuild
50 @@ -0,0 +1,52 @@
51 +# Copyright 1999-2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +DISTUTILS_USE_PEP517=poetry
57 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
58 +
59 +inherit distutils-r1
60 +
61 +DESCRIPTION="python api for tmux"
62 +HOMEPAGE="https://libtmux.git-pull.com/"
63 +SRC_URI="
64 + https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz
65 + -> ${P}.gh.tar.gz
66 +"
67 +
68 +LICENSE="MIT"
69 +SLOT="0"
70 +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
71 +
72 +RDEPEND="
73 + >=app-misc/tmux-3.0a
74 +"
75 +BDEPEND="
76 + test? (
77 + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
78 + dev-python/pytest-mock[${PYTHON_USEDEP}]
79 + dev-python/twine[${PYTHON_USEDEP}]
80 + )
81 +"
82 +
83 +PATCHES=(
84 + "${FILESDIR}/libtmux-0.15.4-no-doctest.patch"
85 +)
86 +
87 +distutils_enable_tests pytest
88 +
89 +EPYTEST_DESELECT=(
90 + libtmux/pane.py::libtmux.pane.Pane.send_keys
91 +)
92 +
93 +python_prepare_all() {
94 + local issues="https://github.com/tmux-python/libtmux/issues/"
95 + sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|" CHANGES || die
96 + rm requirements/doc.txt || die
97 +
98 + # increase timeouts for tests
99 + sed -e 's/0.01/0.1/' -i tests/test_test.py || die
100 +
101 + distutils-r1_python_prepare_all
102 +}