pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-priority: Import py-priority-1.3.0 as wip/py-priority



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <iamleot%gmail.com@localhost>
Pushed By:	leot
Date:		Thu Jun 28 01:21:04 2018 +0200
Changeset:	2213cf1a3e8df5985fb7c75e38253fea5c851a1c

Modified Files:
	Makefile
Added Files:
	py-priority/DESCR
	py-priority/Makefile
	py-priority/PLIST
	py-priority/distinfo

Log Message:
py-priority: Import py-priority-1.3.0 as wip/py-priority

Priority is a pure-Python implementation of the priority logic for HTTP/2, set
out in RFC 7540 Section 5.3 (Stream Priority). This logic allows for clients
to express a preference for how the server allocates its (limited) resources to
the many outstanding HTTP requests that may be running over a single HTTP/2
connection.

Specifically, this Python implementation uses a variant of the implementation
used in the excellent H2O project. This original implementation is also the
inspiration for nghttp2's priority implementation, and generally produces a
very clean and even priority stream. The only notable changes from H2O's
implementation are small modifications to allow the priority implementation to
work cleanly as a separate implementation, rather than being embedded in a
HTTP/2 stack directly.

While priority information in HTTP/2 is only a suggestion, rather than an
enforceable constraint, where possible servers should respect the priority
requests of their clients.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2213cf1a3e8df5985fb7c75e38253fea5c851a1c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile             |  1 +
 py-priority/DESCR    | 17 +++++++++++++++++
 py-priority/Makefile | 16 ++++++++++++++++
 py-priority/PLIST    | 11 +++++++++++
 py-priority/distinfo |  6 ++++++
 5 files changed, 51 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6255f89504..59947603c2 100644
--- a/Makefile
+++ b/Makefile
@@ -3544,6 +3544,7 @@ SUBDIR+=	py-prel
 SUBDIR+=	py-premailer
 SUBDIR+=	py-print
 SUBDIR+=	py-prioritized-methods
+SUBDIR+=	py-priority
 SUBDIR+=	py-processing
 SUBDIR+=	py-prody
 SUBDIR+=	py-professor
diff --git a/py-priority/DESCR b/py-priority/DESCR
new file mode 100644
index 0000000000..d1b2bafe35
--- /dev/null
+++ b/py-priority/DESCR
@@ -0,0 +1,17 @@
+Priority is a pure-Python implementation of the priority logic for HTTP/2, set
+out in RFC 7540 Section 5.3 (Stream Priority). This logic allows for clients
+to express a preference for how the server allocates its (limited) resources to
+the many outstanding HTTP requests that may be running over a single HTTP/2
+connection.
+
+Specifically, this Python implementation uses a variant of the implementation
+used in the excellent H2O project. This original implementation is also the
+inspiration for nghttp2's priority implementation, and generally produces a
+very clean and even priority stream. The only notable changes from H2O's
+implementation are small modifications to allow the priority implementation to
+work cleanly as a separate implementation, rather than being embedded in a
+HTTP/2 stack directly.
+
+While priority information in HTTP/2 is only a suggestion, rather than an
+enforceable constraint, where possible servers should respect the priority
+requests of their clients.
diff --git a/py-priority/Makefile b/py-priority/Makefile
new file mode 100644
index 0000000000..169ca2ba31
--- /dev/null
+++ b/py-priority/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+DISTNAME=	priority-1.3.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	www python
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/priority/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://python-hyper.org/priority/
+COMMENT=	Pure-Python implementation of the HTTP/2 priority tree
+LICENSE=	mit
+
+USE_LANGUAGES=	# none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-priority/PLIST b/py-priority/PLIST
new file mode 100644
index 0000000000..464a2b3b2c
--- /dev/null
+++ b/py-priority/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/priority/__init__.py
+${PYSITELIB}/priority/__init__.pyc
+${PYSITELIB}/priority/__init__.pyo
+${PYSITELIB}/priority/priority.py
+${PYSITELIB}/priority/priority.pyc
+${PYSITELIB}/priority/priority.pyo
diff --git a/py-priority/distinfo b/py-priority/distinfo
new file mode 100644
index 0000000000..9cf613c90c
--- /dev/null
+++ b/py-priority/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (priority-1.3.0.tar.gz) = 123ceeef0a899d52d790d756f032f655d645d135
+RMD160 (priority-1.3.0.tar.gz) = 65e0bab05dd5452489c266f7405dcf4ce5801ed2
+SHA512 (priority-1.3.0.tar.gz) = cefb13b15e99ef98c37fdd1486466c9e1d7d04b4574cbca1665fde7b7b44cc7d66964bed41184315a9b51bd6f9d0e02bbe113bfa004a754ac270170309b71e0a
+Size (priority-1.3.0.tar.gz) = 13827 bytes


Home | Main Index | Thread Index | Old Index