Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2014 01:55:52 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374342 - in head/databases/py-pylibmc: . files
Message-ID:  <201412090155.sB91tq9l099516@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue Dec  9 01:55:51 2014
New Revision: 374342
URL: https://svnweb.freebsd.org/changeset/ports/374342
QAT: https://qat.redports.org/buildarchive/r374342/

Log:
  databases/py-pylibmc: Update to 1.4.1, Allow Python 3 support
  
  - Update to 1.4.1
  - Allow Python 3 support [1]
  - Update COMMENT to match PyPi upstream
  - Add TESTS option, TEST_DEPENDS and regression-test target
  - Strip shared library
  - Patch setup.{py,cfg} to add allow 'test' command to run
  - Update pkg-descr to match upstream
  - pkg-descr: Update WWW: URL to match PyPi upstream
  
  This update passes QA (test suite) under Python 2.7 and 3.4.
  
  Changes:
  
    http://sendapatch.se/projects/pylibmc/changelog.html
  
  [1] https://github.com/lericson/pylibmc/issues/146

Added:
  head/databases/py-pylibmc/files/
  head/databases/py-pylibmc/files/patch-setup.cfg   (contents, props changed)
  head/databases/py-pylibmc/files/patch-setup.py   (contents, props changed)
Modified:
  head/databases/py-pylibmc/Makefile
  head/databases/py-pylibmc/distinfo
  head/databases/py-pylibmc/pkg-descr

Modified: head/databases/py-pylibmc/Makefile
==============================================================================
--- head/databases/py-pylibmc/Makefile	Mon Dec  8 23:08:04 2014	(r374341)
+++ head/databases/py-pylibmc/Makefile	Tue Dec  9 01:55:51 2014	(r374342)
@@ -2,22 +2,33 @@
 # $FreeBSD$
 
 PORTNAME=	pylibmc
-PORTVERSION=	1.3.0
-PORTREVISION=	1
+PORTVERSION=	1.4.1
 CATEGORIES=	databases python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	koobs@FreeBSD.org
-COMMENT=	Python wrapper around the libmemcached interface
+COMMENT=	Quick and small memcached client for Python
 
 LICENSE=	BSD3CLAUSE
 
 LIB_DEPENDS=	libmemcached.so:${PORTSDIR}/databases/libmemcached
+TEST_DEPENDS=	memcached:${PORTSDIR}/databases/memcached \
+		nosetests:${PORTSDIR}/devel/py-nose
 
-USES=		python:2
+OPTIONS_DEFINE=		TESTS
+TESTS_DESC=		Install test suite dependencies
+TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
+
+USES=		python
 USE_PYTHON=	distutils autoplist
 
 MAKE_ENV+=	LIBMEMCACHED="${LOCALBASE}"
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pylibmc.so
+
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
 .include <bsd.port.mk>

Modified: head/databases/py-pylibmc/distinfo
==============================================================================
--- head/databases/py-pylibmc/distinfo	Mon Dec  8 23:08:04 2014	(r374341)
+++ head/databases/py-pylibmc/distinfo	Tue Dec  9 01:55:51 2014	(r374342)
@@ -1,2 +1,2 @@
-SHA256 (pylibmc-1.3.0.tar.gz) = a6945a4c77f96d5b744118805247fb24c09f1d353aebbce6dd510a6042689b45
-SIZE (pylibmc-1.3.0.tar.gz) = 49949
+SHA256 (pylibmc-1.4.1.tar.gz) = a00e75f5c76e573e95ac5b29cb8a816728930f29332c49c74dbfd326d598088f
+SIZE (pylibmc-1.4.1.tar.gz) = 53360

Added: head/databases/py-pylibmc/files/patch-setup.cfg
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pylibmc/files/patch-setup.cfg	Tue Dec  9 01:55:51 2014	(r374342)
@@ -0,0 +1,8 @@
+--- setup.cfg.orig	2014-12-09 01:22:54 UTC
++++ setup.cfg
+@@ -1,5 +1,4 @@
+ [nosetests]
+-with-info=1
+ with-doctest=1
+ debug=nose.plugins.pylibmc
+ doctest-extension=txt

Added: head/databases/py-pylibmc/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-pylibmc/files/patch-setup.py	Tue Dec  9 01:55:51 2014	(r374342)
@@ -0,0 +1,8 @@
+--- setup.py.orig	2014-12-09 01:16:30 UTC
++++ setup.py
+@@ -122,4 +122,5 @@ setup(
+         'Programming Language :: Python :: 3.3',
+         'Programming Language :: Python :: 3.4',
+     ],
++    test_suite = 'nose.collector'
+ )

Modified: head/databases/py-pylibmc/pkg-descr
==============================================================================
--- head/databases/py-pylibmc/pkg-descr	Mon Dec  8 23:08:04 2014	(r374341)
+++ head/databases/py-pylibmc/pkg-descr	Tue Dec  9 01:55:51 2014	(r374342)
@@ -1,4 +1,11 @@
-pylibmc is a Python wrapper around the accompanying C Python extension
-_pylibmc, which is a wrapper around libmemcached from TangentOrg.
+pylibmc is a client in Python for memcached. It is a wrapper around
+TangentOrg's libmemcached library.
 
-WWW: https://pypi.python.org/pypi/pylibmc
+The interface is intentionally made as close to python-memcached as possible,
+so that applications can drop-in replace it.
+
+pylibmc leverages among other things configurable behaviors, data pickling,
+data compression, battle-tested GIL retention, consistent distribution, and
+the binary memcached protocol.
+
+WWW: http://sendapatch.se/projects/pylibmc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412090155.sB91tq9l099516>