Hello community,

here is the log from the commit of package python-ptyprocess for 
openSUSE:Factory checked in at 2017-08-24 18:23:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ptyprocess (Old)
 and      /work/SRC/openSUSE:Factory/.python-ptyprocess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ptyprocess"

Thu Aug 24 18:23:23 2017 rev:4 rq:518125 version:0.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ptyprocess/python-ptyprocess.changes      
2017-04-28 10:42:06.405904624 +0200
+++ /work/SRC/openSUSE:Factory/.python-ptyprocess.new/python-ptyprocess.changes 
2017-08-24 18:23:24.574420855 +0200
@@ -1,0 +2,9 @@
+Tue Aug 22 12:38:26 UTC 2017 - [email protected]
+
+- update to 0.5.2:
+  * Add readthedocs config file
+  * Add project dir to sys.path when building docs
+  * Version number -> 0.5.2
+  * Use buffering when opening the pty
+
+-------------------------------------------------------------------

Old:
----
  ptyprocess-0.5.1.tar.gz

New:
----
  ptyprocess-0.5.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ptyprocess.spec ++++++
--- /var/tmp/diff_new_pack.RfDMLA/_old  2017-08-24 18:23:25.354311043 +0200
+++ /var/tmp/diff_new_pack.RfDMLA/_new  2017-08-24 18:23:25.358310480 +0200
@@ -20,17 +20,17 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ptyprocess
-Version:        0.5.1
+Version:        0.5.2
 Release:        0
 Summary:        Run a subprocess in a pseudo terminal
 License:        ISC
 Group:          Development/Languages/Python
 Url:            https://github.com/pexpect/ptyprocess
 Source:         
https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 %if %{with tests}
 BuildRequires:  %{python_module nose}
 %endif

++++++ ptyprocess-0.5.1.tar.gz -> ptyprocess-0.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/.gitignore 
new/ptyprocess-0.5.2/.gitignore
--- old/ptyprocess-0.5.1/.gitignore     1970-01-01 01:00:00.000000000 +0100
+++ new/ptyprocess-0.5.2/.gitignore     2016-01-29 14:32:10.000000000 +0100
@@ -0,0 +1,7 @@
+__pycache__
+*.pyc
+
+/build/
+/dist/
+MANIFEST
+docs/_build/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/.travis.yml 
new/ptyprocess-0.5.2/.travis.yml
--- old/ptyprocess-0.5.1/.travis.yml    1970-01-01 01:00:00.000000000 +0100
+++ new/ptyprocess-0.5.2/.travis.yml    2016-01-29 14:32:10.000000000 +0100
@@ -0,0 +1,8 @@
+language: python
+python:
+  - "2.7"
+  - "3.3"
+  - "3.4"
+# 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.1/PKG-INFO 
new/ptyprocess-0.5.2/PKG-INFO
--- old/ptyprocess-0.5.1/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
+++ new/ptyprocess-0.5.2/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: ptyprocess
-Version: 0.5.1
+Version: 0.5.2
 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.1/docs/conf.py 
new/ptyprocess-0.5.2/docs/conf.py
--- old/ptyprocess-0.5.1/docs/conf.py   2016-02-02 17:31:36.000000000 +0100
+++ new/ptyprocess-0.5.2/docs/conf.py   2017-06-22 17:37:22.000000000 +0200
@@ -18,7 +18,7 @@
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration ------------------------------------------------
 
@@ -57,7 +57,7 @@
 # The short X.Y version.
 version = '0.5'
 # The full version, including alpha/beta/rc tags.
-release = version + '.1'
+release = version + '.2'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/ptyprocess/__init__.py 
new/ptyprocess-0.5.2/ptyprocess/__init__.py
--- old/ptyprocess-0.5.1/ptyprocess/__init__.py 2016-02-02 17:31:16.000000000 
+0100
+++ new/ptyprocess-0.5.2/ptyprocess/__init__.py 2017-06-22 17:37:21.000000000 
+0200
@@ -1,4 +1,4 @@
 """Run a subprocess in a pseudo terminal"""
 from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError
 
-__version__ = '0.5.1'
+__version__ = '0.5.2'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/ptyprocess/ptyprocess.py 
new/ptyprocess-0.5.2/ptyprocess/ptyprocess.py
--- old/ptyprocess-0.5.1/ptyprocess/ptyprocess.py       2016-02-02 
17:30:37.000000000 +0100
+++ new/ptyprocess-0.5.2/ptyprocess/ptyprocess.py       2017-06-22 
17:34:30.000000000 +0200
@@ -153,7 +153,9 @@
         _make_eof_intr()  # Ensure _EOF and _INTR are calculated
         self.pid = pid
         self.fd = fd
-        self.fileobj = io.open(fd, 'r+b', buffering=0)
+        readf = io.open(fd, 'rb', buffering=0)
+        writef = io.open(fd, 'wb', buffering=0, closefd=False)
+        self.fileobj = io.BufferedRWPair(readf, writef)
 
         self.terminated = False
         self.closed = False
@@ -504,7 +506,7 @@
         on recent Solaris.
         """
         try:
-            s = self.fileobj.read(size)
+            s = self.fileobj.read1(size)
         except (OSError, IOError) as err:
             if err.args[0] == errno.EIO:
                 # Linux-style EOF
@@ -539,12 +541,18 @@
 
         return s
 
-    def write(self, s):
+    def _writeb(self, b, flush=True):
+        n = self.fileobj.write(b)
+        if flush:
+            self.fileobj.flush()
+        return n
+
+    def write(self, s, flush=True):
         """Write bytes to the pseudoterminal.
         
         Returns the number of bytes written.
         """
-        return self.fileobj.write(s)
+        return self._writeb(s, flush=flush)
 
     def sendcontrol(self, char):
         '''Helper method that wraps send() with mnemonic access for sending 
control
@@ -560,7 +568,7 @@
         if 97 <= a <= 122:
             a = a - ord('a') + 1
             byte = _byte(a)
-            return self.fileobj.write(byte), byte
+            return self._writeb(byte), byte
         d = {'@': 0, '`': 0,
             '[': 27, '{': 27,
             '\\': 28, '|': 28,
@@ -572,7 +580,7 @@
             return 0, b''
 
         byte = _byte(d[char])
-        return self.fileobj.write(byte), byte
+        return self._writeb(byte), byte
 
     def sendeof(self):
         '''This sends an EOF to the child. This sends a character which causes
@@ -584,13 +592,13 @@
         It is the responsibility of the caller to ensure the eof is sent at the
         beginning of a line. '''
 
-        return self.fileobj.write(_EOF), _EOF
+        return self._writeb(_EOF), _EOF
 
     def sendintr(self):
         '''This sends a SIGINT to the child. It does not require
         the SIGINT to be the first character on a line. '''
 
-        return self.fileobj.write(_INTR), _INTR
+        return self._writeb(_INTR), _INTR
 
     def eof(self):
         '''This returns True if the EOF exception was ever raised.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/readthedocs.yml 
new/ptyprocess-0.5.2/readthedocs.yml
--- old/ptyprocess-0.5.1/readthedocs.yml        1970-01-01 01:00:00.000000000 
+0100
+++ new/ptyprocess-0.5.2/readthedocs.yml        2017-06-22 17:34:30.000000000 
+0200
@@ -0,0 +1,3 @@
+python:
+    version: 3
+    setup_py_install: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ptyprocess-0.5.1/setup.py 
new/ptyprocess-0.5.2/setup.py
--- old/ptyprocess-0.5.1/setup.py       1970-01-01 01:00:00.000000000 +0100
+++ new/ptyprocess-0.5.2/setup.py       1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +1,20 @@
 #!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
 
 from distutils.core import setup
 
+packages = \
+['ptyprocess']
+
+package_data = \
+{'': ['*']}
+
 setup(name='ptyprocess',
-      version='0.5.1',
+      version='0.5.2',
       description='Run a subprocess in a pseudo terminal',
       author='Thomas Kluyver',
       author_email='[email protected]',
       url='https://github.com/pexpect/ptyprocess',
-      packages=['ptyprocess']
+      packages=packages,
+      package_data=package_data,
      )


Reply via email to