Re: [openstack-dev] OpenStack-dev Digest, Vol 36, Issue 67

2015-04-23 Thread INADA Naoki


  I recommend to use mysqlclient instead of MySQL-python even on
  Python 2.
 
  https://pypi.python.org/pypi/mysqlclient
  https://github.com/PyMySQL/mysqlclient-python

  Is it packaged in popular distributions? RHEL? Fedora? SuSe? Ubuntu?
  Debian? Gentoo?

 If this library solves real bugs and provides Python 3 compatibility, I
 think it's worth to replace MySQL-python with this new library. Linux
 distro can package it, they can probably copy the packaging of MySQL-Python
 since it's a fork.

 Note: mysqlclient-python conflicts with MySQL-Python, both libraries use
 the same MySQLdb Python module. The good news is that mysqlclient-python
 is a drop-in library for MySQL-Python: no need to change any line of code,
 only modify requirements.

 @Naoki: Did you try to contact MySQL-Python authors to take over their
 project instead of forking?

 Victor




First of all, ​I've sent pull request to MySQL-python. It wasn't merged for
a long time while
I needed it. So I've forked.

https://github.com/farcepest/MySQLdb1/pull/61
https://github.com/farcepest/MySQLdb1/pull/62


​After that, Django ​supports Python 3 officially.
So we've discussed about which driver Django recommend for Python:
mysql-connector/Python,
PyMySQL and mysqlclient.

https://groups.google.com/forum/#!searchin/django-developers/mysql-python/django-developers/n-TI8mBcegE/BpGKEE08-g0J


While the discussion, it was reported on Debian.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768096

It's experimental package for now.
https://packages.debian.org/experimental/python3-mysqldb
http://metadata.ftp-master.debian.org/changelogs//main/p/python-mysqldb/python-mysqldb_1.3.4-1_changelog

I don't know about RHEL. As far as I googling, they are using original.
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [oslo] eventlet 0.17.3 is now fully Python 3 compatible

2015-04-22 Thread INADA Naoki
 Hi, All,

 My 2c are:

 - yes, oslo.db supports python 3 (unittests passes, at least :) )
 - MySQL-python still default MySQL DB driver in OpenStack, but at the
 moment the only DB driver for MySQL in python3 environment is PyMySQL, so I
 think, it's ok to use it with python 3.



​Hi.​

I'm maintainer of PyMySQL and mysqlclient.

mysqlclient is fork of MySQL-python.  It uses libmysqlclient.so.
It fixes some bugs, build issues and it support Python 3. For example:

* Support MariaDB's libmysqlclient.so
* Support microsecond in TIME column

I recommend to use mysqlclient instead of MySQL-python even on Python 2.

https://pypi.python.org/pypi/mysqlclient
https://github.com/PyMySQL/mysqlclient-python

-- 
INADA Naoki  songofaca...@gmail.com
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev