diff scripts/generate-ini.py @ 6555:213085032127

gearbox: make a make-config sub-command available again Drop the old kallithea-config command line tool and rework it to a replacement for the make-config paster command. Make-config was experimental in paste, it doesn't exist with gearbox, it was tied to pylons, and we already have the luxury problem of having two ways of doing almost the same thing. This is a good opportunity to get rid of one of them. This replacement tool is Kallithea specific and doesn't need to be told that it is Kallithea it has to create a config file for. The command should thus perhaps be given a Kallithea specific name instead of the very generic name ...
author Mads Kiilerich <madski@unity3d.com>
date Mon, 12 Sep 2016 17:50:11 +0200
parents d89d586b26ae
children fc6b1b0e1096
line wrap: on
line diff
--- a/scripts/generate-ini.py	Tue Oct 25 21:32:24 2016 +0200
+++ b/scripts/generate-ini.py	Mon Sep 12 17:50:11 2016 +0200
@@ -1,14 +1,13 @@
 #!/usr/bin/env python2
 """
-Based on kallithea/bin/template.ini.mako, generate
-  kallithea/config/deployment.ini_tmpl
+Based on kallithea/lib/paster_commands/template.ini.mako, generate
   development.ini
   kallithea/tests/test.ini
 """
 
 import re
 
-makofile = 'kallithea/bin/template.ini.mako'
+makofile = 'kallithea/lib/paster_commands/template.ini.mako'
 
 # the mako conditionals used in all other ini files and templates
 selected_mako_conditionals = set([
@@ -28,14 +27,6 @@
 
 # files to be generated from the mako template
 ini_files = [
-    ('kallithea/config/deployment.ini_tmpl',
-        '''
-        Kallithea - Example config
-
-        The %(here)s variable will be replaced with the parent directory of this file
-        ''',
-        {}, # exactly the same settings as template.ini.mako
-    ),
     ('kallithea/tests/test.ini',
         '''
         Kallithea - config for tests: