Bug 191722 - [new port] databases/py-mysql-connector - official python interface to mysql database
Summary: [new port] databases/py-mysql-connector - official python interface to mysql ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-07 20:49 UTC by Volodymyr Kostyrko
Modified: 2014-07-26 12:10 UTC (History)
1 user (show)

See Also:


Attachments
py-mysql-connector.shar (1.67 KB, text/plain)
2014-07-07 20:49 UTC, Volodymyr Kostyrko
no flags Details
py-mysql-connector-python.shar (1.73 KB, text/plain)
2014-07-08 10:28 UTC, Volodymyr Kostyrko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volodymyr Kostyrko 2014-07-07 20:49:23 UTC
Created attachment 144499 [details]
py-mysql-connector.shar

Just composed one new port. This time I tested it and I even run it through redports: https://redports.org/buildarchive/20140707201100-51853/

I'm not sure though how I shoud name it. There is another ports named mysql-connector-* in databases yet I tried to resemble porting default by prefixing python packages with 'py-'.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-08 03:37:56 UTC
Match the upstream name:

SVN Dir: py-mysql-connector-python 
PORTNAME=mysql-connector-python
PKGNAMEPREFIX=${PYTHON_PKGNAMEPREFIX}
Comment 2 Volodymyr Kostyrko 2014-07-08 10:28:42 UTC
Created attachment 144513 [details]
py-mysql-connector-python.shar

Fixed name, https://redports.org/buildarchive/20140708065500-59242/
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-26 12:01:20 UTC
Committing, with changes:

- Use upstream short & long descriptions for COMMENT and pkg-descr
  respectively.
- Add LICENSE_FILE
- Use URL from setup.py as homepage in pkg-descr WWW: URL
- Remove MySQL as a dependency, as per documentation [1]: 

    "Self-contained driver. Connector/Python does not require the
     MySQL client library or any Python modules outside the standard
     library. "
     
    "It is written in pure Python and does not have any dependencies
     except for the Python Standard Library."
     
[1] https://dev.mysql.com/doc/connector-python/en/connector-python-introduction.html
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-07-26 12:04:12 UTC
A commit references this bug:

Author: koobs
Date: Sat Jul 26 12:04:08 UTC 2014
New revision: 362968
URL: http://svnweb.freebsd.org/changeset/ports/362968

Log:
  databases/py-mysql-connector-python: MySQL driver written in Python

  MySQL driver written in Python which does not depend on MySQL C client
  libraries and implements the DB API v2.0 specification (PEP-249).

  WWW: http://dev.mysql.com/doc/connector-python/en

  PR:		191722
  Submitted by:	<arcade at b1t dot name> (with changes)

Changes:
  head/databases/Makefile
  head/databases/py-mysql-connector-python/
  head/databases/py-mysql-connector-python/Makefile
  head/databases/py-mysql-connector-python/distinfo
  head/databases/py-mysql-connector-python/pkg-descr