diff options
author | Kubilay Kocak <koobs@FreeBSD.org> | 2013-05-13 12:38:41 +0000 |
---|---|---|
committer | Kubilay Kocak <koobs@FreeBSD.org> | 2013-05-13 12:38:41 +0000 |
commit | 69fedf0e455807b26d98cb807ae201a159b75249 (patch) | |
tree | fcce7a2266b82f1baa4a805d762a42d34bcc50ec /www | |
parent | 51a420c8678e090da3b8d665f73ee77599530ba9 (diff) | |
download | ports-69fedf0e455807b26d98cb807ae201a159b75249.tar.gz ports-69fedf0e455807b26d98cb807ae201a159b75249.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/py-requests-oauthlib/Makefile | 29 | ||||
-rw-r--r-- | www/py-requests-oauthlib/distinfo | 2 | ||||
-rw-r--r-- | www/py-requests-oauthlib/files/patch-setup.py | 12 | ||||
-rw-r--r-- | www/py-requests-oauthlib/pkg-descr | 6 | ||||
-rw-r--r-- | www/py-requests-oauthlib/pkg-plist | 25 |
6 files changed, 75 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 76152b83c30a..c25dca4ecf2c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1628,6 +1628,7 @@ SUBDIR += py-recaptcha SUBDIR += py-requests SUBDIR += py-requests-oauth-hook + SUBDIR += py-requests-oauthlib SUBDIR += py-restclient SUBDIR += py-rhodecode SUBDIR += py-routes diff --git a/www/py-requests-oauthlib/Makefile b/www/py-requests-oauthlib/Makefile new file mode 100644 index 000000000000..63a3ea78f9db --- /dev/null +++ b/www/py-requests-oauthlib/Makefile @@ -0,0 +1,29 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= requests-oauthlib +PORTVERSION= 0.3.1 +CATEGORIES= net python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= OAuthlib authentication support for Requests + +LICENSE= ISCL + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}oauthlib>=0.3.7:${PORTSDIR}/security/py-oauthlib \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock + +USE_GITHUB= yes +GH_ACCOUNT= requests +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= a7e6030 + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test + +.include <bsd.port.mk> diff --git a/www/py-requests-oauthlib/distinfo b/www/py-requests-oauthlib/distinfo new file mode 100644 index 000000000000..d5dfad4ecf2f --- /dev/null +++ b/www/py-requests-oauthlib/distinfo @@ -0,0 +1,2 @@ +SHA256 (requests-oauthlib-0.3.1.tar.gz) = 2befccd11fb8e7170863ca678db11df6c3efb899d9a96124699e1187159f4329 +SIZE (requests-oauthlib-0.3.1.tar.gz) = 13811 diff --git a/www/py-requests-oauthlib/files/patch-setup.py b/www/py-requests-oauthlib/files/patch-setup.py new file mode 100644 index 000000000000..ded2543b6486 --- /dev/null +++ b/www/py-requests-oauthlib/files/patch-setup.py @@ -0,0 +1,12 @@ +--- ./setup.py.orig 2013-05-04 16:37:49.000000000 +1000 ++++ ./setup.py 2013-05-04 17:04:12.135652732 +1000 +@@ -43,6 +43,9 @@ + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + ), ++ zip_safe=False, ++ tests_require = ['mock'], ++ test_suite="tests", + ) + + diff --git a/www/py-requests-oauthlib/pkg-descr b/www/py-requests-oauthlib/pkg-descr new file mode 100644 index 000000000000..6b66c574163c --- /dev/null +++ b/www/py-requests-oauthlib/pkg-descr @@ -0,0 +1,6 @@ +This project provides first-class OAuth library support for Requests. + +OAuth can seem overly complicated and it sure has its quirks. Luckily, +requests_oauthlib hides most of these and let you focus at the task at hand. + +WWW: https://github.com/requests/requests-oauthlib diff --git a/www/py-requests-oauthlib/pkg-plist b/www/py-requests-oauthlib/pkg-plist new file mode 100644 index 000000000000..104dfd88189a --- /dev/null +++ b/www/py-requests-oauthlib/pkg-plist @@ -0,0 +1,25 @@ +@comment $FreeBSD$ +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% |