[Rdo-list] Migrating from MySQL-python to PyMySQL

Ihar Hrachyshka ihrachys at redhat.com
Thu Oct 1 16:24:30 UTC 2015


> On 01 Oct 2015, at 18:11, Haïkel <hguemar at fedoraproject.org> wrote:
> 
> 2015-10-01 17:29 GMT+02:00 Javier Pena <javier.pena at redhat.com>:
>> Hi all,
>> 
>> During the review of a packaging change to the Neutron package [1], we realized that our installation tools are still using MySQL-python for the db connections, and several of our packages still depend on the MySQL-python package, even though they rely on oslo.db, which has now moved to PyMySQL as default driver [2].
>> 
>> I'd like to propose the following plan for this migration:
>> 
>>  a) To avoid any short-term breakage, make python-oslo-db require MySQL-python and python-PyMySQL.
>>  b) Remove all MySQL-python dependencies from those packages that should no longer require it ([3], if I did not miss anyone). All these packages already require python-oslo-db, so there would be no missing deps.
>>  c) Update installers to support PyMySQL in their db connection strings.
>>  d) Once MySQL-python is no longer necessary, remove it from the dependencies for python-oslo-db
>> 
>> What do you think? Steps a) and b) should be relatively easy to do in the short term, but I'm concerned about the testing implications of c) at this time of the Liberty cycle.
>> 
>> Regards,
>> Javier
>> 
> 
> This has been discussed few months ago with Jakub Dornak who maintains
> the package in Fedora and it does not require any action in short
> term.
> 
> 1. package has been renamed into python-mysql in Fedora and switched
> to PyMySQL as upstream sources
> http://pkgs.fedoraproject.org/cgit/python-mysql.git/tree/python-mysql.spec#n19
> 2. it provides/obsoletes MySQL-python
> http://pkgs.fedoraproject.org/cgit/python-mysql.git/tree/python-mysql.spec#n36
> 
> We're already using the newer driver :)
> 
> But I agree that we should do the cleanup during the Mitaka cycle,
> please add a trello card with the following (I updated your list)
> 1. migrate all requirements from MySQL-python to python-mysql (easyfix)
> 2. update installers

WAT? Are they API compatible? I don’t believe so. So providing the old package is neat but actually wrong. Or am I missing something?

Ihar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20151001/7cc6c127/attachment.sig>


More information about the dev mailing list