Skip to content
Snippets Groups Projects
Commit 0ced2385 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

xbob -> bob

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