Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-jsonrpc-server textproc/py-jsonrpc-server:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c8bddd73d28
branches:  trunk
changeset: 432058:1c8bddd73d28
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon May 18 13:34:30 2020 +0000

description:
textproc/py-jsonrpc-server: import py-jsonrpc-server-0.3.4

A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0
protocol. This library has been pulled out of the Python Language
Server project.

Asynchronous request handling is supported using Python 3's
concurrent.futures module and the Python 2 concurrent.futures
backport.

diffstat:

 textproc/py-jsonrpc-server/DESCR                  |   7 ++++
 textproc/py-jsonrpc-server/Makefile               |  33 +++++++++++++++++++++++
 textproc/py-jsonrpc-server/PLIST                  |  24 ++++++++++++++++
 textproc/py-jsonrpc-server/distinfo               |   7 ++++
 textproc/py-jsonrpc-server/patches/patch-setup.py |  16 +++++++++++
 5 files changed, 87 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r 29ba0cb0457d -r 1c8bddd73d28 textproc/py-jsonrpc-server/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-jsonrpc-server/DESCR  Mon May 18 13:34:30 2020 +0000
@@ -0,0 +1,7 @@
+A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0
+protocol. This library has been pulled out of the Python Language
+Server project.
+
+Asynchronous request handling is supported using Python 3's
+concurrent.futures module and the Python 2 concurrent.futures
+backport.
diff -r 29ba0cb0457d -r 1c8bddd73d28 textproc/py-jsonrpc-server/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-jsonrpc-server/Makefile       Mon May 18 13:34:30 2020 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2020/05/18 13:34:30 wiz Exp $
+
+DISTNAME=      python-jsonrpc-server-0.3.4
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
+CATEGORIES=    textproc net devel
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-jsonrpc-server/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/palantir/python-jsonrpc-server
+COMMENT=       Asynchronous JSON RPC server for Python
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+=      ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
+DEPENDS+=      ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
+.endif
+DEPENDS+=      ${PYPKGPREFIX}-ujson-[0-9]*:../../textproc/py-ujson
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+
+PYTHON_VERSIONED_DEPENDENCIES= test:test
+
+# does not work either
+#do-test:
+#      cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} py.test-${PYVERSSUFFIX}
+
+.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 29ba0cb0457d -r 1c8bddd73d28 textproc/py-jsonrpc-server/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-jsonrpc-server/PLIST  Mon May 18 13:34:30 2020 +0000
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/18 13:34:30 wiz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pyls_jsonrpc/__init__.py
+${PYSITELIB}/pyls_jsonrpc/__init__.pyc
+${PYSITELIB}/pyls_jsonrpc/__init__.pyo
+${PYSITELIB}/pyls_jsonrpc/_version.py
+${PYSITELIB}/pyls_jsonrpc/_version.pyc
+${PYSITELIB}/pyls_jsonrpc/_version.pyo
+${PYSITELIB}/pyls_jsonrpc/dispatchers.py
+${PYSITELIB}/pyls_jsonrpc/dispatchers.pyc
+${PYSITELIB}/pyls_jsonrpc/dispatchers.pyo
+${PYSITELIB}/pyls_jsonrpc/endpoint.py
+${PYSITELIB}/pyls_jsonrpc/endpoint.pyc
+${PYSITELIB}/pyls_jsonrpc/endpoint.pyo
+${PYSITELIB}/pyls_jsonrpc/exceptions.py
+${PYSITELIB}/pyls_jsonrpc/exceptions.pyc
+${PYSITELIB}/pyls_jsonrpc/exceptions.pyo
+${PYSITELIB}/pyls_jsonrpc/streams.py
+${PYSITELIB}/pyls_jsonrpc/streams.pyc
+${PYSITELIB}/pyls_jsonrpc/streams.pyo
diff -r 29ba0cb0457d -r 1c8bddd73d28 textproc/py-jsonrpc-server/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-jsonrpc-server/distinfo       Mon May 18 13:34:30 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/05/18 13:34:30 wiz Exp $
+
+SHA1 (python-jsonrpc-server-0.3.4.tar.gz) = ba831d36b8a7f6c6deb6a6f041121f2c0fd8f1f9
+RMD160 (python-jsonrpc-server-0.3.4.tar.gz) = 900bb755841932f6105be186d652aa82c6a7f54f
+SHA512 (python-jsonrpc-server-0.3.4.tar.gz) = a00af318baf89fe38ececc2080d7b3af8c2476280f9eb89670e5b0d3ceac046573be964bc2882c1b1894edc8ab4cb5fd69366980abe17bb1df857181821bcbd0
+Size (python-jsonrpc-server-0.3.4.tar.gz) = 26123 bytes
+SHA1 (patch-setup.py) = eb2dd2180683df93a65c3ab874edb9b40d4f7972
diff -r 29ba0cb0457d -r 1c8bddd73d28 textproc/py-jsonrpc-server/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-jsonrpc-server/patches/patch-setup.py Mon May 18 13:34:30 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/18 13:34:30 wiz Exp $
+
+Accept any ujson.
+https://github.com/palantir/python-jsonrpc-server/issues/36
+
+--- setup.py.orig      2020-01-19 16:34:33.000000000 +0000
++++ setup.py
+@@ -34,7 +34,7 @@ setup(
+     install_requires=[
+         'future>=0.14.0; python_version<"3"',
+         'futures; python_version<"3.2"',
+-        'ujson<=1.35; platform_system!="Windows"',
++        'ujson',
+     ],
+ 
+     # List additional groups of dependencies here (e.g. development



Home | Main Index | Thread Index | Old Index