Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2019 04:13:10 +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: r501833 - in head/www: . py-prawcore py-prawcore/files
Message-ID:  <201905170413.x4H4DAHJ051608@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Fri May 17 04:13:09 2019
New Revision: 501833
URL: https://svnweb.freebsd.org/changeset/ports/501833

Log:
  [NEW PORT] www/py-prawcore: Low-level communication layer for PRAW 4+
  
  prawcore is a low-level communication layer for PRAW 4+.
  
  Features:
  
    * Dynamic rate limiting based on reddit's response headers.
    * Authorization URL generation
    * Retrieval of access and refresh tokens from authorization grants
    * Access and refresh token revocation
  
  WWW: https://github.com/praw-dev/prawcore

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

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri May 17 00:56:52 2019	(r501832)
+++ head/www/Makefile	Fri May 17 04:13:09 2019	(r501833)
@@ -1770,6 +1770,7 @@
     SUBDIR += py-plonetheme.sunburst
     SUBDIR += py-poster
     SUBDIR += py-praw
+    SUBDIR += py-prawcore
     SUBDIR += py-prewikka
     SUBDIR += py-priority
     SUBDIR += py-puppetboard

Added: head/www/py-prawcore/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-prawcore/Makefile	Fri May 17 04:13:09 2019	(r501833)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	prawcore
+PORTVERSION=	1.0.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs@FreeBSD.org
+COMMENT=	Low-level communication layer for PRAW 4+
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.6.0,<3.0.0:www/py-requests@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0.8:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}testfixtures>4.13.2,<7:devel/py-testfixtures@${PY_FLAVOR}
+# to be ported  betamax >=0.8, <0.9
+#               betamax-matchers >=0.3.0, <0.5
+#               betamax-serializers >=0.2, <0.3
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>

Added: head/www/py-prawcore/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-prawcore/distinfo	Fri May 17 04:13:09 2019	(r501833)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1558063235
+SHA256 (prawcore-1.0.1.tar.gz) = ab5558efb438aa73fc66c4178bfc809194dea3ce2addf4dec873de7e2fd2824e
+SIZE (prawcore-1.0.1.tar.gz) = 1148891

Added: head/www/py-prawcore/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-prawcore/files/patch-setup.py	Fri May 17 04:13:09 2019	(r501833)
@@ -0,0 +1,14 @@
+# Unpin mock dependency. mock 3.x works
+# https://github.com/praw-dev/prawcore/pull/77
+
+--- setup.py.orig	2019-05-17 03:34:46 UTC
++++ setup.py
+@@ -40,7 +40,7 @@ setup(name=PACKAGE_NAME,
+       tests_require=['betamax >=0.8, <0.9',
+                      'betamax_matchers >=0.4.0, <0.5',
+                      'betamax-serializers >=0.2.0, <0.3',
+-                     'mock >=0.8, <3',
++                     'mock >=0.8',
+                      'testfixtures >4.13.2, <7'],
+       test_suite='tests',
+       url='https://github.com/praw-dev/prawcore',

Added: head/www/py-prawcore/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-prawcore/pkg-descr	Fri May 17 04:13:09 2019	(r501833)
@@ -0,0 +1,10 @@
+prawcore is a low-level communication layer for PRAW 4+.
+
+Features:
+
+  * Dynamic rate limiting based on reddit's response headers.
+  * Authorization URL generation
+  * Retrieval of access and refresh tokens from authorization grants
+  * Access and refresh token revocation
+
+WWW: https://github.com/praw-dev/prawcore



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