summaryrefslogtreecommitdiff
path: root/xnt
Commit message (Collapse)AuthorAge
* Fix 2.6 python testskballou2015-05-29
| | | | | Use `unittest2` module for Python 2.6 tests. Ignore duplicates in imports and add the requirement to the `setup.py` file.
* Move parameter passingkballou2015-05-29
| | | | | | | | 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.
* Refactor: Use correct assert function for testkballou2015-04-22
| | | | | Was using the blanket `assertTrue` function, which is eaiser to use incorrectly. Switch to `assertIn` appropriately.
* linting: remove disable W0142kballou2015-04-22
| | | | | Pylint is no longer complaining about this warning and is in fact complaining the disable statement is being used.
* Refactor copy: `src` can be file _or_ directorykballou2014-11-30
| | | | | `__copy__`'s `srcdir` parameter is renamed to `src` and can be either a file or a directory; now in-line with the original behaviour.
* Load buildfile into `build` variablekballou2014-10-03
| | | | | | | * attempting to access the wrong key from `kwargs` * attemptint to inspect elements of the string and not the _actual_ module
* Read VERBOSE flag from fully qualified modulekballou2014-09-04
| | | | | | | 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.
* Use `kwargs['path']` and do not shadow `path`kballou2014-09-04
| | | | | | | 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()`.
* call: add `path` parameterkballou2014-08-01
| | | | | | 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.
* Locally disable pylint R0912kballou2014-07-31
|
* pylint: W0703, catch RuntimeError insteadkballou2014-07-31
|
* Refactor: make `__init__.py` more 'import only'kballou2014-07-31
| | | | | | | | | | | | | | 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.
* Convert `expandpath` to noop variationkballou2014-07-31
|
* Move VERBOSE to its own modulekballou2014-07-31
| | | | This removes `xnt` -> `xnt.tasks.build.tex` -> `xnt` circular dependency.
* Remove unnecessary logging importkballou2014-07-31
|
* Move `build` and `vcs` into `tasks`kballou2014-07-31
|
* Remove `xnt.build.tex` dependency on `xnt.rm`kballou2014-07-31
|
* Refactor: xenant.pykballou2014-07-30
| | | | Move `invoke_build`, `load_build`, and `list_targets` into `xnt.tasks`.
* Pylint: ignore * or ** magickballou2014-07-23
|
* Refactor `__setup__` use `__apply__`kballou2014-07-23
| | | | | Have the `xnt.tasks.__setup__` function use the `xnt.tasks.__apply__` function for invoking the `__call__.__execute__` function command.
* Refactor tests: pylint messageskballou2014-07-23
| | | | | Remove deprecated disable statements (that were also no longer necessary) and add correct warnings about public method count.
* Refactor test codekballou2014-07-23
| | | | | | 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.
* Remove unused test setup and teardown codekballou2014-07-23
|
* Remove unnessary import of `xnt.tasks`kballou2014-07-23
|
* Remove unnecessary importkballou2014-07-23
|
* Expose internal taskskballou2014-07-23
| | | | | | | | | | | * 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.
* Refactor: Add NOOPkballou2014-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update version: -> 0.7.0.dev.alphakballou2014-07-22
|
* Move version / Add release noteskennyballou2013-10-21
|
* Add optional argument for target decoratorkennyballou2013-10-03
| | | | | To maintain backwards compatibility in decorator behaviour, add the optional parameter `always_run` to override the `has_run` check
* Add target run checkkennyballou2013-10-03
| | | | | * Add `has_run` check to targets to ensure targets only execute once per build
* Add Date, Update Versionkennyballou2013-06-27
|
* Update build reference documentationkennyballou2013-06-24
| | | | | | | * use sphinx `autofunction` to include the relevant functions / sections into the build reference page * Merge and update notes about the build modules
* Fix test program codekennyballou2013-06-24
| | | | Make ``proper''
* Add PATH assertions for 'dependent' programskennyballou2013-06-21
|
* Add NVCC compiler to xnt.build.cckennyballou2013-06-21
|
* Fix variable name after documentation updatekennyballou2013-06-21
|
* Update Documentationkennyballou2013-05-31
| | | | | | | | | * 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``
* Fix pylint W82,8kennyballou2013-05-21
|
* Update docstringskennyballou2013-04-05
| | | | Move some comments and revise function documentation
* pylint new testskennyballou2013-04-04
|
* Fix NAnt testskennyballou2013-04-04
| | | | NAnt build file was malformed and not named correctly
* Do different tests based on OSkennyballou2013-04-02
|
* Add path checks for .exe versions as wellkennyballou2013-04-02
|
* Merge 'add_build_make_tex_tests' into developkennyballou2013-04-02
|\
| * Add tests for the make modulekennyballou2013-04-02
| | | | | | | | | | 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.
| * Add tests for tex build modulekennyballou2013-04-02
| |
* | Refactor parameters in make module: require targetkennyballou2013-04-02
| |
* | Increment dev versionkennyballou2013-04-02
| |
* | Reorganize task imports -- one line per itemkennyballou2013-04-02
| | | | | | | | | | | | May be a bit more verbose, but maintains line length less than 79 characters. Add new methods `which` and `in_path`