Commit Graph

293 Commits

Author SHA1 Message Date
Martin A. Brown 211cb6dd5c adding a bunch more testing for 2016-03-01 11:02:44 -08:00
Martin A. Brown b54962900d allow case-insensitive matching for document types
The Python names for the document types are upper-cased and probably not
predictably named for the end user; allow a case-insensitive match when trying
to turn off building or listing for a particular document type.
2016-03-01 11:01:32 -08:00
Martin A. Brown aff926bb58 improve the handling of --skip 2016-03-01 10:30:18 -08:00
Martin A. Brown 4b52db51a7 add some explanatory text and full option set
add explanatory text and a full set of options for all of the section
fragments of the ldptool.ini
2016-03-01 09:35:47 -08:00
Martin A. Brown 648d2f43a1 bump to beta quality 2016-03-01 09:15:09 -08:00
Martin A. Brown fe54af73a5 add default (system) configuration file 2016-03-01 09:04:45 -08:00
Martin A. Brown e5d9731e3d create directory /etc/ldptool with ldptool.ini (syntax correction) 2016-03-01 08:59:40 -08:00
Martin A. Brown 3f740226b5 create directory /etc/ldptool with ldptool.ini 2016-03-01 08:59:15 -08:00
Martin A. Brown 1f9dd5db4b adding stock configuration file 2016-03-01 08:37:48 -08:00
Martin A. Brown 8792b4c83a make individual assertions 2016-03-01 08:20:57 -08:00
Martin A. Brown 6e2041692e skip orphaned documents passed into build() 2016-03-01 07:31:52 -08:00
Martin A. Brown c4ee8366f9 reporting when skipping a dir/file in sourcedir 2016-03-01 07:31:19 -08:00
Martin A. Brown 388215186e adding main() as entry point 2016-03-01 07:15:35 -08:00
Martin A. Brown 95af3b8c71 change entry point to main() 2016-03-01 07:15:17 -08:00
Martin A. Brown bb14a8cb51 allow file to be specified for summary
also allow the creation of an in-memory OutputDirectory object before build
2016-02-29 21:32:20 -08:00
Martin A. Brown fe3a0ed447 initial commot of 2016-02-29 21:31:55 -08:00
Martin A. Brown dfc9855991 logic overhaul; abstract inventory creation
each function was creating its own inventory; this is not necessary
also, if a user wants only to build a single document, it is not necessary to
scan the entire source and output directory (small, but perceptible speedup to
the end user)
better checking of the various different possible argument types, since an
argument can be a filename, a status_class or a stem
2016-02-29 20:33:33 -08:00
Martin A. Brown 16885508da pep8/pyflakes 2016-02-29 20:33:14 -08:00
Martin A. Brown 363bba8a37 pep8/pyflakes 2016-02-29 20:32:36 -08:00
Martin A. Brown 914c37006b complete missing logic in setupcollections 2016-02-29 18:05:51 -08:00
Martin A. Brown 247019e646 pep8 fixes 2016-02-29 18:05:14 -08:00
Martin A. Brown 2974c6b5d7 a little __repr__ test to improve coverage 2016-02-29 18:04:44 -08:00
Martin A. Brown 56b1a027ca access inventory by status class name
create method getByStatusClass() and add testing
2016-02-29 18:03:16 -08:00
Martin A. Brown d807c02173 create and use general function arg_issourcedoc
a source document is defined as either a file with a known ending (e.g. .xml,
.sgml) or a directory name containing a file with the directory name plus a
known extension

create a small function (arg_issourcedoc), which takes a filename and returns
that filename if it is (possibly) a source document or, if it is a directory,
finds the main file in the directory which represents the main document
2016-02-29 17:59:49 -08:00
Martin A. Brown 17a60e367a make the action --options a mutually exclusive group 2016-02-29 17:56:41 -08:00
Martin A. Brown fa73f93080 messed up indentation 2016-02-29 11:37:13 -08:00
Martin A. Brown 40bcabbe79 check attrs before setting 2016-02-29 11:32:30 -08:00
Martin A. Brown ddb5424941 get 100% coverage on the module 2016-02-29 11:32:01 -08:00
Martin A. Brown 6cdf0b65c1 explicitly stringify values at "input"
user can pass in a dict(); os.environ always contains string values, though,
so make sure that the dict() looks like what would be returned from os.environ
2016-02-29 10:48:03 -08:00
Martin A. Brown 1ee227f3f2 adding some basic testing for configuration file reading 2016-02-29 10:47:48 -08:00
Martin A. Brown 7633cd1c49 adding a missed test for arg_isdirectory 2016-02-29 10:47:30 -08:00
Martin A. Brown 9643c44b7a move many generic package testing tools
test_inventory was a good place to develop some of those tools, but they are
now needed for testing and others; moving them
2016-02-29 10:46:36 -08:00
Martin A. Brown 98dd5ecdf8 no config validation yet
(and, I should not have used such terms inline in code)
2016-02-27 11:29:05 -08:00
Martin A. Brown 36e92b83d9 perform the processor prebuild check first
it is smarter to perform the non-destructive check first, rather than blowing
away the output directory and then reporting that it is impossible to rebuild
the document output tree
2016-02-27 11:13:58 -08:00
Martin A. Brown fe520cd583 add logging logic to 2016-02-27 10:52:35 -08:00
Martin A. Brown 5f11427f38 remove pipe from script 2016-02-27 10:46:18 -08:00
Martin A. Brown 29a109de3a added timing info 2016-02-27 09:54:04 -08:00
Martin A. Brown c2e36456d5 adding dependency and ldptool console script creater 2016-02-27 09:46:21 -08:00
Martin A. Brown 55cc7d5775 improve visual grouping of --help output
use argparse's ArgumentGroups to separate the argparse options for each of the
2016-02-27 09:45:32 -08:00
Martin A. Brown eac92b5354 add the document stem to the __repr__ 2016-02-26 23:18:50 -08:00
Martin A. Brown 066f319156 change wrapped function name to "timing" for log entry 2016-02-26 23:18:24 -08:00
Martin A. Brown ee68a453d2 exit 1 and report extra args on CLI 2016-02-26 23:18:02 -08:00
Martin A. Brown 9137946a05 adding timing to a few methods 2016-02-26 23:02:00 -08:00
Martin A. Brown e6833f3989 and comma-separated in --verbose mode, too 2016-02-26 22:22:00 -08:00
Martin A. Brown 57055e582d better production of status list 2016-02-26 22:19:30 -08:00
Martin A. Brown e9ad013eb3 updating TODO list (removing stuf) 2016-02-26 22:19:01 -08:00
Martin A. Brown 1c4f283482 handle the images and resources during publication 2016-02-26 22:18:02 -08:00
Martin A. Brown 2509fcfe16 adding a bad example 2016-02-26 20:07:50 -08:00
Martin A. Brown 5c585bf3bc some more TODO thoughts captured 2016-02-26 19:07:31 -08:00
Martin A. Brown de514fd41b user can now specify file, stem or nothing for build 2016-02-26 19:07:05 -08:00