* [gentoo-commits] repo/gentoo:master commit in: dev-python/libtmux/, dev-python/libtmux/files/
@ 2019-12-03 2:19 Patrick McLean
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McLean @ 2019-12-03 2:19 UTC (permalink / raw
To: gentoo-commits
commit: 1e4bb775d7948e3ea507c97d16dffce744bce3a7
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Dec 3 01:52:08 2019 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Dec 3 02:18:55 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4bb775
dev-python/libtmux-0.8.2-r1: Revbump, enable tests, add py38 and pypy{,3}
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
dev-python/libtmux/Manifest | 1 +
dev-python/libtmux/files/libtmux-0.8.2-tests.patch | 47 ++++++++++++++++++++++
dev-python/libtmux/libtmux-0.8.2-r1.ebuild | 37 +++++++++++++++++
3 files changed, 85 insertions(+)
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index 532d74be787..e24e91e7cab 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -1 +1,2 @@
DIST libtmux-0.8.2.tar.gz 37725 BLAKE2B 909a34b1a77bb221e6fd0ca6ef9075cc9ddd4f327cecf579d8aaff768668c9a71cff07a6567cdc0aed368482188936626dfc3f35a0b6723cd962294e2fc9d5ec SHA512 02156579c91e44e312ebf162b5314381645177cba244294b3251044be35c84b996263508cdedfd25ea2c182a87a3ff457154b9ed06e919e7149583b119a5e227
+DIST libtmux-v0.8.2.tar.gz 117077 BLAKE2B 52e9c7c47911797e9d2446e7fbc836f9482912e255c05d9b329d4a33f5f03d0bfad4df492902eff5605180f90efcd81a7e432174646cb2051b0f9dfa6615a91a SHA512 e5f3768f4ddd746c5380a92899961be05b1b6c567d9333720b0fd9ed124131671bbecf1c04a7c4e658092424b6dc89dd656ba559385b0a6f673f9895dd6c829c
diff --git a/dev-python/libtmux/files/libtmux-0.8.2-tests.patch b/dev-python/libtmux/files/libtmux-0.8.2-tests.patch
new file mode 100644
index 00000000000..c402af58ea0
--- /dev/null
+++ b/dev-python/libtmux/files/libtmux-0.8.2-tests.patch
@@ -0,0 +1,47 @@
+diff --git a/tests/test_session.py b/tests/test_session.py
+index 79c9861..d83b095 100644
+--- a/tests/test_session.py
++++ b/tests/test_session.py
+@@ -131,8 +131,8 @@ def test_empty_session_option_returns_None(session):
+
+
+ def test_show_option_unknown(session):
+- """Session.show_option raises UnknownOption for invalid option."""
+- with pytest.raises(exc.UnknownOption):
++ """Session.show_option raises InvalidOption for invalid option."""
++ with pytest.raises(exc.InvalidOption):
+ session.show_option('moooz')
+
+
+@@ -149,12 +149,12 @@ def test_set_option_ambigous(session):
+
+
+ def test_set_option_invalid(session):
+- """Session.set_option raises UnknownOption for invalid option."""
++ """Session.set_option raises InvalidOption for invalid option."""
+ if has_gte_version('2.4'):
+ with pytest.raises(exc.InvalidOption):
+ session.set_option('afewewfew', 43)
+ else:
+- with pytest.raises(exc.UnknownOption):
++ with pytest.raises(exc.InvalidOption):
+ session.set_option('afewewfew', 43)
+
+
+diff --git a/tests/test_window.py b/tests/test_window.py
+index 5d0a674..896fadf 100644
+--- a/tests/test_window.py
++++ b/tests/test_window.py
+@@ -210,10 +210,10 @@ def test_show_window_option(session):
+
+
+ def test_show_window_option_unknown(session):
+- """Window.show_window_option raises UnknownOption for bad option key."""
++ """Window.show_window_option raises InvalidOption for bad option key."""
+ window = session.new_window(window_name='test_window')
+
+- with pytest.raises(exc.UnknownOption):
++ with pytest.raises(exc.InvalidOption):
+ window.show_window_option('moooz')
+
+
diff --git a/dev-python/libtmux/libtmux-0.8.2-r1.ebuild b/dev-python/libtmux/libtmux-0.8.2-r1.ebuild
new file mode 100644
index 00000000000..8498cecd8d1
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.8.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="python api for tmux"
+HOMEPAGE="https://libtmux.git-pull.com/"
+SRC_URI="https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz -> ${PN}-v${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="app-misc/tmux"
+
+PATCHES=(
+ "${FILESDIR}/libtmux-0.8.2-tests.patch"
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx doc \
+ dev-python/alagitpull \
+ dev-python/docutils
+
+python_prepare_all() {
+ # avoid a dependency on sphinx_issues
+ local issues="https://github.com/tmux-python/libtmux/issues/"
+ sed -i "s:'sphinx_issues',::" doc/conf.py || die
+ sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|" CHANGES || die
+ rm requirements/doc.txt || die
+
+ distutils-r1_python_prepare_all
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/libtmux/, dev-python/libtmux/files/
@ 2021-06-22 20:33 Patrick McLean
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McLean @ 2021-06-22 20:33 UTC (permalink / raw
To: gentoo-commits
commit: ef76e56ff2eb8e8f5df09b1af4e1a4e7a7fc01a8
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 18 19:10:32 2021 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Jun 22 20:32:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef76e56f
dev-python/libtmux-0.10.1: Version bump
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
dev-python/libtmux/Manifest | 1 +
.../files/libtmux-0.10.0-more-specific-ids.patch | 26 ++++++++++++++
dev-python/libtmux/libtmux-0.10.1.ebuild | 40 ++++++++++++++++++++++
3 files changed, 67 insertions(+)
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index 472a33f70a1..affd0cf7028 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -1,2 +1,3 @@
+DIST libtmux-v0.10.1.tar.gz 220592 BLAKE2B 56028bca4e6a8df788d9fc9a112731fbf17f3617410d0632ac9d3f000ca130d2f4b21c377611e1ef95bcf493fa14f885cbcd7aa986d9c1b89d2b972fb4173f78 SHA512 67ed162546a3dc5aa51e91ac03f015532d67847b0400766b442691a39a1a751c59a6b37811f6422ed713fca6a071767a8e13694b2722489d2e56cda711010228
DIST libtmux-v0.8.5.tar.gz 222445 BLAKE2B 5af148555eb89c66bdc66f3f214967f7e901d9b86ea85e02a9fba64f2eb3559828519ba8120eaee5eb86ec75bee2e599a08384dd096de8dc0969129c58172c1e SHA512 d456725c3ca41a672ee5239bfb5f42a262674638d308fa141627995be8b8fe348bb8713b735eb05c5a3cc73f35fe3f6fac12024f6254c950a3048b2e07606363
DIST libtmux-v0.9.0.tar.gz 215649 BLAKE2B fdf6f424ce8eead5f0f19cb53bfd438e9cd7b5326e57e676281f74cedac6e1bcd7cded27e4ef226d2fc3bc09bbb57ff0e63aaa7d901ab910b6a890275c7fe63d SHA512 d47078300614b2a286eab6063c9492baa115787b917d2fb2e4188032ce580f495f0e7f4a14383407c61063a77d640092d117ba43974524f18da024dfc687c8a5
diff --git a/dev-python/libtmux/files/libtmux-0.10.0-more-specific-ids.patch b/dev-python/libtmux/files/libtmux-0.10.0-more-specific-ids.patch
new file mode 100644
index 00000000000..ca5817bda5f
--- /dev/null
+++ b/dev-python/libtmux/files/libtmux-0.10.0-more-specific-ids.patch
@@ -0,0 +1,26 @@
+diff --git a/libtmux/session.py b/libtmux/session.py
+index cd6af00..e4c02e2 100644
+--- a/libtmux/session.py
++++ b/libtmux/session.py
+@@ -263,7 +263,7 @@ class Session(TmuxMappingObject, TmuxRelationalObject, EnvironmentMixin):
+ if isinstance(target_window, int):
+ target = '-t%s:%d' % (self.name, target_window)
+ else:
+- target = '-t%s' % target_window
++ target = '-t%s:%s' % (self.name, target_window)
+
+ proc = self.cmd('kill-window', target)
+
+diff --git a/libtmux/window.py b/libtmux/window.py
+index e62e8df..f452575 100644
+--- a/libtmux/window.py
++++ b/libtmux/window.py
+@@ -366,7 +366,7 @@ class Window(TmuxMappingObject, TmuxRelationalObject):
+ if target_pane in ['-l', '-U', '-D', '-L', '-R']:
+ proc = self.cmd('select-pane', '-t%s' % self.id, target_pane)
+ else:
+- proc = self.cmd('select-pane', '-t%s' % target_pane)
++ proc = self.cmd('select-pane', '-t%%%s' % target_pane)
+
+ if proc.stderr:
+ raise exc.LibTmuxException(proc.stderr)
diff --git a/dev-python/libtmux/libtmux-0.10.1.ebuild b/dev-python/libtmux/libtmux-0.10.1.ebuild
new file mode 100644
index 00000000000..4f183304d9d
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.10.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
+DISTUTILS_USE_SETUPTOOLS=bdepend
+inherit distutils-r1
+
+DESCRIPTION="python api for tmux"
+HOMEPAGE="https://libtmux.git-pull.com/"
+SRC_URI="https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz -> ${PN}-v${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+RDEPEND=">=app-misc/tmux-3.0a"
+BDEPEND="
+ test? (
+ $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python3_{7..9})
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/twine[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/libtmux-0.10.0-more-specific-ids.patch"
+)
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ local issues="https://github.com/tmux-python/libtmux/issues/"
+ sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|" CHANGES || die
+ rm requirements/doc.txt || die
+
+ distutils-r1_python_prepare_all
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/libtmux/, dev-python/libtmux/files/
@ 2022-09-23 5:05 Patrick McLean
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McLean @ 2022-09-23 5:05 UTC (permalink / raw
To: gentoo-commits
commit: fbc951dc7233310828ca43457f1a581ce9164efc
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 23 05:05:26 2022 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Fri Sep 23 05:05:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbc951dc
dev-python/libtmux: add 0.15.4
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
dev-python/libtmux/Manifest | 1 +
.../libtmux/files/libtmux-0.15.4-no-doctest.patch | 13 ++++++
dev-python/libtmux/libtmux-0.15.4.ebuild | 52 ++++++++++++++++++++++
3 files changed, 66 insertions(+)
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index 74da2767fb07..97fa5b5b0937 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -1 +1,2 @@
DIST libtmux-0.14.2.gh.tar.gz 234682 BLAKE2B e93b0a280c3cfdfab4c9a313d251d15665c530813f00aa78151efe62a6a566f2d8986afed015de4a8be80b48f31ac197e98d3efa592eb8895e8d9626ff34ef72 SHA512 1565529ecf555dac8f896146e2d802c0e5460458ea1da6ba5496d5d2c394f56cc8c5f7650c5d4aebd1750659bbdc529e439e60dff6a0ccef8806bb65305d2421
+DIST libtmux-0.15.4.gh.tar.gz 237928 BLAKE2B b12643336717fbba079df884aa7b8a3029c393afd0dbcfe7be07d7c08f15a8252ec73479f5423fbe86efe63fb990529f68ed5690b40e2c7938df7edd2c6e51e5 SHA512 41adc83fde64a00385bb6885243b50c73e4cedd4d0860b1eb5c9a533b73d2f7fedef1e23f1b994c809abb834b666931c3fbdccd417969865172777e34a1cc5fe
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
new file mode 100644
index 000000000000..ecfebaa450ca
--- /dev/null
+++ b/dev-python/libtmux/files/libtmux-0.15.4-no-doctest.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.cfg b/setup.cfg
+index 2547e73..3659616 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -19,7 +19,7 @@ line_length = 88
+ [tool:pytest]
+ filterwarnings =
+ ignore:.* Use packaging.version.*:DeprecationWarning::
+-addopts = --tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest
++addopts = --tb=short --no-header --showlocals --reruns 2 -p no:doctest
+ doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE
+ testpaths =
+ src/libtmux
diff --git a/dev-python/libtmux/libtmux-0.15.4.ebuild b/dev-python/libtmux/libtmux-0.15.4.ebuild
new file mode 100644
index 000000000000..c26d228b0f9e
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.15.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="python api for tmux"
+HOMEPAGE="https://libtmux.git-pull.com/"
+SRC_URI="
+ https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
+
+RDEPEND="
+ >=app-misc/tmux-3.0a
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/twine[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/libtmux-0.15.4-no-doctest.patch"
+)
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ libtmux/pane.py::libtmux.pane.Pane.send_keys
+)
+
+python_prepare_all() {
+ local issues="https://github.com/tmux-python/libtmux/issues/"
+ sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|" CHANGES || die
+ rm requirements/doc.txt || die
+
+ # increase timeouts for tests
+ sed -e 's/0.01/0.1/' -i tests/test_test.py || die
+
+ distutils-r1_python_prepare_all
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-23 5:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-03 2:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/libtmux/, dev-python/libtmux/files/ Patrick McLean
-- strict thread matches above, loose matches on Subject: below --
2021-06-22 20:33 Patrick McLean
2022-09-23 5:05 Patrick McLean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox