From b71021c0f955c9a85ea7d6dca891f1eb6c3bcf51250ccd73280242f5b05ad3c3 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Tue, 12 May 2015 21:35:14 +0000 Subject: [PATCH] Accepting request 306395 from home:benoit_monin:branches:devel:languages:python - update to version 0.6.6 - remove unwanted shebang of python files in test_MySQLdb OBS-URL: https://build.opensuse.org/request/show/306395 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=5 --- PyMySQL-0.6.6.tar.gz | 3 +++ PyMySQL-0.6.tar.gz | 3 --- python-PyMySQL.changes | 42 ++++++++++++++++++++++++++++++++++++++++++ python-PyMySQL.spec | 6 ++++-- 4 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 PyMySQL-0.6.6.tar.gz delete mode 100644 PyMySQL-0.6.tar.gz diff --git a/PyMySQL-0.6.6.tar.gz b/PyMySQL-0.6.6.tar.gz new file mode 100644 index 0000000..2290b11 --- /dev/null +++ b/PyMySQL-0.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c18e62ca481c5ada6c7bee1b81fc003d6ceae932c878db384cd36808010b3774 +size 56862 diff --git a/PyMySQL-0.6.tar.gz b/PyMySQL-0.6.tar.gz deleted file mode 100644 index ad47d7f..0000000 --- a/PyMySQL-0.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12ac5ef0b21147a6529064292e9bf2f7f7f6224aa789381c9be5bccc88ac1020 -size 52880 diff --git a/python-PyMySQL.changes b/python-PyMySQL.changes index b363208..a69982c 100644 --- a/python-PyMySQL.changes +++ b/python-PyMySQL.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Mon May 11 16:53:18 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.6.6: + Add context manager to cursor + * Fix can't encode blob that is not utf-8 on PY3. (regression of + 0.6.4, Thanks to @wiggzz) +- additional changes from version 0.6.4 + * Support "LOAD LOCAL INFILE". Thanks @wraziens + * Show MySQL warnings after execute query. + * Fix MySQLError may be wrapped with OperationalError while + connectiong. (#274) + * SSCursor no longer attempts to expire un-collected rows within + __del__, delaying termination of an interrupted program; + cleanup of uncollected rows is left to the Connection on next + execute, which emits a warning at that time. (#287) + * Support datetime and time with microsecond. (#303) + * Use surrogateescape to format bytes on Python 3. + * OperationalError raised from connect() have information about + original exception. (#304) + * `init_command` now support multi statement. + * `Connection.escape()` method now accepts second argument + compatible to MySQL-Python. +- additional changes from version 0.6.3 + * Fixed multiple result sets with SSCursor. + * Fixed connection timeout. + * Fixed literal set syntax to work on Py2.6. + * Allow for mysql negative values with 0 hour timedelta. + * Added Connection.begin(). +- additional changes from version 0.6.2 + * Fixed old password on Python 3. + * Added support for bulk insert in Cursor.executemany(). + * Added support for microseconds in datetimes and dates before + 1900. + * Several other bug fixes. +- additional changes from version 0.6.1 + * Added cursor._last_executed for MySQLdb compatibility + * Cursor.fetchall() and .fetchmany now return list, not tuple + * Allow "length of auth-plugin-data" = 0 + * Cursor.connection references connection object without weakref +- remove unwanted shebang of python files in test_MySQLdb + ------------------------------------------------------------------- Wed Oct 9 12:32:51 UTC 2013 - dmueller@suse.com diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index 76c52bc..80dd0ca 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyMySQL # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,7 +17,7 @@ Name: python-PyMySQL -Version: 0.6 +Version: 0.6.6 Release: 0 Summary: Pure Python MySQL Driver License: MIT @@ -45,6 +45,8 @@ its unit tests as well as running it against the MySQLdb and myconnpy unit tests %prep %setup -q -n PyMySQL-%{version} +# remove unwanted shebang +sed -i '1 { /^#!/ d }' pymysql/tests/thirdparty/test_MySQLdb/*.py %build python setup.py build