Hello community, here is the log from the commit of package python-ptyprocess for openSUSE:Factory checked in at 2018-08-10 09:46:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ptyprocess (Old) and /work/SRC/openSUSE:Factory/.python-ptyprocess.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ptyprocess" Fri Aug 10 09:46:37 2018 rev:5 rq:627898 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ptyprocess/python-ptyprocess.changes 2017-08-24 18:23:24.574420855 +0200 +++ /work/SRC/openSUSE:Factory/.python-ptyprocess.new/python-ptyprocess.changes 2018-08-10 09:46:40.165969829 +0200 @@ -1,0 +2,9 @@ +Tue Aug 7 14:41:07 UTC 2018 - [email protected] + +- update to 0.6.0 + * Use PtyProcessError instead of ExceptionPexpect + * sys.__stdin__ can be None + * Fix AIX bug for users with unlimited nofiles + * Clarify setecho error message + +------------------------------------------------------------------- Old: ---- ptyprocess-0.5.2.tar.gz New: ---- ptyprocess-0.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ptyprocess.spec ++++++ --- /var/tmp/diff_new_pack.cOEyE7/_old 2018-08-10 09:46:40.505970376 +0200 +++ /var/tmp/diff_new_pack.cOEyE7/_new 2018-08-10 09:46:40.509970383 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-ptyprocess # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,11 +16,10 @@ # -%bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ptyprocess -Version: 0.5.2 +Version: 0.6.0 Release: 0 Summary: Run a subprocess in a pseudo terminal License: ISC @@ -31,11 +30,11 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with tests} +# SECTION test requirements BuildRequires: %{python_module nose} -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# /SECTION BuildArch: noarch + %python_subpackages %description @@ -58,14 +57,12 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check %python_expand nosetests-%{$python_bin_suffix} -%endif %files %{python_files} -%defattr(-,root,root,-) %doc README.rst +%license LICENSE %{python_sitelib}/* %changelog ++++++ ptyprocess-0.5.2.tar.gz -> ptyprocess-0.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/.travis.yml new/ptyprocess-0.6.0/.travis.yml --- old/ptyprocess-0.5.2/.travis.yml 2016-01-29 14:32:10.000000000 +0100 +++ new/ptyprocess-0.6.0/.travis.yml 2018-06-22 10:30:09.084751800 +0200 @@ -1,8 +1,9 @@ language: python python: - - "2.7" - - "3.3" + - "3.6" + - "3.5" - "3.4" + - "2.7" # command to run tests script: py.test --verbose --verbose sudo: False diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/PKG-INFO new/ptyprocess-0.6.0/PKG-INFO --- old/ptyprocess-0.5.2/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/ptyprocess-0.6.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ptyprocess -Version: 0.5.2 +Version: 0.6.0 Summary: Run a subprocess in a pseudo terminal Home-page: https://github.com/pexpect/ptyprocess Author: Thomas Kluyver diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/flit.ini new/ptyprocess-0.6.0/flit.ini --- old/ptyprocess-0.5.2/flit.ini 2016-02-02 17:13:24.000000000 +0100 +++ new/ptyprocess-0.6.0/flit.ini 1970-01-01 01:00:00.000000000 +0100 @@ -1,17 +0,0 @@ -[metadata] -module = ptyprocess -author = Thomas Kluyver -author-email = [email protected] -home-page = https://github.com/pexpect/ptyprocess -description-file = README.rst -classifiers = Development Status :: 5 - Production/Stable - Environment :: Console - Intended Audience :: Developers - Intended Audience :: System Administrators - License :: OSI Approved :: ISC License (ISCL) - Operating System :: POSIX - Operating System :: MacOS :: MacOS X - Programming Language :: Python - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3 - Topic :: Terminals diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/ptyprocess/__init__.py new/ptyprocess-0.6.0/ptyprocess/__init__.py --- old/ptyprocess-0.5.2/ptyprocess/__init__.py 2017-06-22 17:37:21.000000000 +0200 +++ new/ptyprocess-0.6.0/ptyprocess/__init__.py 2018-06-22 10:28:26.157719400 +0200 @@ -1,4 +1,4 @@ """Run a subprocess in a pseudo terminal""" from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError -__version__ = '0.5.2' +__version__ = '0.6.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/ptyprocess/_fork_pty.py new/ptyprocess-0.6.0/ptyprocess/_fork_pty.py --- old/ptyprocess-0.5.2/ptyprocess/_fork_pty.py 2016-01-29 14:32:10.000000000 +0100 +++ new/ptyprocess-0.6.0/ptyprocess/_fork_pty.py 2018-06-22 10:22:19.183169100 +0200 @@ -4,6 +4,7 @@ import errno from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD) +from .util import PtyProcessError def fork_pty(): '''This implements a substitute for the forkpty system call. This @@ -63,7 +64,7 @@ try: fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY) os.close(fd) - raise ExceptionPexpect("OSError of errno.ENXIO should be raised.") + raise PtyProcessError("OSError of errno.ENXIO should be raised.") except OSError as err: if err.errno != errno.ENXIO: raise @@ -74,4 +75,4 @@ # Verify we now have a controlling tty. fd = os.open("/dev/tty", os.O_WRONLY) - os.close(fd) \ No newline at end of file + os.close(fd) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/ptyprocess/ptyprocess.py new/ptyprocess-0.6.0/ptyprocess/ptyprocess.py --- old/ptyprocess-0.5.2/ptyprocess/ptyprocess.py 2017-06-22 17:34:30.000000000 +0200 +++ new/ptyprocess-0.6.0/ptyprocess/ptyprocess.py 2018-06-22 10:22:19.183169100 +0200 @@ -19,7 +19,7 @@ # Constants from pty import (STDIN_FILENO, CHILD) -from .util import which +from .util import which, PtyProcessError _platform = sys.platform.lower() @@ -60,11 +60,18 @@ # inherit EOF and INTR definitions from controlling process. try: from termios import VEOF, VINTR - try: - fd = sys.__stdin__.fileno() - except ValueError: - # ValueError: I/O operation on closed file - fd = sys.__stdout__.fileno() + fd = None + for name in 'stdin', 'stdout': + stream = getattr(sys, '__%s__' % name, None) + if stream is None or not hasattr(stream, 'fileno'): + continue + try: + fd = stream.fileno() + except ValueError: + continue + if fd is None: + # no fd, raise ValueError to fallback on CEOF, CINTR + raise ValueError("No stream has a fileno") intr = ord(termios.tcgetattr(fd)[6][VINTR]) eof = ord(termios.tcgetattr(fd)[6][VEOF]) except (ImportError, OSError, IOError, ValueError, termios.error): @@ -81,14 +88,11 @@ _INTR = _byte(intr) _EOF = _byte(eof) -class PtyProcessError(Exception): - """Generic error class for this package.""" - # setecho and setwinsize are pulled out here because on some platforms, we need # to do this from the child before we exec() def _setecho(fd, state): - errmsg = 'setecho() may not be called on this platform' + errmsg = 'setecho() may not be called on this platform (it may still be possible to enable/disable echo when spawning the child process)' try: attr = termios.tcgetattr(fd) @@ -251,7 +255,10 @@ # Do not allow child to inherit open file descriptors from parent, # with the exception of the exec_err_pipe_write of the pipe - max_fd = resource.getrlimit(resource.RLIMIT_NOFILE)[0] + # Impose ceiling on max_fd: AIX bugfix for users with unlimited + # nofiles where resource.RLIMIT_NOFILE is 2^63-1 and os.closerange() + # occasionally raises out of range error + max_fd = min(1048576, resource.getrlimit(resource.RLIMIT_NOFILE)[0]) os.closerange(3, exec_err_pipe_write) os.closerange(exec_err_pipe_write+1, max_fd) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/ptyprocess/util.py new/ptyprocess-0.6.0/ptyprocess/util.py --- old/ptyprocess-0.5.2/ptyprocess/util.py 2016-01-29 14:32:10.000000000 +0100 +++ new/ptyprocess-0.6.0/ptyprocess/util.py 2018-06-22 10:22:19.183169100 +0200 @@ -64,4 +64,8 @@ name = os.path.join(dir, thefile) if _access_check(name, mode): return name - return None \ No newline at end of file + return None + + +class PtyProcessError(Exception): + """Generic error class for this package.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/pyproject.toml new/ptyprocess-0.6.0/pyproject.toml --- old/ptyprocess-0.5.2/pyproject.toml 1970-01-01 01:00:00.000000000 +0100 +++ new/ptyprocess-0.6.0/pyproject.toml 2018-06-22 10:27:25.242292000 +0200 @@ -0,0 +1,24 @@ +[build-system] +requires = ["flit"] +build-backend = "flit.buildapi" + +[tool.flit.metadata] +module = "ptyprocess" +author = "Thomas Kluyver" +author-email = "[email protected]" +home-page = "https://github.com/pexpect/ptyprocess" +description-file = "README.rst" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: ISC License (ISCL)", + "Operating System :: POSIX", + "Operating System :: MacOS :: MacOS X", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Topic :: Terminals" +] + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/readthedocs.yml new/ptyprocess-0.6.0/readthedocs.yml --- old/ptyprocess-0.5.2/readthedocs.yml 2017-06-22 17:34:30.000000000 +0200 +++ new/ptyprocess-0.6.0/readthedocs.yml 2018-06-22 10:22:19.184169000 +0200 @@ -1,3 +1,2 @@ python: version: 3 - setup_py_install: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ptyprocess-0.5.2/setup.py new/ptyprocess-0.6.0/setup.py --- old/ptyprocess-0.5.2/setup.py 1970-01-01 01:00:00.000000000 +0100 +++ new/ptyprocess-0.6.0/setup.py 1970-01-01 01:00:00.000000000 +0100 @@ -10,7 +10,7 @@ {'': ['*']} setup(name='ptyprocess', - version='0.5.2', + version='0.6.0', description='Run a subprocess in a pseudo terminal', author='Thomas Kluyver', author_email='[email protected]',
