1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net/py-oauth2/Makefile
Kubilay Kocak fc6119645e 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)
2014-03-15 15:07:07 +00:00

24 lines
495 B
Makefile

# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$
PORTNAME= oauth2
PORTVERSION= 1.5.211
PORTREVISION= 2
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= clsung@FreeBSD.org
COMMENT= Python library for OAuth version 1.0
LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
.include <bsd.port.mk>