Now that databases/py-MySQLdb port has been removed from the tree, salt needs to detect and use the databases/py-mysqlclient port. Ideally, this would be an option at build time to pull in the dependency if you want to use the mysql states in salt, but that's less important than just making it work. Note the "mysql-python: Not Installed" below... # salt -V Salt Version: Salt: 3002.2 Dependency Versions: cffi: 1.14.4 cherrypy: Not Installed dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.11.2 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.20 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: Not Installed Python: 3.7.9 (default, Oct 14 2020, 23:20:27) python-gnupg: Not Installed PyYAML: 5.3.1 PyZMQ: 22.0.3 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.1 System Versions: dist: freebsd 12.2 locale: utf-8 machine: amd64 release: 12.2-RELEASE-p1 system: FreeBSD version: FreeBSD 12.2 # pkg info py37-mysqlclient py37-mysqlclient-2.0.2 Name : py37-mysqlclient Version : 2.0.2 Installed on : Wed Dec 16 10:45:24 2020 AEDT Origin : databases/py-mysqlclient Architecture : FreeBSD:12:amd64 Prefix : /usr/local Categories : python databases Licenses : GPLv2 Maintainer : fluffy@FreeBSD.org WWW : https://pypi.org/project/mysqlclient Comment : MySQL database connector for Python
databases/py-pymysql works well, although it doesn't appear in 'salt -V', at least it works in python3. Should there be an optional dependency on this port?