svn commit: r348331 - in head/net/py-oauth2: . files
Kubilay Kocak
koobs at FreeBSD.org
Sat Mar 15 15:07:08 UTC 2014
Author: koobs
Date: Sat Mar 15 15:07:07 2014
New Revision: 348331
URL: http://svnweb.freebsd.org/changeset/ports/348331
QAT: https://qat.redports.org/buildarchive/r348331/
Log:
net/py-oauth2: Fix tests from being installed in site-packages
- Patch setup.py to exclude tests from install (CONFLICT) [1][2]
- pkg-descr: Tab->space in WWW: (portlint)
- Bump PORTREVISION
[1] This Python package uses packages=find_packages() with a tests
module in the root that contains an __init__.py file, which results
in the tests module being installed in site-packages. The correct way
of including tests in a pypi package using sdist, while excluding tests
in the root from being installed it to use:
* packages = find_packages(exclude='tests'),
* A MANIFEST.in containing "include tests/*" or equivalent
[2] https://github.com/simplegeo/python-oauth2/issues/139
Reported by: antoine
Approved by: maintainer (via Twitter)
Added:
head/net/py-oauth2/files/
head/net/py-oauth2/files/patch-setup.py (contents, props changed)
Modified:
head/net/py-oauth2/Makefile
head/net/py-oauth2/pkg-descr
Modified: head/net/py-oauth2/Makefile
==============================================================================
--- head/net/py-oauth2/Makefile Sat Mar 15 15:04:17 2014 (r348330)
+++ head/net/py-oauth2/Makefile Sat Mar 15 15:07:07 2014 (r348331)
@@ -3,7 +3,7 @@
PORTNAME= oauth2
PORTVERSION= 1.5.211
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Added: head/net/py-oauth2/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/py-oauth2/files/patch-setup.py Sat Mar 15 15:07:07 2014 (r348331)
@@ -0,0 +1,11 @@
+--- ./setup.py.orig 2014-03-15 23:48:44.604925965 +1100
++++ ./setup.py 2014-03-15 23:49:01.462781884 +1100
+@@ -31,7 +31,7 @@
+ author="Joe Stump",
+ author_email="joe at simplegeo.com",
+ url="http://github.com/simplegeo/python-oauth2",
+- packages = find_packages(),
++ packages = find_packages(exclude=['tests']),
+ install_requires = ['httplib2'],
+ license = "MIT License",
+ keywords="oauth",
Modified: head/net/py-oauth2/pkg-descr
==============================================================================
--- head/net/py-oauth2/pkg-descr Sat Mar 15 15:04:17 2014 (r348330)
+++ head/net/py-oauth2/pkg-descr Sat Mar 15 15:07:07 2014 (r348331)
@@ -11,4 +11,4 @@ forefathers:
* The library is likely no longer compatible with Python 2.3.
* The Client class works and extends from httplib2.
-WWW: http://github.com/simplegeo/python-oauth2
+WWW: http://github.com/simplegeo/python-oauth2
More information about the svn-ports-head
mailing list