Bug 220966

Summary: [NEW PORT] databases/py-mysql-replication: Pure Python Implementation of MySQL replication protocol
Product: Ports & Packages Reporter: Jov <amutu>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: python
Priority: --- Keywords: feature, needs-qa
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
py-mysql-replication.shar
none
py-mysql-replication.shar none

Description Jov 2017-07-24 12:39:07 UTC
Created attachment 184664 [details]
py-mysql-replication.shar

Pure Python Implementation of MySQL replication protocol build on top of
PyMYSQL. This allow you to receive event like insert, update, delete with
their datas and raw SQL queries. Use cases:
  - MySQL to NoSQL database replication
  - MySQL to search engine replication
  - Invalidate cache when something change in database
  - Audit
  - Real time analytics

WWW: https://github.com/noplay/python-mysql-replication

QA:
portlint -AC
looks fine.

poudriere testport: 11.0R-amd64
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-25 04:08:11 UTC
Thank you Jov. Is there a reason this package needs to use GitHub sources over the PyPI provided source distribution? Example: are important files missing like test files?

Also, if you could implement TEST_DEPENDS and a test command/target that invokes nosetests [1] (via python-{CMD} -m nose) that would be appreciated.

[1] https://github.com/noplay/python-mysql-replication/blob/master/.travis.yml#L30
Comment 2 Jov 2017-07-25 05:59:04 UTC
(In reply to Kubilay Kocak from comment #1)
I did not find the page on pypi yesterday. I will check again.

For test, it needs setup mysql server and changes the myseql config for every supported MySQL version, so it needs a lot of work. If it is not a must, I am not going to do it right now.
Comment 3 Jov 2017-07-25 06:16:00 UTC
Created attachment 184690 [details]
py-mysql-replication.shar

changes:
1.use MASTER_SITES=CHEESESHOP instead of github
2.change WWW to pypi page
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-25 09:54:07 UTC
Not compulsory, but it would be worth adding the TEST_DEPENDS and test target so that users can invoke them easily if they'd like to. Just add a comment above do-test: saying:

# Requires mysql to be installed/configured/running
Comment 5 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-09 12:41:38 UTC
Overcome by events due to ports r473019