graphite: 0.9.15 -> 1.0.2

Fixes: #29961

Also added the option:

  services.graphite.web.extraConfig

for configuring graphite_web.
This commit is contained in:
Bas van Dijk
2017-09-30 21:12:24 +02:00
parent 3fe7cddc30
commit 5b8ff5ed49
8 changed files with 144 additions and 27 deletions

View File

@@ -0,0 +1,8 @@
{ buildPythonPackage, django_1_8, waitress }:
buildPythonPackage {
name = "waitress-django";
src = ./.;
pythonPath = [ django_1_8 waitress ];
doCheck = false;
meta.description = "A waitress WSGI server serving django";
}

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python
from distutils.core import setup
setup( name = "waitress-django"
, version = "0.0.0"
, description = "A waitress WSGI server serving django"
, author = "Bas van Dijk"
, author_email = "v.dijk.bas@gmail.com"
, package_dir = {"" : "src"}
, scripts = ["src/waitress-serve-django"]
)

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python
import sys
from waitress import serve
from waitress.adjustments import Adjustments
import django
from django.core.handlers.wsgi import WSGIHandler
from django.contrib.staticfiles.handlers import StaticFilesHandler
if __name__ == "__main__":
kw, args = Adjustments.parse_args(sys.argv[1:])
django.setup()
# These arguments are specific to the runner, not waitress itself.
del kw['call'], kw['help']
serve(StaticFilesHandler(WSGIHandler()), **kw)