Commit Graph

483 Commits

Author SHA1 Message Date
Martin A. Brown 6ad64ea0e0 add an arg_isfile 2016-02-23 12:18:46 -08:00
Martin A. Brown d5524f09ee move generic function into BaseDoctype 2016-02-23 12:18:33 -08:00
Martin A. Brown 80011bcf9d move generic function into BaseDoctype 2016-02-23 12:18:17 -08:00
Martin A. Brown 3788c4d265 get rid of the paths in mabrown home dir 2016-02-23 12:16:17 -08:00
Martin A. Brown 53c91eebe6 rename the hooks so they start with hook_ 2016-02-23 11:58:29 -08:00
Martin A. Brown a415484b5a separate operations by method and dependencies
use the generalized build sequence running supported by doctypes/common.py
2016-02-23 11:57:37 -08:00
Martin A. Brown df75f051db generalizing build sequence logic
ready for use in first doctype (linuxdoc)
2016-02-23 11:56:58 -08:00
Martin A. Brown 08df7acbe2 rework tracking of success vector 2016-02-23 11:08:04 -08:00
Martin A. Brown 1475cf7890 use arg_ checking functions; add build_precheck
rename platform_check to build_precheck
refer to arg_ checking functions from utils
ensure that just before each build we validate executables
avoid FD leakage by using with ... context for outf (stdout)
2016-02-23 11:05:28 -08:00
Martin A. Brown 11834a17cc initial work on supporting build verb 2016-02-23 11:05:04 -08:00
Martin A. Brown b4895a2e0b use arg_ checking functions from utils.py 2016-02-23 11:04:43 -08:00
Martin A. Brown 58246eb6e7 add config.py to the tldp package 2016-02-23 11:04:20 -08:00
Martin A. Brown 6c4fd88944 adding arg_* handlers; fix FD leakage in execute
fix FD leakage in function execute: must close stdout and stderr if
execute opens them (process logging in per-document logdir)
add functions arg_isloglevel, arg_isdirectory and arg_isexecutable
2016-02-23 11:02:36 -08:00
Martin A. Brown 4f335dda98 adding a TODO file to the package 2016-02-23 09:45:26 -08:00
Martin A. Brown f9453185df deleting unnecessary platform.py file 2016-02-23 09:44:12 -08:00
Martin A. Brown 51fabb65d7 change platform to config 2016-02-23 09:43:27 -08:00
Martin A. Brown 13bb8d3129 remove reference to platform 2016-02-23 09:43:06 -08:00
Martin A. Brown 3a0ee539fa adding [%(default)s] to each argparse entry 2016-02-23 09:08:08 -08:00
Martin A. Brown 5508d1113b repair detail() and status() generation functions
and pass args into all driver functions
2016-02-23 09:00:27 -08:00
Martin A. Brown f567a0be13 add status_classes for user interaction 2016-02-23 08:59:56 -08:00
Martin A. Brown 04c10a6af9 refer to %(default)s; shorter lines 2016-02-23 08:59:37 -08:00
Martin A. Brown 7bb5e35aeb add detail method to source and output documents
the detail method produces some output listing about the
document and will soon include more verbosity
2016-02-23 08:44:16 -08:00
Martin A. Brown abb471c912 refer to status_classes and pep8 fix 2016-02-23 08:44:05 -08:00
Martin A. Brown 5dee57763c pep8 fix 2016-02-23 08:43:44 -08:00
Martin A. Brown d3be338b75 begin logic for user interaction in driver.py 2016-02-22 21:22:42 -08:00
Martin A. Brown 4fb18c8822 rename sources/outputs to singular; remember newer files 2016-02-22 21:22:17 -08:00
Martin A. Brown 01acf2dfa6 add a property/function for reporting missing files 2016-02-22 21:21:48 -08:00
Martin A. Brown c821eadac1 improve command-line utility; work out the kinks (before testing) 2016-02-22 21:21:24 -08:00
Martin A. Brown e46c844a94 renamed attr to "orphan" 2016-02-22 20:26:07 -08:00
Martin A. Brown ce7f703929 itemize valid types for status codes
and standardize on name 'orphan' (not 'orphans' or 'orphaned')
assume that SourceCollection and OutputCollection keys are always sorted
2016-02-22 20:24:19 -08:00
Martin A. Brown b62b732a23 correct location of logging.debug message, suppress None in cfg 2016-02-22 20:23:59 -08:00
Martin A. Brown 25add163cb rely on LDPDocumentCollection 2016-02-22 20:02:12 -08:00
Martin A. Brown fb0001a397 adding commonal parent class LDPDocumentCollection
factored out the dict-like behaviour (and added sorting behaviour)
from SourceCollection and OutputCollection to LDPDocumentCollection
2016-02-22 20:00:24 -08:00
Martin A. Brown 6fe55dc912 and deal with the problem ofg None 2016-02-22 18:03:44 -08:00
Martin A. Brown b6edf39aeb try the loglevel before using it 2016-02-22 17:46:41 -08:00
Martin A. Brown 2087719782 removing extraneous sample invocations 2016-02-22 17:28:15 -08:00
Martin A. Brown 15fe8fc3b6 factor out --dump-cli and --dump-env logic into functions 2016-02-22 17:27:27 -08:00
Martin A. Brown f6eedfcb7b flesh out CLI options and add --loglevel option 2016-02-22 17:10:45 -08:00
Martin A. Brown 7486a26cc3 initial commit of main 'ldptool' driver program 2016-02-22 16:20:15 -08:00
Martin A. Brown 82f5b63006 make CascadingConfig behave more like ArgumentParser 2016-02-22 16:19:05 -08:00
Martin A. Brown cfd54d4524 pep8 fixes 2016-02-22 13:04:26 -08:00
Martin A. Brown 4e07f2a52f absolute imports (and move isdirectory to utils) 2016-02-22 13:04:16 -08:00
Martin A. Brown 0a32e87dfc moving isdirectory into utils 2016-02-22 13:04:03 -08:00
Martin A. Brown bfd07eb4d5 remove superlong opts, make --help output prettier 2016-02-22 12:55:35 -08:00
Martin A. Brown 5d028836b4 better introductory text 2016-02-22 12:46:49 -08:00
Martin A. Brown ab93d6c25c adjusting trove classifiers, removing six dep 2016-02-22 12:46:35 -08:00
Martin A. Brown f15e1c7de1 correcting the license; it should have been MIT all along 2016-02-22 12:44:20 -08:00
Martin A. Brown afb8eeffcf adding the text of the MIT license 2016-02-22 12:43:59 -08:00
Martin A. Brown 8b7c4a574c adding the main config module for the application 2016-02-22 12:34:26 -08:00
Martin A. Brown 3f37d09fe9 add configurables and discovery of files
add argparse-style support to each doctype module, for path-configurables
also add the runtime discovery of files needed for document handling (e.g. XSL
and DSSSL files)
2016-02-22 12:32:35 -08:00