[packaging] more cleanups, handle javascript test files
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Jun 2010 15:30:28 +0200
changeset 5775 34195230dc2a
parent 5774 0d792bceb25d
child 5779 916ddfd72ac2
[packaging] more cleanups, handle javascript test files
MANIFEST.in
__pkginfo__.py
bin/qunit
devtools/devctl.py
devtools/test/data/dbfill.conf
web/data/cubicweb.old.css
--- a/MANIFEST.in	Thu Jun 17 15:15:52 2010 +0200
+++ b/MANIFEST.in	Thu Jun 17 15:30:28 2010 +0200
@@ -5,7 +5,7 @@
 include bin/cubicweb-*
 include man/cubicweb-ctl.1
 
-recursive-include doc README makefile *.conf *.py *.rst *.txt *.html *.png *.svg *.zargo *.dia
+recursive-include doc README makefile *.conf *.css *.py *.rst *.txt *.html *.png *.svg *.zargo *.dia
 
 recursive-include misc *.py *.png *.display
 
@@ -21,10 +21,15 @@
 recursive-include sobjects/test/data bootstrap_cubes *.py
 recursive-include hooks/test/data bootstrap_cubes *.py
 recursive-include server/test/data bootstrap_cubes *.py source*
-recursive-include web/test/data bootstrap_cubes *.py
-recursive-include devtools/test/data bootstrap_cubes *.py *.txt
+recursive-include devtools/test/data bootstrap_cubes *.py *.txt *.js
+recursive-include web/test/data bootstrap_cubes pouet.css *.py
+
+recursive-include web/test/jstests *.js *.html *.css *.json
+recursive-include web/test/windmill *.py
 
 recursive-include skeleton *.py *.css *.js *.po compat *.in *.tmpl
 
+prune doc/book/en/.static/
+prune doc/book/fr/.static/
 prune misc/cwfs
 prune goa
--- a/__pkginfo__.py	Thu Jun 17 15:15:52 2010 +0200
+++ b/__pkginfo__.py	Thu Jun 17 15:30:28 2010 +0200
@@ -52,7 +52,7 @@
     'Twisted': '',
     # XXX graphviz
     # server dependencies
-    'logilab-database': '1.1.0',
+    'logilab-database': '>= 1.1.0',
     'pysqlite': '>= 2.5.5', # XXX install pysqlite2
     }
 
--- a/bin/qunit	Thu Jun 17 15:15:52 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#!/usr/bin/python
-import sys
-
-from cubicweb.devtools.qunit import make_qunit_html
-
-print make_qunit_html(sys.argv[1], sys.argv[2:])
--- a/devtools/devctl.py	Thu Jun 17 15:15:52 2010 +0200
+++ b/devtools/devctl.py	Thu Jun 17 15:30:28 2010 +0200
@@ -741,10 +741,21 @@
             p = Popen((viewer, out))
             p.wait()
 
+
+class GenerateQUnitHTML(Command):
+    """Generate a QUnit html file to see test in your browser"""
+    name = "qunit-html"
+    arguments = '<test file> [<dependancy js file>...]'
+
+    def run(self, args):
+        from cubicweb.devtools.qunit import make_qunit_html
+        print make_qunit_html(args[0], args[1:])
+
 register_commands((UpdateCubicWebCatalogCommand,
                    UpdateTemplateCatalogCommand,
                    #LiveServerCommand,
                    NewCubeCommand,
                    ExamineLogCommand,
                    GenerateSchema,
+                   GenerateQUnitHTML,
                    ))
--- a/devtools/test/data/dbfill.conf	Thu Jun 17 15:15:52 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-[BASE]
-APPLICATION_SCHEMA = /home/adim/cvs_work/soft_prive/ginco/applications/crm/schema
-APPLICATION_HOME = /home/adim/etc/erudi.d/crmadim # ???
-FAKEDB_NAME = crmtest
-ENCODING = UTF-8
-HOST = crater
-USER = adim
-PASSWORD = adim
-
-
-[ENTITIES]
-default = 20 #means default is 20 entities
-Person = 10 # means 10 Persons
-Company = 5# means 5 companies
-
-
-[RELATIONS]
-Person works_for Company = 4
-Division subsidiary_of Company = 3
-
-[DEFAULT_VALUES]
-Person.firstname = data/firstnames.txt
--- a/web/data/cubicweb.old.css	Thu Jun 17 15:15:52 2010 +0200
+++ b/web/data/cubicweb.old.css	Thu Jun 17 15:30:28 2010 +0200
@@ -1,6 +1,6 @@
 /*
  *  :organization: Logilab
- *  :copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+ *  :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
  *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
  */