summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* format: "hash that would semi-reliably pair output(s) to input"Jan Pokorný2014-10-081-1/+44
| | | | | | | Also see the security-related comment. It's taken seriously (as author's knowledge permits). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: attribute access first tries wrapped dict accessJan Pokorný2014-10-081-4/+9
| | | | | | | | ...this is so as to make started interpolation-in-file-specs a bit more aesthetic (dot-access instead of index access that is less neat in that string formatting context) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: start making global filter ctxt useful for interpolationJan Pokorný2014-10-081-3/+6
| | | | | | | | | | | | | The aim is to be able to specify, e.g., "{<filter>.in.<something>}" that would refer to some property? of the input object pertaining to given filter -- presumably the output files would refer to the input files, implicitly solving the time-dependency (thanks to real filter application ordering being already automagically solved through "backtracking"/postponing). The property in question would likely be some kind of hash that would semi-reliably pair output(s) to input (goodbye overwrites loosing this pairing info). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: fix excessive purification of interpolations dictJan Pokorný2014-10-081-4/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: allow for interpolations within filenamesJan Pokorný2014-10-081-3/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command+format: move magic FDs handling command->formatJan Pokorný2014-10-082-17/+25
| | | | | | | ...where it is probably a more natural fit. Also, enable it for input file specs. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: not quiet + with outputs files -> print their namesJan Pokorný2014-10-081-1/+8
| | | | | | Primarily intended as a message suitable for CLI usage. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: fix a thinko: multi-acquiring of single objectJan Pokorný2014-10-081-5/+12
| | | | | | | | Solution: use a wrapper, sufficient in the current usecases (i.e., just delegating __eq__ and __hash__ methods), that holds the reference to the original. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_cluster: tolerate non-version linux_distribution()[1]Jan Pokorný2014-10-081-3/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2014-10-081-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.1.3v0.1.3Jan Pokorný2014-09-291-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs2ccsflat: better error reporting wrt. ccs_flattenJan Pokorný2014-09-291-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: POSIX shell doesn't know: declare, sourceJan Pokorný2014-09-292-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-{check,tests}: limit inferference with user's modulesJan Pokorný2014-09-292-6/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-{check,tests}: global sanity check + prologue for testsJan Pokorný2014-09-293-13/+127
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-dev: fix typo sys.path -> sys.argvJan Pokorný2014-09-291-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: cosmetics (max 80 chars per line)Jan Pokorný2014-09-291-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: fix creating "RO copies" of dicts needlesslyJan Pokorný2014-09-291-1/+2
| | | | | | | ...as we have a better construct for that now (since commit 'Solve a "read-only dict as API" question once forever'). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_cluster: update knowledge about cluster in Fedora/UbuntuJan Pokorný2014-09-292-1/+24
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: use cluster_pcs_flatiron instead in aliasJan Pokorný2014-09-291-9/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/utils_cluster: exercise cluster_pcs_flatiron predicateJan Pokorný2014-09-291-0/+29
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_cluster: fix dictionary-valueiterator issueJan Pokorný2014-09-291-1/+1
| | | | | | (discovered with unit tests, yay) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Add utils_cluster: more systemic cluster system detection/queryJan Pokorný2014-09-291-0/+285
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/flatten: more secure default wrt. exec'ing agentsJan Pokorný2014-09-291-5/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.1.2v0.1.2Jan Pokorný2014-09-221-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/utils_xml: drop unused importJan Pokorný2014-09-221-1/+0
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Expose CLI frontend to be runnable via "python -m" syntaxJan Pokorný2014-09-222-2/+17
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: less verbose, more likely to work with set -eJan Pokorný2014-09-221-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests: add __init__.py to allow custom test pickingJan Pokorný2014-09-221-0/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Adjust a way to operate in "development" mode wrt. run-devJan Pokorný2014-09-2220-33/+34
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs2ccsflat+ccs_flatten: nothing to do -> return orig. dumpJan Pokorný2014-09-223-15/+16
| | | | | | | | | | This way, we do not have to bother with stdin and/or magic file descriptors. At the cons' side, the equality check is little bit complicated with a need to normalize both before-after variants, but this only affects tests anyway (that are accommodating this change as of now). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/resrules: convenient "this dir": metadata onlyJan Pokorný2014-09-221-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.cfg: install ccs_flatten binary rather under dedicated dirJan Pokorný2014-09-221-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-dev: better way of dealing with various contexts of useJan Pokorný2014-09-221-9/+27
| | | | | | Actually a more robust variant of what setup.py uses. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* MANIFEST: capture ccs-flatten source for sureJan Pokorný2014-09-221-2/+5
| | | | | | | | Previously it used to (mysteriously) depend on whether "setup.py build" was called explicitly prior to "setup.py sdist". Because of this strangness, official 0.1.1 release is missing these sources :-/ Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.cfg: nano editor as a lowest common denominatorJan Pokorný2014-09-221-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.py: smarter self-discovery (how am I called as package)Jan Pokorný2014-09-221-2/+16
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.py: include default.py.in into source distributionJan Pokorný2014-09-221-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cluster: fix relative imports (silent malfunction)Jan Pokorný2014-09-229-9/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Make run-dev central point for local use (e.g., test run)Jan Pokorný2014-09-222-63/+53
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* plugin_registry: also this discovery skips '[.]*' filesJan Pokorný2014-09-221-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: during "walk", also skip files starting with a dotJan Pokorný2014-09-221-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* plugin_registry: fix overly keen (nested) plugin discoveryJan Pokorný2014-09-221-0/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Update the package description, point out use as a libJan Pokorný2014-09-222-8/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.py: fix download_url + parametrize both urlsJan Pokorný2014-09-221-4/+11
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-setup: easier-to-type wrapper for "python setup.py"Jan Pokorný2014-09-222-0/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2014-09-221-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.1.1v0.1.1Jan Pokorný2014-09-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.py: make download_url active only on "full" releasesJan Pokorný2014-09-171-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup.py: build long_description from README's contentJan Pokorný2014-09-171-1/+25
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>