Commit 0ced2385 authored by André Anjos's avatar André Anjos 💬
Browse files

xbob -> bob

parent 25023f65
......@@ -25,8 +25,8 @@ install:
- "python bootstrap.py"
- "CFLAGS=-coverage ./bin/buildout"
script:
- "./bin/python -c 'from xbob.io.image import get_config; print(get_config())'"
- "./bin/coverage run --source=xbob.io.image ./bin/nosetests -sv"
- "./bin/python -c 'from bob.io.image import get_config; print(get_config())'"
- "./bin/coverage run --source=bob.io.image ./bin/nosetests -sv"
- "./bin/sphinx-build -b doctest doc sphinx"
- "./bin/sphinx-build -b html doc sphinx"
after_success:
......
include LICENSE README.rst bootstrap.py buildout.cfg
recursive-include doc conf.py *.rst
recursive-include xbob *.cpp *.h
recursive-include xbob/io/image/data *.*
recursive-include bob *.cpp *.h
recursive-include bob/io/image/data *.*
......@@ -2,16 +2,16 @@
.. Andre Anjos <andre.anjos@idiap.ch>
.. Thu 29 Aug 2013 16:07:57 CEST
.. image:: https://travis-ci.org/bioidiap/xbob.io.image.svg?branch=master
:target: https://travis-ci.org/bioidiap/xbob.io.image
.. image:: https://coveralls.io/repos/bioidiap/xbob.io.image/badge.png
:target: https://coveralls.io/r/bioidiap/xbob.io.image
.. image:: http://img.shields.io/github/tag/bioidiap/xbob.io.image.png
:target: https://github.com/bioidiap/xbob.io.image
.. image:: http://img.shields.io/pypi/v/xbob.io.image.png
:target: https://pypi.python.org/pypi/xbob.io.image
.. image:: http://img.shields.io/pypi/dm/xbob.io.image.png
:target: https://pypi.python.org/pypi/xbob.io.image
.. image:: https://travis-ci.org/bioidiap/bob.io.image.svg?branch=master
:target: https://travis-ci.org/bioidiap/bob.io.image
.. image:: https://coveralls.io/repos/bioidiap/bob.io.image/badge.png
:target: https://coveralls.io/r/bioidiap/bob.io.image
.. image:: http://img.shields.io/github/tag/bioidiap/bob.io.image.png
:target: https://github.com/bioidiap/bob.io.image
.. image:: http://img.shields.io/pypi/v/bob.io.image.png
:target: https://pypi.python.org/pypi/bob.io.image
.. image:: http://img.shields.io/pypi/dm/bob.io.image.png
:target: https://pypi.python.org/pypi/bob.io.image
===========================
Image I/O Support for Bob
......@@ -19,7 +19,7 @@
This package contains no bindings. By importing it, you activate a transparent
plugin that makes possible reading and writing to image files using
:py:mod:`xbob.io.base` functionality.
:py:mod:`bob.io.base` functionality.
Installation
------------
......@@ -85,18 +85,18 @@ Usage
In order to enable support for Matlab(R) file reading and writing in your
application, make sure to import this module, before calling
:py:func:`xbob.io.base.open` or similar::
:py:func:`bob.io.base.open` or similar::
>>> import xbob.io.base
>>> import xbob.io.image
>>> xbob.io.base.open('myfile.mat', 'r')
>>> import bob.io.base
>>> import bob.io.image
>>> bob.io.base.open('myfile.mat', 'r')
Testing
-------
You can run a set of tests using the nose test runner::
$ nosetests -sv xbob.io.image
$ nosetests -sv bob.io.image
.. warning::
......@@ -113,7 +113,7 @@ You can run our documentation tests using sphinx itself::
You can test overall test coverage with::
$ nosetests --with-coverage --cover-package=xbob.io.image
$ nosetests --with-coverage --cover-package=bob.io.image
The ``coverage`` egg must be installed for this to work properly.
......
......@@ -13,8 +13,8 @@ import sys
import numpy
import nose.tools
from xbob.io.base import load, test_utils
from xbob.io.base.test_file import transcode, array_readwrite, arrayset_readwrite
from bob.io.base import load, test_utils
from bob.io.base.test_file import transcode, array_readwrite, arrayset_readwrite
def test_all():
......
......@@ -9,9 +9,9 @@
#undef NO_IMPORT_ARRAY
#endif
#include <xbob.blitz/capi.h>
#include <xbob.blitz/cleanup.h>
#include <xbob.io.base/api.h>
#include <bob.blitz/capi.h>
#include <bob.blitz/cleanup.h>
#include <bob.io.base/api.h>
#include "file.h"
#include <jpeglib.h>
......@@ -25,7 +25,7 @@ PyDoc_STRVAR(module_docstr, "Image I/O support for Bob");
#if PY_VERSION_HEX >= 0x03000000
static PyModuleDef module_definition = {
PyModuleDef_HEAD_INIT,
XBOB_EXT_MODULE_NAME,
BOB_EXT_MODULE_NAME,
module_docstr,
-1,
module_methods,
......@@ -38,24 +38,24 @@ static PyObject* create_module (void) {
# if PY_VERSION_HEX >= 0x03000000
PyObject* m = PyModule_Create(&module_definition);
# else
PyObject* m = Py_InitModule3(XBOB_EXT_MODULE_NAME, module_methods, module_docstr);
PyObject* m = Py_InitModule3(BOB_EXT_MODULE_NAME, module_methods, module_docstr);
# endif
if (!m) return 0;
auto m_ = make_safe(m);
/* register some constants */
if (PyModule_AddStringConstant(m, "__version__", XBOB_EXT_MODULE_VERSION) < 0) return 0;
if (PyModule_AddStringConstant(m, "__version__", BOB_EXT_MODULE_VERSION) < 0) return 0;
/* imports dependencies */
if (import_xbob_blitz() < 0) {
if (import_bob_blitz() < 0) {
PyErr_Print();
PyErr_Format(PyExc_ImportError, "cannot import `%s'", XBOB_EXT_MODULE_NAME);
PyErr_Format(PyExc_ImportError, "cannot import `%s'", BOB_EXT_MODULE_NAME);
return 0;
}
if (import_xbob_io_base() < 0) {
if (import_bob_io_base() < 0) {
PyErr_Print();
PyErr_Format(PyExc_ImportError, "cannot import `%s'", XBOB_EXT_MODULE_NAME);
PyErr_Format(PyExc_ImportError, "cannot import `%s'", BOB_EXT_MODULE_NAME);
return 0;
}
......@@ -117,7 +117,7 @@ static PyObject* create_module (void) {
}
PyMODINIT_FUNC XBOB_EXT_ENTRY_NAME (void) {
PyMODINIT_FUNC BOB_EXT_ENTRY_NAME (void) {
# if PY_VERSION_HEX >= 0x03000000
return
# endif
......
......@@ -10,7 +10,7 @@
import os
import numpy
from xbob.io.base import load, write, test_utils
from bob.io.base import load, write, test_utils
# These are some global parameters for the test.
PNG_INDEXED_COLOR = test_utils.datafile('img_indexed_color.png', __name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment