Changed
- Tests minor improvements.
- Excluded tests, data from setup.py (from being installed from the sdist.)
- Created MANIFEST.in
Added
- `warns `module is added:
It provides better integration between warnings and logger.
Unlike `logging._showwarning()` this variant will always go through logger.
`warns.initConfig()` has optional file parameter (it's file-like object) to redirect warnings.
Default value is `sys.stderr`.
If logger for `log_name` (default is `py.warnings`) will be configured before call to `showwarning()` method,
than warning will go to the logger's handler with `log_level` (default is `logging.WARNING`).
If logger for `log_name` (default is `py.warnings`) willn't be configured before call to showwarning() method,
than warning will be done to `file` (default is `sys.stderr`) with `log_level` (default is `logging.WARNING`).
- `main` module is added:
`main.fixabscwd()` changes `os.getcwd()` to be the directory of the `__main__` module.
`main.warnsInitConfig()` reexports `warns.initConfig()` for convenience.
Added
- Tests for alexber.utils.thread_locals added.