cleanup .ini file generation

Issue #278 new
domruf created an issue

There are currently to ways to generate .ini files: gearbox make-config and generate-ini.py

The goal should be to only have one.

Also, maybe test.ini should be generated on the fly. And development.ini should be removed and generated by the user instead.

Comments (2)

  1. Thomas De Schampheleire

    I assume you are talking about the handling code itself, right? As the purpose of both scripts are different: make-config is the user-facing command to create a basic ini file from the template. The script does not make any real changes. 'generate-ini.py' is a developer script to regenerate the version-controlled scripts based on the template and some rules that define the differences between e.g development.ini and test.ini.

  2. Mads Kiilerich

    Yes, but we could perhaps use make-config to generate development.ini and test.ini.

    Or we could drop both of these .ini files. People could create their own development.ini with make-config. test.ini could be generated when running the tests. By writing a test.ini with the right sqlalchemy.url, we wouldn't need a TEST_DB hack in the git hooks.

  3. Log in to comment