dev-python/libtmux: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-10-22 00:47:33 +02:00
parent 006c49deb5
commit 287102f746
3 changed files with 0 additions and 85 deletions

View File

@@ -1,2 +1 @@
DIST libtmux-v0.8.2.tar.gz 117077 BLAKE2B 52e9c7c47911797e9d2446e7fbc836f9482912e255c05d9b329d4a33f5f03d0bfad4df492902eff5605180f90efcd81a7e432174646cb2051b0f9dfa6615a91a SHA512 e5f3768f4ddd746c5380a92899961be05b1b6c567d9333720b0fd9ed124131671bbecf1c04a7c4e658092424b6dc89dd656ba559385b0a6f673f9895dd6c829c
DIST libtmux-v0.8.3.tar.gz 131928 BLAKE2B 7979dc907d5c7805cf56422aa0fed554c89f0b50cf1f13b150809a1c7e24b0eab125701eada0431212afccc26f6479642c886b3f701c8c2ffc9c3ebb7d08c4cc SHA512 f7c5a84f16b400db672318d3c0b79cd8f328a0096d32349f6ce9360d72eecd75ed9915af5c37950adadd81943130b543716d718366522efee7780813a2c1a5d6

View File

@@ -1,47 +0,0 @@
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')

View File

@@ -1,37 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} 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"
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
}