Skip to content

Commit 6820c66

Browse files
committed
Merge branch 'libtmux-0.7.1'
2 parents ba46318 + a9ad62b commit 6820c66

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22

33
sudo: false
44
python:
5-
- 2.6
65
- 2.7
76
- 3.3
87
- 3.4

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ Project details
137137
---------------
138138

139139
============== ==========================================================
140-
tmux support 1.8, 1.9a, 2.0, 2.1, 2.2, 2.3
141-
python support 2.6, 2.7, >= 3.3, pypy, pypy3
140+
tmux support 1.8, 1.9a, 2.0, 2.1, 2.2, 2.3, 2.4
141+
python support 2.7, >= 3.3, pypy, pypy3
142142
config support yaml, json, python dict
143143
Source https://github.com/tony/tmuxp
144144
Docs http://tmuxp.git-pull.com

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kaptan>=0.5.7
2-
libtmux==0.6.5 # Updated from 0.6.4
2+
libtmux==0.7.1 # Updated from 0.6.5
33
click==6.7
44
colorama==0.3.9

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def run_tests(self):
6161
'Environment :: Web Environment',
6262
'Intended Audience :: Developers',
6363
'Programming Language :: Python',
64-
'Programming Language :: Python :: 2.6',
6564
'Programming Language :: Python :: 2.7',
6665
'Programming Language :: Python :: 3.3',
6766
'Programming Language :: Python :: 3.4',

tests/test_workspacebuilder.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
from . import fixtures_dir
1414
from libtmux import Window
15+
from libtmux.common import has_gte_version
1516
from libtmux.test import temp_session
1617
from tmuxp import config, exc
1718
from tmuxp._compat import text_type
@@ -242,6 +243,9 @@ def test_window_options(session):
242243
sconfig = sconfig.import_config(yaml_config).get()
243244
sconfig = config.expand(sconfig)
244245

246+
if has_gte_version('2.3'):
247+
sconfig['windows'][0]['options']['pane-border-format'] = ' #P '
248+
245249
builder = WorkspaceBuilder(sconf=sconfig)
246250

247251
window_count = len(session._windows) # current window count
@@ -253,6 +257,8 @@ def test_window_options(session):
253257
assert len(s._windows) == window_count
254258
assert isinstance(w, Window)
255259
assert w.show_window_option('main-pane-height') == 5
260+
if has_gte_version('2.3'):
261+
assert w.show_window_option('pane-border-format') == ' #P '
256262

257263
assert len(s._windows) == window_count
258264
window_count += 1
@@ -262,7 +268,6 @@ def test_window_options(session):
262268
@pytest.mark.flaky(reruns=5)
263269
def test_window_options_after(session):
264270
yaml_config = loadfixture("workspacebuilder/window_options_after.yaml")
265-
s = session
266271
sconfig = kaptan.Kaptan(handler='yaml')
267272
sconfig = sconfig.import_config(yaml_config).get()
268273
sconfig = config.expand(sconfig)
@@ -274,8 +279,8 @@ def assert_last_line(p, s):
274279
correct = False
275280
for _ in range(10):
276281
pane_out = p.cmd('capture-pane', '-p', '-J').stdout
277-
# delete trailing empty lines for tmux 1.8...
278-
while not pane_out[-1].strip(): pane_out.pop()
282+
while not pane_out[-1].strip(): # delete trailing lines tmux 1.8
283+
pane_out.pop()
279284
if len(pane_out) > 1 and pane_out[-2].strip() == s:
280285
correct = True
281286
break
@@ -291,10 +296,11 @@ def assert_last_line(p, s):
291296
for i, pane in enumerate(session.attached_window.panes):
292297
assert assert_last_line(pane, str(i)), \
293298
"Initial command did not execute properly/" + str(i)
294-
pane.cmd('send-keys', 'Up') # Will repeat echo
295-
pane.enter() # in each iteration
296-
assert assert_last_line(pane, str(i)), \
297-
"Repeated command did not execute properly/" + str(i)
299+
pane.cmd('send-keys', 'Up') # Will repeat echo
300+
pane.enter() # in each iteration
301+
assert assert_last_line(pane, str(i)), (
302+
"Repeated command did not execute properly/" + str(i)
303+
)
298304

299305
session.cmd('send-keys', ' echo moo')
300306
session.cmd('send-keys', 'Enter')

tmuxp/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import click
1515
import kaptan
1616
from click.exceptions import FileError
17-
from libtmux.common import has_required_tmux_version, which
17+
from libtmux.common import has_minimum_version, which
1818
from libtmux.exc import TmuxCommandNotFound
1919
from libtmux.server import Server
2020

@@ -318,7 +318,7 @@ def cli(log_level):
318318
See detailed documentation and examples at:
319319
http://tmuxp.readthedocs.io/en/latest/"""
320320
try:
321-
has_required_tmux_version()
321+
has_minimum_version()
322322
except TmuxCommandNotFound:
323323
click.echo('tmux not found. tmuxp requires you install tmux first.')
324324
sys.exit()

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26, py27, py33, py34, py35
2+
envlist = py27, py33, py34, py35, py36
33

44
[testenv]
55
commands = make test []

0 commit comments

Comments
 (0)