]> git.parisson.com Git - timeside.git/commitdiff
add django model diagram generation script, add django-extension to setup
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 4 Apr 2014 00:05:39 +0000 (02:05 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 4 Apr 2014 00:05:39 +0000 (02:05 +0200)
setup.py
tests/server/diag.sh [new file with mode: 0755]

index 0161f01e79df9fb62ce1fa14dbd9485932598c32..29250d8ed3d21c9c0048643467f2aa7d9802f4b4 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+
 from setuptools import setup, find_packages
 
 CLASSIFIERS = [
@@ -17,7 +18,7 @@ CLASSIFIERS = [
     'Topic :: Software Development :: Libraries :: Python Modules',
     ]
 
-KEYWORDS = 'audio analysis features extraction transcoding graph plot HTML5 player metadata'
+KEYWORDS = 'audio analysis features extraction MIR transcoding graph visualize plot HTML5 interactive metadata player'
 
 setup(
   name = "TimeSide",
@@ -38,6 +39,7 @@ setup(
         'scipy',
         'django',
         'jsonfield',
+        'django-extensions',
         ],
   platforms=['OS Independent'],
   license='Gnu Public License V2',
diff --git a/tests/server/diag.sh b/tests/server/diag.sh
new file mode 100755 (executable)
index 0000000..a76eca4
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+app="timeside"
+dir="diagram"
+
+if [ ! -d $dir ]; then
+       mkdir $dir
+fi
+
+./manage.py graph_models  -a > $dir/$app-all.dot
+./manage.py graph_models $app > $dir/$app.dot
+
+sed -i '/#\ /d' $dir/$app-all.dot
+sed -i '/#\ /d' $dir/$app.dot
+
+dot $dir/$app-all.dot -Tpdf -o $dir/$app-all.pdf
+dot $dir/$app.dot -Tpdf -o $dir/$app.pdf
+
+rsync -a $dir/ doc.parisson.com:/var/www/files/doc/$app/diagram/