summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2017-09-29 14:45:20 +0000
committerjoerg <joerg@pkgsrc.org>2017-09-29 14:45:20 +0000
commit599639e2a48917ba0a3b328bf4565d0bd93dab32 (patch)
tree78bb5fd24d88604d60c1364feb92c8cafdb3d763 /www
parent33717871227c96857f585ff261a382d06baacc61 (diff)
downloadpkgsrc-599639e2a48917ba0a3b328bf4565d0bd93dab32.tar.gz
Add py-whitenoise-4.0b3:
WhiteNoise provides radically simplified static file serving for Python web apps. With a couple of lines of config WhiteNoise allows your web app to serve its own static files, making it a self-contained unit that can be deployed anywhere without relying on nginx, Amazon S3 or any other external service. (Especially useful on Heroku, OpenShift and other PaaS providers.) It’s designed to work nicely with a CDN for high-traffic sites so you don’t have to sacrifice performance to benefit from simplicity. WhiteNoise works with any WSGI-compatible app but has some special auto-configuration features for Django. WhiteNoise takes care of best-practices for you, for instance: - Serving compressed content (gzip and Brotli formats, handling Accept-Encoding and Vary headers correctly) - Setting far-future cache headers on content which won’t change
Diffstat (limited to 'www')
-rw-r--r--www/py-whitenoise/DESCR21
-rw-r--r--www/py-whitenoise/Makefile16
-rw-r--r--www/py-whitenoise/PLIST50
-rw-r--r--www/py-whitenoise/distinfo6
4 files changed, 93 insertions, 0 deletions
diff --git a/www/py-whitenoise/DESCR b/www/py-whitenoise/DESCR
new file mode 100644
index 00000000000..48ac6c742f8
--- /dev/null
+++ b/www/py-whitenoise/DESCR
@@ -0,0 +1,21 @@
+WhiteNoise provides radically simplified static file serving for Python
+web apps.
+
+With a couple of lines of config WhiteNoise allows your web app to serve
+its own static files, making it a self-contained unit that can be
+deployed anywhere without relying on nginx, Amazon S3 or any other
+external service. (Especially useful on Heroku, OpenShift and other PaaS
+providers.)
+
+It’s designed to work nicely with a CDN for high-traffic sites so you
+don’t have to sacrifice performance to benefit from simplicity.
+
+WhiteNoise works with any WSGI-compatible app but has some special
+auto-configuration features for Django.
+
+WhiteNoise takes care of best-practices for you, for instance:
+
+- Serving compressed content (gzip and Brotli formats, handling
+Accept-Encoding and Vary headers correctly)
+
+- Setting far-future cache headers on content which won’t change
diff --git a/www/py-whitenoise/Makefile b/www/py-whitenoise/Makefile
new file mode 100644
index 00000000000..cb09e034852
--- /dev/null
+++ b/www/py-whitenoise/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2017/09/29 14:45:20 joerg Exp $
+
+DISTNAME= whitenoise-4.0b3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= www python
+MASTER_SITES= ${MASTER_SITE_PYPI:=w/whitenoise/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://whitenoise.evans.io/
+COMMENT= Simplified static file serving for WSGI applications
+LICENSE= mit
+
+USE_LANGUAGES= # empty
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-whitenoise/PLIST b/www/py-whitenoise/PLIST
new file mode 100644
index 00000000000..88f8093ca4b
--- /dev/null
+++ b/www/py-whitenoise/PLIST
@@ -0,0 +1,50 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/29 14:45:20 joerg Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/whitenoise/__init__.py
+${PYSITELIB}/whitenoise/__init__.pyc
+${PYSITELIB}/whitenoise/__init__.pyo
+${PYSITELIB}/whitenoise/base.py
+${PYSITELIB}/whitenoise/base.pyc
+${PYSITELIB}/whitenoise/base.pyo
+${PYSITELIB}/whitenoise/compress.py
+${PYSITELIB}/whitenoise/compress.pyc
+${PYSITELIB}/whitenoise/compress.pyo
+${PYSITELIB}/whitenoise/django.py
+${PYSITELIB}/whitenoise/django.pyc
+${PYSITELIB}/whitenoise/django.pyo
+${PYSITELIB}/whitenoise/httpstatus_backport.py
+${PYSITELIB}/whitenoise/httpstatus_backport.pyc
+${PYSITELIB}/whitenoise/httpstatus_backport.pyo
+${PYSITELIB}/whitenoise/media_types.py
+${PYSITELIB}/whitenoise/media_types.pyc
+${PYSITELIB}/whitenoise/media_types.pyo
+${PYSITELIB}/whitenoise/middleware.py
+${PYSITELIB}/whitenoise/middleware.pyc
+${PYSITELIB}/whitenoise/middleware.pyo
+${PYSITELIB}/whitenoise/responders.py
+${PYSITELIB}/whitenoise/responders.pyc
+${PYSITELIB}/whitenoise/responders.pyo
+${PYSITELIB}/whitenoise/runserver_nostatic/__init__.py
+${PYSITELIB}/whitenoise/runserver_nostatic/__init__.pyc
+${PYSITELIB}/whitenoise/runserver_nostatic/__init__.pyo
+${PYSITELIB}/whitenoise/runserver_nostatic/management/__init__.py
+${PYSITELIB}/whitenoise/runserver_nostatic/management/__init__.pyc
+${PYSITELIB}/whitenoise/runserver_nostatic/management/__init__.pyo
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/__init__.py
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/__init__.pyc
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/__init__.pyo
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/runserver.py
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/runserver.pyc
+${PYSITELIB}/whitenoise/runserver_nostatic/management/commands/runserver.pyo
+${PYSITELIB}/whitenoise/scantree.py
+${PYSITELIB}/whitenoise/scantree.pyc
+${PYSITELIB}/whitenoise/scantree.pyo
+${PYSITELIB}/whitenoise/storage.py
+${PYSITELIB}/whitenoise/storage.pyc
+${PYSITELIB}/whitenoise/storage.pyo
+${PYSITELIB}/whitenoise/string_utils.py
+${PYSITELIB}/whitenoise/string_utils.pyc
+${PYSITELIB}/whitenoise/string_utils.pyo
diff --git a/www/py-whitenoise/distinfo b/www/py-whitenoise/distinfo
new file mode 100644
index 00000000000..542dd3e38c6
--- /dev/null
+++ b/www/py-whitenoise/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/09/29 14:45:20 joerg Exp $
+
+SHA1 (whitenoise-4.0b3.tar.gz) = e2e11b03211cef859ecf71524eb3311b3a85eda5
+RMD160 (whitenoise-4.0b3.tar.gz) = 6b93d167164d05cb04ef1e37baab377966890a87
+SHA512 (whitenoise-4.0b3.tar.gz) = f7707203391ee31ea41a2658bdcba1a377d15229539dc4b7d9f13ce5ea94839cb25bccd28a88f053cd664019c1d9c5bc2046a53d8bb40c02025a30b685ee9370
+Size (whitenoise-4.0b3.tar.gz) = 40696 bytes