1
0
Commit Graph

31 Commits

Author SHA256 Message Date
Dominique Leuenberger
68c14302f6 Accepting request 908898 from devel:languages:python
- Fix databases.json used for tests.
- update to 1.0.2:
  * Fix `user`, `password`, `host`, `database` are still positional arguments.
    All arguments of `connect()` are now keyword-only. (#941)
  * Stop emitting DeprecationWarning for use of ``db`` and ``passwd``.
    Note that they are still deprecated. (#939)
  * Add ``python_requires=">=3.6"`` to setup.py. (#936)
  * Python 2.7 and 3.5 are not supported.
  * ``connect()`` uses keyword-only arguments. User must use keyword argument.
  * ``connect()`` kwargs ``db`` and ``passwd`` are now deprecated; Use ``database`` and ``password`` instead.
  * old_password authentication method (used by MySQL older than 4.1) is not supported.
  * MySQL 5.5 and MariaDB 5.5 are not officially supported, although it may still works.
  * Removed ``escape_dict``, ``escape_sequence``, and ``escape_string`` from ``pymysql``
    module. They are still in ``pymysql.converters``.
  * Connection supports context manager API. ``__exit__`` closes the connection. (#886)
  * Add MySQL Connector/Python compatible TLS options (#903)
  * Major code cleanup; PyMySQL now uses black and flake8.

OBS-URL: https://build.opensuse.org/request/show/908898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=16
2021-07-28 17:21:44 +00:00
a4cfefa157 - Fix databases.json used for tests.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=30
2021-07-28 13:51:45 +00:00
15dd56a4cb - update to 1.0.2:
* Fix `user`, `password`, `host`, `database` are still positional arguments.
    All arguments of `connect()` are now keyword-only. (#941)
  * Stop emitting DeprecationWarning for use of ``db`` and ``passwd``.
    Note that they are still deprecated. (#939)
  * Add ``python_requires=">=3.6"`` to setup.py. (#936)
  * Python 2.7 and 3.5 are not supported.
  * ``connect()`` uses keyword-only arguments. User must use keyword argument.
  * ``connect()`` kwargs ``db`` and ``passwd`` are now deprecated; Use ``database`` and ``password`` instead.
  * old_password authentication method (used by MySQL older than 4.1) is not supported.
  * MySQL 5.5 and MariaDB 5.5 are not officially supported, although it may still works.
  * Removed ``escape_dict``, ``escape_sequence``, and ``escape_string`` from ``pymysql``
    module. They are still in ``pymysql.converters``.
  * Connection supports context manager API. ``__exit__`` closes the connection. (#886)
  * Add MySQL Connector/Python compatible TLS options (#903)
  * Major code cleanup; PyMySQL now uses black and flake8.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=29
2021-04-22 20:05:21 +00:00
Dominique Leuenberger
5131e2d5d2 Accepting request 850935 from devel:languages:python
- udpate to 0.10.1:
  * Fix missing import of ProgrammingError. (#878)
  * Fix auth switch request handling. (#890)

OBS-URL: https://build.opensuse.org/request/show/850935
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=15
2020-11-26 22:15:15 +00:00
c62c08923c - udpate to 0.10.1:
* Fix missing import of ProgrammingError. (#878)
  * Fix auth switch request handling. (#890)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=27
2020-11-26 09:11:44 +00:00
Dominique Leuenberger
215d724952 Accepting request 838337 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/838337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=14
2020-09-29 17:02:51 +00:00
0e61974c81 Accepting request 836337 from home:frispete:python
Duh, sorry..

- disable testing for Leaps 
  mariadb-rpm-macros not available or not sufficient

OBS-URL: https://build.opensuse.org/request/show/836337
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=25
2020-09-28 16:23:01 +00:00
Dominique Leuenberger
e5ec4c5a13 Accepting request 834872 from devel:languages:python
- update to 0.10.0:
  * MariaDB ed25519 auth is supported.
  * Python 3.4 support is dropped.
  * Context manager interface is removed from `Connection`. It will be added
    with different meaning.
  * MySQL warnings are not shown by default because many user report issue to
    PyMySQL issue tracker when they see warning. You need to call "SHOW WARNINGS"
    explicitly when you want to see warnings.
  * Formatting of float object is changed from "3.14" to "3.14e0".
  * Use cp1252 codec for latin1 charset.
  * Fix decimal literal.
  * TRUNCATED_WRONG_VALUE_FOR_FIELD, and ILLEGAL_VALUE_FOR_TYPE are now
    DataError instead of InternalError.
- remove python-PyMySQL-no-unittest2.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/834872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=13
2020-09-16 17:40:34 +00:00
5a340a5e98 - update to 0.10.0:
* MariaDB ed25519 auth is supported.
  * Python 3.4 support is dropped.
  * Context manager interface is removed from `Connection`. It will be added
    with different meaning.
  * MySQL warnings are not shown by default because many user report issue to
    PyMySQL issue tracker when they see warning. You need to call "SHOW WARNINGS"
    explicitly when you want to see warnings.
  * Formatting of float object is changed from "3.14" to "3.14e0".
  * Use cp1252 codec for latin1 charset.
  * Fix decimal literal.
  * TRUNCATED_WRONG_VALUE_FOR_FIELD, and ILLEGAL_VALUE_FOR_TYPE are now
    DataError instead of InternalError.
- remove python-PyMySQL-no-unittest2.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=23
2020-09-16 11:02:13 +00:00
Dominique Leuenberger
28f801ec6d Accepting request 811739 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/811739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=12
2020-06-09 22:46:49 +00:00
Tomáš Chvátal
c2372893dd Accepting request 811672 from home:pgajdos:python
- test package with mariadb
- added patches
  a500fcd64d
  + python-PyMySQL-no-unittest2.patch

OBS-URL: https://build.opensuse.org/request/show/811672
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=21
2020-06-05 10:18:24 +00:00
Dominique Leuenberger
3ea735c12d Accepting request 682059 from devel:languages:python
- Update to 0.9.3:
  * cryptography dependency is optional now.
  * Fix old_password (used before MySQL 4.1) support.
  * Deprecate old_password.
  * Stop sending ``sys.argv[0]`` for connection attribute "program_name".
  * Close connection when unknown error is happened.
  * Deprecate context manager API of Connection object.
  * Disalbled unintentinally enabled debug log
  * Removed unintentionally installed tests
  * Fixed caching_sha2_password and sha256_password raise TypeError on PY2
    (#700, #702)
  * Change default charset from latin1 to utf8mb4.  (because MySQL 8 changed) (#692)
  * Support sha256_password and caching_sha2_password auth method (#682)
  * Add cryptography dependency, because it's needed for new auth methods.
  * Remove deprecated `no_delay` option (#694)
  * Support connection attributes (#679)
  * Map LOCK_DEADLOCK to OperationalError (#693)

OBS-URL: https://build.opensuse.org/request/show/682059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=11
2019-03-12 08:53:13 +00:00
Tomáš Chvátal
5acc33fc4d - Update to 0.9.3:
* cryptography dependency is optional now.
  * Fix old_password (used before MySQL 4.1) support.
  * Deprecate old_password.
  * Stop sending ``sys.argv[0]`` for connection attribute "program_name".
  * Close connection when unknown error is happened.
  * Deprecate context manager API of Connection object.
  * Disalbled unintentinally enabled debug log
  * Removed unintentionally installed tests
  * Fixed caching_sha2_password and sha256_password raise TypeError on PY2
    (#700, #702)
  * Change default charset from latin1 to utf8mb4.  (because MySQL 8 changed) (#692)
  * Support sha256_password and caching_sha2_password auth method (#682)
  * Add cryptography dependency, because it's needed for new auth methods.
  * Remove deprecated `no_delay` option (#694)
  * Support connection attributes (#679)
  * Map LOCK_DEADLOCK to OperationalError (#693)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=19
2019-03-06 09:16:57 +00:00
Dominique Leuenberger
0b3db9fa2f Accepting request 611861 from devel:languages:python
- Drop not really needed python-devel dependency

- use %license instead of %doc [bsc#1082318]
- update to latest version to solve MySQLdb interface problems with
  salt-2018
- update to 0.8.1
* Reduce `cursor.callproc()` roundtrip time. (#636)
* Fixed `cursor.query()` is hunged after multi statement failed. (#647)
* WRONG_DB_NAME and WRONG_COLUMN_NAME is ProgrammingError for now. (#629)
* Many test suite improvements, especially adding MySQL 8.0 and using Docker.
* Droppped support for old Python and MySQL whih is not tested long time.
- update to 0.8
* **BACKWARD INCOMPATIBLE** ``binary_prefix`` option is added and off
  by default because of compatibility with mysqlclient.
  When you need PyMySQL 0.7 behavior, you have to pass ``binary_prefix=True``.
  (#549)
* **BACKWARD INCOMPATIBLE** ``MULTI_STATEMENTS`` client flag is no longer
  set by default, while it was on PyMySQL 0.7.  You need to pass
  ``client_flag=CLIENT.MULTI_STATEMENTS`` when you connect to explicitly
  enable multi-statement mode. (#590)
* Fixed AuthSwitch packet handling.
* Raise OperationalError for MariaDB's constraint error. (#607)
* executemany() accepts query without space between ``VALUES`` and ``(``.  (#597)
* Support config file containing option without value. (#588)
* Fixed Connection.ping() returned unintended value.

OBS-URL: https://build.opensuse.org/request/show/611861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=10
2018-05-29 08:42:58 +00:00
Tomáš Chvátal
9c2f9ecd59 - Drop not really needed python-devel dependency
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=17
2018-05-24 11:15:01 +00:00
fde2ac10ba Accepting request 611837 from home:kukuk:branches:devel:languages:python
- use %license instead of %doc [bsc#1082318]
- update to latest version to solve MySQLdb interface problems with
  salt-2018
- update to 0.8.1
* Reduce `cursor.callproc()` roundtrip time. (#636)
* Fixed `cursor.query()` is hunged after multi statement failed. (#647)
* WRONG_DB_NAME and WRONG_COLUMN_NAME is ProgrammingError for now. (#629)
* Many test suite improvements, especially adding MySQL 8.0 and using Docker.
* Droppped support for old Python and MySQL whih is not tested long time.
- update to 0.8
* **BACKWARD INCOMPATIBLE** ``binary_prefix`` option is added and off
  by default because of compatibility with mysqlclient.
  When you need PyMySQL 0.7 behavior, you have to pass ``binary_prefix=True``.
  (#549)
* **BACKWARD INCOMPATIBLE** ``MULTI_STATEMENTS`` client flag is no longer
  set by default, while it was on PyMySQL 0.7.  You need to pass
  ``client_flag=CLIENT.MULTI_STATEMENTS`` when you connect to explicitly
  enable multi-statement mode. (#590)
* Fixed AuthSwitch packet handling.
* Raise OperationalError for MariaDB's constraint error. (#607)
* executemany() accepts query without space between ``VALUES`` and ``(``.  (#597)
* Support config file containing option without value. (#588)
* Fixed Connection.ping() returned unintended value.

OBS-URL: https://build.opensuse.org/request/show/611837
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=16
2018-05-24 11:04:59 +00:00
Dominique Leuenberger
f32e7ece84 Accepting request 517107 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/517107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=9
2017-08-18 13:04:20 +00:00
Todd R
4cf09389fc Accepting request 517105 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version
- update to 0.7.11

OBS-URL: https://build.opensuse.org/request/show/517105
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=14
2017-08-16 02:22:53 +00:00
Dominique Leuenberger
a689413589 Accepting request 441342 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/441342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=8
2016-12-07 23:29:15 +00:00
0eff397e7e - update to 0.7.6:
* Fix SELECT JSON type cause UnicodeError
  * Avoid float convertion while parsing microseconds
  * Warning has number
  * SSCursor supports warnings
  * Fix exception raised while importing when getpwuid() fails (#472)
  * SSCursor supports LOAD DATA LOCAL INFILE (#473)
  * Fix encoding error happen for JSON type (#477)
  * Fix test fail on Python 2.7 and MySQL 5.7 (#478)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=12
2016-11-15 10:31:44 +00:00
Dominique Leuenberger
b4626b0a30 Accepting request 400235 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/400235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=7
2016-06-07 21:49:26 +00:00
f0c814a595 Accepting request 400004 from home:tbechtold:branches:devel:languages:python
- update to 0.7.4:
  * Fix AttributeError may happen while Connection.__del__ (#463)
  * Fix SyntaxError in test_cursor. (#464)
  * frozenset support for query value. (#461)
  * Start using readthedocs.io
  * Add read_timeout and write_timeout option.
  * Support serialization customization by `conv` option.
  * Unknown type is converted by `str()`, for MySQLdb compatibility.
  * Support '%%' in `Cursor.executemany()`
  * Support REPLACE statement in `Cursor.executemany()`
  * Fix handling incomplete row caused by 'SHOW SLAVE HOSTS'.
  * Fix decode error when use_unicode=False on PY3
  * Fix port option in my.cnf file is ignored.

OBS-URL: https://build.opensuse.org/request/show/400004
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=10
2016-06-06 11:14:49 +00:00
Dominique Leuenberger
cd3750920b Accepting request 379449 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/379449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=6
2016-03-26 14:29:00 +00:00
Todd R
51d8ad03f7 Accepting request 379446 from home:TheBlackCat:branches:devel:languages:python
Add license and docs

OBS-URL: https://build.opensuse.org/request/show/379446
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=8
2016-03-24 19:20:14 +00:00
Todd R
4efd80f6de Accepting request 379440 from home:TheBlackCat:branches:devel:languages:python
Update to 0.7.2

OBS-URL: https://build.opensuse.org/request/show/379440
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=7
2016-03-24 19:12:52 +00:00
Stephan Kulow
c4e8f022c7 Accepting request 306670 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/306670
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=5
2015-05-15 05:43:54 +00:00
Denisart Benjamin
b71021c0f9 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
2015-05-12 21:35:14 +00:00
Tomáš Chvátal
522afabb63 Accepting request 202707 from devel:languages:python
- update to 0.6:
  -Improved Py3k support
  -Improved PyPy support
  -Added IPv6 support
  -Added Thing2Literal for Django/MySQLdb compatibility
  -Removed errorhandler
  -Fixed GC errors
  -Improved test suite
  -Many bug fixes
  -Many performance improvements (forwarded request 202699 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/202707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=3
2013-10-10 06:27:11 +00:00
Sascha Peilicke
5cf7cc0cc4 Accepting request 202699 from home:dirkmueller:branches:devel:languages:python
- update to 0.6:
  -Improved Py3k support
  -Improved PyPy support
  -Added IPv6 support
  -Added Thing2Literal for Django/MySQLdb compatibility
  -Removed errorhandler
  -Fixed GC errors
  -Improved test suite
  -Many bug fixes
  -Many performance improvements

OBS-URL: https://build.opensuse.org/request/show/202699
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=3
2013-10-09 13:30:14 +00:00
Stephan Kulow
33656f08d3 Accepting request 183964 from devel:languages:python
possible dependency for openstack-nova

OBS-URL: https://build.opensuse.org/request/show/183964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyMySQL?expand=0&rev=1
2013-07-22 12:51:31 +00:00
Sascha Peilicke
502e5969f0 - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=1
2013-07-22 08:11:40 +00:00