summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-01-08 20:58:29 +0000
committeradam <adam@pkgsrc.org>2020-01-08 20:58:29 +0000
commit2e36fe4d6179f7f9dde6a5d59bc12e24dd49441f (patch)
treef0712ccc72fb468301bd14c1296b0e48d9c1653e /www
parent2c45b3aebf06ec6a8d2650d17fa173797ea001e9 (diff)
downloadpkgsrc-2e36fe4d6179f7f9dde6a5d59bc12e24dd49441f.tar.gz
py-uvicorn: added version 0.11.1
Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools. Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile5
-rw-r--r--www/py-uvicorn/ALTERNATIVES1
-rw-r--r--www/py-uvicorn/DESCR7
-rw-r--r--www/py-uvicorn/Makefile28
-rw-r--r--www/py-uvicorn/PLIST110
-rw-r--r--www/py-uvicorn/distinfo7
-rw-r--r--www/py-uvicorn/patches/patch-setup.py14
7 files changed, 171 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile
index 3cf3fb4e0fc..f26b59792d0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1422 2020/01/08 19:58:20 adam Exp $
+# $NetBSD: Makefile,v 1.1423 2020/01/08 20:58:29 adam Exp $
#
COMMENT= Packages related to the World Wide Web
@@ -737,12 +737,14 @@ SUBDIR+= py-grappelli_safe
SUBDIR+= py-gunicorn
SUBDIR+= py-h11
SUBDIR+= py-h2
+SUBDIR+= py-hstspreload
SUBDIR+= py-http-parser
SUBDIR+= py-http_ece
SUBDIR+= py-httpbin
SUBDIR+= py-httpie
SUBDIR+= py-httplib2
SUBDIR+= py-httptools
+SUBDIR+= py-httpx
SUBDIR+= py-hyperframe
SUBDIR+= py-hyperlink
SUBDIR+= py-idna
@@ -797,6 +799,7 @@ SUBDIR+= py-trytond-webdav
SUBDIR+= py-twill
SUBDIR+= py-uliweb
SUBDIR+= py-urllib3
+SUBDIR+= py-uvicorn
SUBDIR+= py-uwsgi
SUBDIR+= py-uwsgitop
SUBDIR+= py-w3lib
diff --git a/www/py-uvicorn/ALTERNATIVES b/www/py-uvicorn/ALTERNATIVES
new file mode 100644
index 00000000000..3357bffd4af
--- /dev/null
+++ b/www/py-uvicorn/ALTERNATIVES
@@ -0,0 +1 @@
+bin/uvicorn @PREFIX@/bin/uvicorn-@PYVERSSUFFIX@
diff --git a/www/py-uvicorn/DESCR b/www/py-uvicorn/DESCR
new file mode 100644
index 00000000000..a5f9ac5ba43
--- /dev/null
+++ b/www/py-uvicorn/DESCR
@@ -0,0 +1,7 @@
+Uvicorn is a lightning-fast ASGI server implementation, using uvloop and
+httptools.
+
+Until recently Python has lacked a minimal low-level server/application
+interface for asyncio frameworks. The ASGI specification fills this gap, and
+means we're now able to start building a common set of tooling usable across
+all asyncio frameworks.
diff --git a/www/py-uvicorn/Makefile b/www/py-uvicorn/Makefile
new file mode 100644
index 00000000000..a0655f03be2
--- /dev/null
+++ b/www/py-uvicorn/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2020/01/08 20:58:29 adam Exp $
+
+DISTNAME= uvicorn-0.11.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= www python
+MASTER_SITES= ${MASTER_SITE_PYPI:=u/uvicorn/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/encode/uvicorn
+COMMENT= The lightning-fast ASGI server
+LICENSE= modified-bsd
+
+DEPENDS+= ${PYPKGPREFIX}-click>=7.0:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-h11>=0.8:../../www/py-h11
+DEPENDS+= ${PYPKGPREFIX}-httptools>=0.0.13:../../www/py-httptools
+DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.14.0:../../devel/py-uvloop
+DEPENDS+= ${PYPKGPREFIX}-websockets>=8.0:../../www/py-websockets
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && \
+ ${MV} uvicorn uvicorn-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-uvicorn/PLIST b/www/py-uvicorn/PLIST
new file mode 100644
index 00000000000..a64cfe470d3
--- /dev/null
+++ b/www/py-uvicorn/PLIST
@@ -0,0 +1,110 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/08 20:58:29 adam Exp $
+bin/uvicorn-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/uvicorn/__init__.py
+${PYSITELIB}/uvicorn/__init__.pyc
+${PYSITELIB}/uvicorn/__init__.pyo
+${PYSITELIB}/uvicorn/__main__.py
+${PYSITELIB}/uvicorn/__main__.pyc
+${PYSITELIB}/uvicorn/__main__.pyo
+${PYSITELIB}/uvicorn/config.py
+${PYSITELIB}/uvicorn/config.pyc
+${PYSITELIB}/uvicorn/config.pyo
+${PYSITELIB}/uvicorn/importer.py
+${PYSITELIB}/uvicorn/importer.pyc
+${PYSITELIB}/uvicorn/importer.pyo
+${PYSITELIB}/uvicorn/lifespan/__init__.py
+${PYSITELIB}/uvicorn/lifespan/__init__.pyc
+${PYSITELIB}/uvicorn/lifespan/__init__.pyo
+${PYSITELIB}/uvicorn/lifespan/off.py
+${PYSITELIB}/uvicorn/lifespan/off.pyc
+${PYSITELIB}/uvicorn/lifespan/off.pyo
+${PYSITELIB}/uvicorn/lifespan/on.py
+${PYSITELIB}/uvicorn/lifespan/on.pyc
+${PYSITELIB}/uvicorn/lifespan/on.pyo
+${PYSITELIB}/uvicorn/logging.py
+${PYSITELIB}/uvicorn/logging.pyc
+${PYSITELIB}/uvicorn/logging.pyo
+${PYSITELIB}/uvicorn/loops/__init__.py
+${PYSITELIB}/uvicorn/loops/__init__.pyc
+${PYSITELIB}/uvicorn/loops/__init__.pyo
+${PYSITELIB}/uvicorn/loops/asyncio.py
+${PYSITELIB}/uvicorn/loops/asyncio.pyc
+${PYSITELIB}/uvicorn/loops/asyncio.pyo
+${PYSITELIB}/uvicorn/loops/auto.py
+${PYSITELIB}/uvicorn/loops/auto.pyc
+${PYSITELIB}/uvicorn/loops/auto.pyo
+${PYSITELIB}/uvicorn/loops/uvloop.py
+${PYSITELIB}/uvicorn/loops/uvloop.pyc
+${PYSITELIB}/uvicorn/loops/uvloop.pyo
+${PYSITELIB}/uvicorn/main.py
+${PYSITELIB}/uvicorn/main.pyc
+${PYSITELIB}/uvicorn/main.pyo
+${PYSITELIB}/uvicorn/middleware/__init__.py
+${PYSITELIB}/uvicorn/middleware/__init__.pyc
+${PYSITELIB}/uvicorn/middleware/__init__.pyo
+${PYSITELIB}/uvicorn/middleware/asgi2.py
+${PYSITELIB}/uvicorn/middleware/asgi2.pyc
+${PYSITELIB}/uvicorn/middleware/asgi2.pyo
+${PYSITELIB}/uvicorn/middleware/debug.py
+${PYSITELIB}/uvicorn/middleware/debug.pyc
+${PYSITELIB}/uvicorn/middleware/debug.pyo
+${PYSITELIB}/uvicorn/middleware/message_logger.py
+${PYSITELIB}/uvicorn/middleware/message_logger.pyc
+${PYSITELIB}/uvicorn/middleware/message_logger.pyo
+${PYSITELIB}/uvicorn/middleware/proxy_headers.py
+${PYSITELIB}/uvicorn/middleware/proxy_headers.pyc
+${PYSITELIB}/uvicorn/middleware/proxy_headers.pyo
+${PYSITELIB}/uvicorn/middleware/wsgi.py
+${PYSITELIB}/uvicorn/middleware/wsgi.pyc
+${PYSITELIB}/uvicorn/middleware/wsgi.pyo
+${PYSITELIB}/uvicorn/protocols/__init__.py
+${PYSITELIB}/uvicorn/protocols/__init__.pyc
+${PYSITELIB}/uvicorn/protocols/__init__.pyo
+${PYSITELIB}/uvicorn/protocols/http/__init__.py
+${PYSITELIB}/uvicorn/protocols/http/__init__.pyc
+${PYSITELIB}/uvicorn/protocols/http/__init__.pyo
+${PYSITELIB}/uvicorn/protocols/http/auto.py
+${PYSITELIB}/uvicorn/protocols/http/auto.pyc
+${PYSITELIB}/uvicorn/protocols/http/auto.pyo
+${PYSITELIB}/uvicorn/protocols/http/h11_impl.py
+${PYSITELIB}/uvicorn/protocols/http/h11_impl.pyc
+${PYSITELIB}/uvicorn/protocols/http/h11_impl.pyo
+${PYSITELIB}/uvicorn/protocols/http/httptools_impl.py
+${PYSITELIB}/uvicorn/protocols/http/httptools_impl.pyc
+${PYSITELIB}/uvicorn/protocols/http/httptools_impl.pyo
+${PYSITELIB}/uvicorn/protocols/utils.py
+${PYSITELIB}/uvicorn/protocols/utils.pyc
+${PYSITELIB}/uvicorn/protocols/utils.pyo
+${PYSITELIB}/uvicorn/protocols/websockets/__init__.py
+${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyc
+${PYSITELIB}/uvicorn/protocols/websockets/__init__.pyo
+${PYSITELIB}/uvicorn/protocols/websockets/auto.py
+${PYSITELIB}/uvicorn/protocols/websockets/auto.pyc
+${PYSITELIB}/uvicorn/protocols/websockets/auto.pyo
+${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.py
+${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyc
+${PYSITELIB}/uvicorn/protocols/websockets/websockets_impl.pyo
+${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.py
+${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyc
+${PYSITELIB}/uvicorn/protocols/websockets/wsproto_impl.pyo
+${PYSITELIB}/uvicorn/subprocess.py
+${PYSITELIB}/uvicorn/subprocess.pyc
+${PYSITELIB}/uvicorn/subprocess.pyo
+${PYSITELIB}/uvicorn/supervisors/__init__.py
+${PYSITELIB}/uvicorn/supervisors/__init__.pyc
+${PYSITELIB}/uvicorn/supervisors/__init__.pyo
+${PYSITELIB}/uvicorn/supervisors/multiprocess.py
+${PYSITELIB}/uvicorn/supervisors/multiprocess.pyc
+${PYSITELIB}/uvicorn/supervisors/multiprocess.pyo
+${PYSITELIB}/uvicorn/supervisors/statreload.py
+${PYSITELIB}/uvicorn/supervisors/statreload.pyc
+${PYSITELIB}/uvicorn/supervisors/statreload.pyo
+${PYSITELIB}/uvicorn/workers.py
+${PYSITELIB}/uvicorn/workers.pyc
+${PYSITELIB}/uvicorn/workers.pyo
diff --git a/www/py-uvicorn/distinfo b/www/py-uvicorn/distinfo
new file mode 100644
index 00000000000..06bbe480b6f
--- /dev/null
+++ b/www/py-uvicorn/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/01/08 20:58:29 adam Exp $
+
+SHA1 (uvicorn-0.11.1.tar.gz) = afec7165ec366bf55fea1e3e252b8c73b60847a7
+RMD160 (uvicorn-0.11.1.tar.gz) = 583bc0eafe4ed58f6df3f992c2c707725d9d1c4b
+SHA512 (uvicorn-0.11.1.tar.gz) = 1f27507fbbeae1650aaca7d557a6a18deda56bef7d8c342ac701fbc5a1dcb7b1301dd4101d7deb51b8d5cd042a87743b5411270a82d56caf22534d483f9dfbd2
+Size (uvicorn-0.11.1.tar.gz) = 30284 bytes
+SHA1 (patch-setup.py) = c49ed35adca328427eeae9ea0b1b7a93ae60159b
diff --git a/www/py-uvicorn/patches/patch-setup.py b/www/py-uvicorn/patches/patch-setup.py
new file mode 100644
index 00000000000..617452a015c
--- /dev/null
+++ b/www/py-uvicorn/patches/patch-setup.py
@@ -0,0 +1,14 @@
+$NetBSD: patch-setup.py,v 1.1 2020/01/08 20:58:29 adam Exp $
+
+Avoid files outside PYSITELIB.
+
+--- setup.py.orig 2020-01-08 20:25:09.000000000 +0000
++++ setup.py
+@@ -61,7 +61,6 @@ setup(
+ author_email='tom@tomchristie.com',
+ packages=get_packages('uvicorn'),
+ install_requires=requirements,
+- data_files = [("", ["LICENSE.md"])],
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Web Environment',