Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-terminado for openSUSE:Factory checked in at 2022-03-06 18:15:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-terminado (Old) and /work/SRC/openSUSE:Factory/.python-terminado.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-terminado" Sun Mar 6 18:15:41 2022 rev:14 rq:959668 version:0.13.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-terminado/python-terminado.changes 2022-01-29 21:00:32.395296106 +0100 +++ /work/SRC/openSUSE:Factory/.python-terminado.new.1958/python-terminado.changes 2022-03-06 18:15:54.279827052 +0100 @@ -1,0 +2,10 @@ +Sat Mar 5 18:22:18 UTC 2022 - Arun Persaud <a...@gmx.de> + +- update to version 0.13.2: + * Bugs fixed + + Increase scrollback to 1000 #143 (@yusufbashi) + * Maintenance and upkeep improvements + + Add test for terminating the terminals and fix Windows terminal + shutdown behavior #142 (@blink1073) + +------------------------------------------------------------------- Old: ---- terminado-0.13.1.tar.gz New: ---- terminado-0.13.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-terminado.spec ++++++ --- /var/tmp/diff_new_pack.i629n3/_old 2022-03-06 18:15:55.699827245 +0100 +++ /var/tmp/diff_new_pack.i629n3/_new 2022-03-06 18:15:55.703827245 +0100 @@ -21,7 +21,7 @@ # Disable tests until random testing race condition fixed, see: https://github.com/jupyter/terminado/issues/21 %bcond_with tests Name: python-terminado -Version: 0.13.1 +Version: 0.13.2 Release: 0 Summary: Terminals served to termjs using Tornado websockets License: BSD-2-Clause ++++++ terminado-0.13.1.tar.gz -> terminado-0.13.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/CHANGELOG.md new/terminado-0.13.2/CHANGELOG.md --- old/terminado-0.13.1/CHANGELOG.md 2022-01-27 15:20:39.000000000 +0100 +++ new/terminado-0.13.2/CHANGELOG.md 2022-03-03 12:10:03.000000000 +0100 @@ -2,6 +2,26 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 0.13.2 + +([Full Changelog](https://github.com/jupyter/terminado/compare/v0.13.1...9db93006a960bc90c3cc6b3f53b5cba1251b5071)) + +### Bugs fixed + +- Increase scrollback to 1000 [#143](https://github.com/jupyter/terminado/pull/143) ([@yusufbashi](https://github.com/yusufbashi)) + +### Maintenance and upkeep improvements + +- Add test for terminating the terminals and fix Windows terminal shutdown behavior [#142](https://github.com/jupyter/terminado/pull/142) ([@blink1073](https://github.com/blink1073)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/jupyter/terminado/graphs/contributors?from=2022-01-27&to=2022-03-03&type=c)) + +[@andfoy](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3Aandfoy+updated%3A2022-01-27..2022-03-03&type=Issues) | [@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3Ablink1073+updated%3A2022-01-27..2022-03-03&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3Afcollonval+updated%3A2022-01-27..2022-03-03&type=Issues) | [@Wh1isper](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3AWh1isper+updated%3A2022-01-27..2022-03-03&type=Issues) | [@yusufbashi](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3Ayusufbashi+updated%3A2022-01-27..2022-03-03&type=Issues) + +<!-- <END NEW CHANGELOG ENTRY> --> + ## 0.13.1 ([Full Changelog](https://github.com/jupyter/terminado/compare/v0.13.0...b522de5796e56c98a74918873ff453f828fb123e)) @@ -16,8 +36,6 @@ [@minrk](https://github.com/search?q=repo%3Ajupyter%2Fterminado+involves%3Aminrk+updated%3A2022-01-27..2022-01-27&type=Issues) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 0.13.0 ([Full Changelog](https://github.com/jupyter/terminado/compare/v0.12.4...d663c886bf39880585f97a2f46e28c3d368ea0f3)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/PKG-INFO new/terminado-0.13.2/PKG-INFO --- old/terminado-0.13.1/PKG-INFO 2022-01-27 15:20:57.056231500 +0100 +++ new/terminado-0.13.2/PKG-INFO 2022-03-03 12:10:29.605031300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: terminado -Version: 0.13.1 +Version: 0.13.2 Summary: Tornado websocket backend for the Xterm.js Javascript terminal emulator library. Home-page: https://github.com/jupyter/terminado Author: Jupyter Development Team diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/pyproject.toml new/terminado-0.13.2/pyproject.toml --- old/terminado-0.13.1/pyproject.toml 2022-01-27 15:20:47.000000000 +0100 +++ new/terminado-0.13.2/pyproject.toml 2022-03-03 12:10:16.000000000 +0100 @@ -6,7 +6,7 @@ skip = ["check-links"] [tool.tbump.version] -current = "0.13.1" +current = "0.13.2" regex = ''' (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) ((?P<channel>a|b|rc|.dev)(?P<release>\d+))? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/terminado/__init__.py new/terminado-0.13.2/terminado/__init__.py --- old/terminado-0.13.1/terminado/__init__.py 2022-01-27 15:20:47.000000000 +0100 +++ new/terminado-0.13.2/terminado/__init__.py 2022-03-03 12:10:16.000000000 +0100 @@ -12,4 +12,4 @@ # Prevent a warning about no attached handlers in Python 2 logging.getLogger(__name__).addHandler(logging.NullHandler()) -__version__ = '0.13.1' +__version__ = '0.13.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/terminado/management.py new/terminado-0.13.2/terminado/management.py --- old/terminado-0.13.1/terminado/management.py 2022-01-27 15:20:39.000000000 +0100 +++ new/terminado-0.13.2/terminado/management.py 2022-03-03 12:10:03.000000000 +0100 @@ -25,6 +25,7 @@ except ImportError: try: from winpty import PtyProcess as PtyProcessUnicode + from winpty.enums import Backend except ImportError: PtyProcessUnicode = object preexec_fn = None @@ -41,10 +42,12 @@ def __init__(self, argv, env=[], cwd=None): self.clients = [] # Use read_buffer to store historical messages for reconnection - self.read_buffer = deque([], maxlen=20) + self.read_buffer = deque([], maxlen=1000) kwargs = dict(argv=argv, env=env, cwd=cwd) if preexec_fn is not None: kwargs["preexec_fn"] = preexec_fn + if os.name == 'nt': + kwargs.setdefault('backend', Backend.WinPTY) self.ptyproc = PtyProcessUnicode.spawn(**kwargs) # The output might not be strictly UTF-8 encoded, so # we replace the inner decoder of PtyProcessUnicode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/terminado/tests/basic_test.py new/terminado-0.13.2/terminado/tests/basic_test.py --- old/terminado-0.13.1/terminado/tests/basic_test.py 2022-01-27 15:20:39.000000000 +0100 +++ new/terminado-0.13.2/terminado/tests/basic_test.py 2022-03-03 12:10:03.000000000 +0100 @@ -90,17 +90,9 @@ await self.write_stdin("echo $$\r") (stdout, extra) = await self.read_stdout() if os.name == 'nt': - print(repr(stdout)) - match = re.search(r'echo \$\$\\x1b\[71X\\x1b\[71C\\r\\n(\d+)', repr(stdout)) - if match is None: - match = re.search(r'echo \$\$ \\r\\n(\d+)', repr(stdout)) - if match is None: - match = re.search( - r'echo \$\$ \\r\\n\\x1b\[\?25h\\x1b\[\?25l(\d+)', - repr(stdout)) + match = re.search(r'echo \$\$\\.*?\\r\\n(\d+)', repr(stdout)) pid = int(match.groups()[0]) else: - print('stdout=%r, extra=%r' % (stdout, extra)) pid = int(stdout.split('\n')[1]) return pid @@ -216,6 +208,12 @@ self.assertEqual(pids[2], pids[3]) self.assertNotEqual(pids[0], pids[3]) + terminal = self.named_tm.terminals["1"] + killed = await terminal.terminate(True) + assert killed + assert not terminal.ptyproc.isalive() + assert terminal.ptyproc.closed + @tornado.testing.gen_test @pytest.mark.skipif('linux' not in platform, reason='It only works on Linux') async def test_max_terminals(self): @@ -235,6 +233,10 @@ pids = await self.get_pids(tms) self.assertEqual(pids[0], pids[1]) + killed = await self.single_tm.terminal.terminate(True) + assert killed + assert self.single_tm.terminal.ptyproc.closed + class UniqueTermTests(TermTestCase): @tornado.testing.gen_test async def test_unique_processes(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terminado-0.13.1/terminado.egg-info/PKG-INFO new/terminado-0.13.2/terminado.egg-info/PKG-INFO --- old/terminado-0.13.1/terminado.egg-info/PKG-INFO 2022-01-27 15:20:57.000000000 +0100 +++ new/terminado-0.13.2/terminado.egg-info/PKG-INFO 2022-03-03 12:10:29.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: terminado -Version: 0.13.1 +Version: 0.13.2 Summary: Tornado websocket backend for the Xterm.js Javascript terminal emulator library. Home-page: https://github.com/jupyter/terminado Author: Jupyter Development Team