class ConfigAll(Config): """ All parameters for the run """ do_ps = ParamCreator.create_bool(default=True, help_string="do postscript?") do_pdf = ParamCreator.create_bool(default=True, help_string="do pdf?") do_debug = ParamCreator.create_bool(default=False, help_string="emit debug info?") unlink_ps = ParamCreator.create_bool( default=False, help_string="unlink the postscript file at the end?") do_qpdf = ParamCreator.create_bool( default=True, help_string="do you want to linearize the pdf file afterwards?") # we should work with warnings and try and solve all of them loglevel = ParamCreator.create_enum( enum_type=LilypondLogLevels, default=LilypondLogLevels.WARNING, help_string="what warning level do you want?", ) do_pdfred = ParamCreator.create_bool( default=False, help_string="should we reduce the pdf size?") # this should be set to True stop_on_output = ParamCreator.create_bool( default=True, help_string="should we stop on any output from the lilypond process?", ) # parameters without defaults (should be supplied by the user on the command line) ps = ParamCreator.create_new_file(help_string="postscript to produce") pdf = ParamCreator.create_new_file(help_string="pdf to produce") out = ParamCreator.create_str(help_string="pdf without suffix") ly = ParamCreator.create_existing_file(help_string="lilypond input")
class ConfigData(Config): """ All parameters for the pypitools module """ upload_method = ParamCreator.create_enum( help_string="What upload method to use?", default=UploadMethod.TWINE, enum_type=UploadMethod, ) clean_before = ParamCreator.create_bool( help_string="Should we clean before we start?", default=False, ) clean_after = ParamCreator.create_bool( help_string="Should we clean after we finish?", default=False, ) install_in_user_folder = ParamCreator.create_bool( help_string="Should we install globally or in the users folder?", default=False, ) upload_wheel = ParamCreator.create_bool( help_string="Should we build and upload a wheel?", default=True, ) upload_sdist = ParamCreator.create_bool( help_string="Should we build and upload a source distribution?", default=True, ) use_sudo = ParamCreator.create_bool( help_string="should we use sudo?", default=False, ) pip_quiet = ParamCreator.create_bool( help_string="Should we run pip quietly?", default=True, ) setup_quiet = ParamCreator.create_bool( help_string="Should we run the setup quietly?", default=True, ) pip = ParamCreator.create_str( help_string="What pip to use?", default="pip", ) requirements = ParamCreator.create_str( help_string="What requirements.txt file to use?", default="requirements.txt", ) gemfury_user = ParamCreator.create_str( help_string="What gemfury user name to use?", default=None, ) python = ParamCreator.create_str( help_string="What python to use?", default="python", ) register_method = ParamCreator.create_enum( help_string="What method to register the module using?", default=RegisterMethod.UPLOAD, enum_type=RegisterMethod, ) module_name = ParamCreator.create_str( help_string="What is the module name?", default=os.path.basename(os.getcwd()), ) check_before_upload = ParamCreator.create_bool( help_string="Should we check the packages before uploading?", default=True, ) wheel_folder = ParamCreator.create_str( default="wheel", help_string="what folder to get all dependencies into?", )