diff --git a/bob/pad/base/__init__.py b/bob/pad/base/__init__.py index f40abcb8dea0c94d0f2dd1cf357eefda26481288..e3a72b3efd3363c87e6d31c275ee61757aa4d77b 100644 --- a/bob/pad/base/__init__.py +++ b/bob/pad/base/__init__.py @@ -1,3 +1,5 @@ +from .utils import * + from . import database from . import algorithm from . import tools diff --git a/bob/pad/base/algorithm/__init__.py b/bob/pad/base/algorithm/__init__.py index e0721d16b4e36f5fda14e623484e8346c4aad26d..065a5b22b25afb07ece8ebd27faaf9a9e75b48d7 100644 --- a/bob/pad/base/algorithm/__init__.py +++ b/bob/pad/base/algorithm/__init__.py @@ -1,6 +1,27 @@ from .Algorithm import Algorithm +from .SVM import SVM -# to fix sphinx warnings of not able to find classes, when path is shortened -Algorithm.__module__ = "bob.pad.base.algorithm" -# gets sphinx autodoc done right - don't remove it + +def __appropriate__(*args): + """Says object was actually declared here, and not in the import module. + Fixing sphinx warnings of not being able to find classes, when path is + shortened. + + Parameters + ---------- + *args + The objects that you want sphinx to believe that are defined here. + + Resolves `Sphinx referencing issues <https//github.com/sphinx- + doc/sphinx/issues/3048>` + """ + + for obj in args: + obj.__module__ = __name__ + + +__appropriate__( + Algorithm, + SVM, +) __all__ = [_ for _ in dir() if not _.startswith('_')] diff --git a/bob/pad/base/evaluation/__init__.py b/bob/pad/base/evaluation/__init__.py index be2c91db240bbd32163443621c27a7cf9d9c4beb..d965efe4240a86a5148490d071d7081b1008a8ad 100644 --- a/bob/pad/base/evaluation/__init__.py +++ b/bob/pad/base/evaluation/__init__.py @@ -1,7 +1,25 @@ from .PadIsoMetrics import PadIsoMetrics -# to fix sphinx warnings of not able to find classes, when path is shortened -PadIsoMetrics.__module__ = "bob.pad.base.evaluation" -# gets sphinx autodoc done right - don't remove it -__all__ = [_ for _ in dir() if not _.startswith('_')] +def __appropriate__(*args): + """Says object was actually declared here, and not in the import module. + Fixing sphinx warnings of not being able to find classes, when path is + shortened. + + Parameters + ---------- + *args + The objects that you want sphinx to believe that are defined here. + + Resolves `Sphinx referencing issues <https//github.com/sphinx- + doc/sphinx/issues/3048>` + """ + + for obj in args: + obj.__module__ = __name__ + + +__appropriate__( + PadIsoMetrics, +) +__all__ = [_ for _ in dir() if not _.startswith('_')] diff --git a/conda/meta.yaml b/conda/meta.yaml index 037e955a1b6aa73e3be5f33743605bde84eb9f1e..d8aa062069591d4204134de19f547066bec1c792 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -27,6 +27,8 @@ requirements: - bob.db.base - bob.io.base - bob.bio.base + - bob.bio.video + - bob.learn.libsvm run: - python - setuptools diff --git a/requirements.txt b/requirements.txt index 1752529b70e5e7eb55fc3832e01ff3dd2dec59cb..2bd344b35dacb7b918791e15be509bb388ab5b1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,6 @@ setuptools bob.extension bob.db.base bob.io.base -bob.bio.base \ No newline at end of file +bob.bio.base +bob.bio.video +bob.learn.libsvm \ No newline at end of file