| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Use `unittest2` module for Python 2.6 tests. Ignore duplicates in imports
and add the requirement to the `setup.py` file.
|
|
|
|
|
|
|
|
| |
Full parameter passing (converting `key=value` to `{'key': 'value'}`)was
happening in the `xnt.core_tasks` module, and attempting to merge the
dictionaries. Move the former functionality to the `xnt.xenant` module and
pass the result of the first pass to the `xnt.xntcall` function, which will
merge the loaded properties with the parsed properties.
|
|
|
|
|
| |
Was using the blanket `assertTrue` function, which is eaiser to use
incorrectly. Switch to `assertIn` appropriately.
|
|
|
|
|
| |
Pylint is no longer complaining about this warning and is in fact
complaining the disable statement is being used.
|
|
|
|
|
| |
`__copy__`'s `srcdir` parameter is renamed to `src` and can be either a
file or a directory; now in-line with the original behaviour.
|
|
|
|
|
|
|
| |
* attempting to access the wrong key from `kwargs`
* attemptint to inspect elements of the string and not the _actual_
module
|
|
|
|
|
|
|
| |
The value of `VERBOSE` is locally bound before the change to
`xnt.verbose.VERBOSE` occurs. Thus, reading the local `VERBOSE` value
does not have the desired effect. Read from the fully qualified module
variable.
|
|
|
|
|
|
|
| |
The `__call__` function defines a `path` parameter that was mistakenly
shadowed by the closure function that actually executes the call. Rename
temporary parameter `path` to `cwd` and properly set its value given that
`kwargs['path']` contains a value or set to `os.getcwd()`.
|
|
|
|
|
|
| |
Add `path` parameter to call function so that users can specify the working
directory of the subprocess to invoke. This does remove some code
duplication.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the task definitions from `xnt.tasks.__init__py` to
`xnt.tasks.core_tasks.py` and use `xnt.tasks.__init__.py` as an import
module. Everything _within_ the `xnt.tasks` module should not depend on
`xnt.tasks` directly; dependencies should be satisfied directly: e.g.,
depending on `xnt.tasks.core_tasks` for methods like `__call__` and
`__apply__`.
`xnt.tasks` now does the job `xnt` was doing: expose all task functions. As
such, `xnt` now just exports the names from `xnt.tasks` as part of its
definition. Modules outside `xnt.tasks` can safely depend on `xnt.tasks`
exclusively.
|
| |
|
|
|
|
| |
This removes `xnt` -> `xnt.tasks.build.tex` -> `xnt` circular dependency.
|
| |
|
| |
|
| |
|
|
|
|
| |
Move `invoke_build`, `load_build`, and `list_targets` into `xnt.tasks`.
|
| |
|
|
|
|
|
| |
Have the `xnt.tasks.__setup__` function use the `xnt.tasks.__apply__`
function for invoking the `__call__.__execute__` function command.
|
|
|
|
|
| |
Remove deprecated disable statements (that were also no longer necessary)
and add correct warnings about public method count.
|
|
|
|
|
|
| |
Move basic test assumptions (assumptions that are tested for all tasks)
into their own function in `xnt.tests`. Refactor all test methods to use
this new function.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Expose `xnt.tasks`
* Expose `xnt.build.*`
* Expose `xnt.vcs.*`
Since exposure, fix `xnt.build.tex` to use the now correct `xnt.rm` instead
of `xnt.tasks.rm` which no longer exists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change all modules to return a tuple (of tuples) of functions that would be
executed. The resulting tuples look similar to:
((references_to_real_function, dictionary_of_arguments), ...)
The tuple can be applied by calling the function reference, passing the
dictionary (expanded with `**` magic). Such a function is defined as
`xnt.tasks.__apply__`.
The following are affected modules:
* `xnt.tasks`
* `xnt.build.cc`
* `xnt.build.make`
* `xnt.build.tex`
* `xnt.vcs.git`
- Patch includes added tests
* `xnt.vcs.hg`
- Patch includes added tests
* `xnt.vcs.cvs`
- Patch includes added tests
|
| |
|
| |
|
|
|
|
|
| |
To maintain backwards compatibility in decorator behaviour, add the
optional parameter `always_run` to override the `has_run` check
|
|
|
|
|
| |
* Add `has_run` check to targets to ensure targets only execute once per
build
|
| |
|
|
|
|
|
|
|
| |
* use sphinx `autofunction` to include the relevant functions / sections
into the build reference page
* Merge and update notes about the build modules
|
|
|
|
| |
Make ``proper''
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Move all documentation out of Task Reference
Use ``autofunction`` to include the docstring of the appropriate
function
* Update docstrings of all functions in ``xnt.tasks``, ``xnt.build``,
``xnt.vcs``
|
| |
|
|
|
|
| |
Move some comments and revise function documentation
|
| |
|
|
|
|
| |
NAnt build file was malformed and not named correctly
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
Theses tests are _not_ testing the result of running the actual sub build
command; but, rather, the test purely the ability to invoke them at all.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
May be a bit more verbose, but maintains line length less than 79 characters.
Add new methods `which` and `in_path`
|