Bug 185470 - [NEW PORT] devel/py-peewee (a small, expressive Python ORM)
Summary: [NEW PORT] devel/py-peewee (a small, expressive Python ORM)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus von Appen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 18:10 UTC by Matthias Petermann
Modified: 2014-06-02 06:15 UTC (History)
0 users

See Also:


Attachments
file.shar (3.07 KB, text/plain)
2014-01-04 18:10 UTC, Matthias Petermann
no flags Details
py-peewee.txt (6.53 KB, text/plain; charset=UTF-8)
2014-04-10 00:25 UTC, Matthias Petermann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Petermann 2014-01-04 18:10:00 UTC
Peewee is a MIT licensed object relational mapper for Python. It allows access of relational databases (MySQL / MariaDB, PostgreSQL, SQLite3) in a pretty object oriented way. There is usually no need to write SQL.

There are some alternatives out there:

* SQLAlchemy (databases/py-sqlalchemy)
* SQLObject  (databases/py-sqlobject)
* Storm (not ported yet)

Peewee can be distinguished from the above by the following facts:

* portable (no native bindings required)
* small

The attached shar archive contains the port. I'd really appreciate it if someone could commit it.

Best regards,
Matthias

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-04 18:10:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2014-01-19 13:58:14 UTC
Responsible Changed
From-To: freebsd-python->mva

I'll take it.
Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2014-01-19 14:08:10 UTC
Thanks for your submission. Ther are some minor issues with the port, though.

- Please avoid indefinite articles at the beginning of a COMMENT
- Usage of USE_PYDISTUTILS=easy_install is deprecated. Please use
  USE_PYDISTUTILS=yes instead.
- Python 2.6 has beend removed from the ports tree, so your port should use
  USE_PYTHON=2.7+.
- You also can simplify the options by using
  SQLITE_RUN_DEPENDS= ${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
  MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:${PORTSDIR}/databases/py-MySQLdb
  ...

  instead of the .if ${PORT_OPTIONS:...} conditionals. This also would make the
  .include <bsd.port.options.mk> line superfluous.
- For stage-aware ports you do not need a .if ${PORT_OPTIONS:MDOCS}
  conditional. This is handled by the staging code, so you can always install
  the docs or examples into the staging area.

We would appreciate it, if you could fix or change the aforementioned issues.

Cheers
Marcus
Comment 4 matthias 2014-04-09 23:22:56 UTC
Hello Marcus,

thanks for your valuable feedback on my ports proposal. I'll work them
in the next few days and attach a new patch to this PR. Please apologize
the delay of my response - I did not notice the nofication E-Mail on
time and found your reply at my periodic checks of my PRs.

Best regards,
Matthias


-- 
Matthias Petermann <matthias@d2ux.org> | www.petermann-it.de
GnuPG: 0x5C3E6D75 | 5930 86EF 7965 2BBA 6572  C3D7 7B1D A3C3 5C3E 6D75
Comment 5 Matthias Petermann 2014-04-10 00:25:18 UTC
Hello,

attached is the new Shar archive. All proposed changes were
incorporated. The version was updated to the latest 2.2.2.

Thanks & best regards,
Matthias


-- 
Matthias Petermann <matthias@petermann-it.de> | www.petermann-it.de
GnuPG: 0x5C3E6D75 | 5930 86EF 7965 2BBA 6572  C3D7 7B1D A3C3 5C3E 6D75
Comment 6 Marcus von Appen freebsd_committer freebsd_triage 2014-06-02 06:15:47 UTC
New port committed, thanks!