Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (7)
......@@ -11,6 +11,8 @@ import tempfile
from click.testing import CliRunner
from bob.extension.scripts.click_helper import assert_click_runner_result
from . import mock_dataset
stare_datadir, stare_dataset = mock_dataset()
......@@ -18,9 +20,7 @@ stare_datadir, stare_dataset = mock_dataset()
def _assert_exit_0(result):
assert (
result.exit_code == 0
), f"Exit code {result.exit_code} != 0 -- Output:\n{result.output}"
assert_click_runner_result(result)
def _check_help(entry_point):
......
......@@ -24,12 +24,19 @@ requirements:
host:
- python {{ python }}
- setuptools {{ setuptools }}
- bob.extension
- numpy {{ numpy }}
- scipy {{ scipy }}
- h5py {{ h5py }}
- pytorch {{ pytorch }}
- torchvision {{ torchvision }}
- bob.extension
- matplotlib {{ matplotlib }}
- pandas {{ pandas }}
- pillow {{ pillow }}
- psutil {{ psutil }}
- h5py {{ h5py }}
- tqdm {{ tqdm }}
- tabulate {{ tabulate }}
run:
- python
- setuptools
......@@ -37,13 +44,13 @@ requirements:
- {{ pin_compatible('scipy') }}
- {{ pin_compatible('pytorch') }}
- {{ pin_compatible('torchvision') }}
- matplotlib
- pandas
- pillow
- psutil
- h5py
- tqdm
- tabulate
- {{ pin_compatible('matplotlib') }}
- {{ pin_compatible('pandas') }}
- {{ pin_compatible('pillow') }}
- {{ pin_compatible('psutil') }}
- {{ pin_compatible('h5py') }}
- {{ pin_compatible('tqdm') }}
- {{ pin_compatible('tabulate') }}
test:
imports:
......@@ -57,14 +64,13 @@ test:
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- bob-devel {{ bob_devel }}.*
- pytest
- pytest-cov
- sphinx
- sphinx_rtd_theme
- sphinxcontrib-programoutput
- graphviz
- font-ttf-dejavu-sans-mono
- pytest {{ pytest }}
- pytest-cov {{ pytest_cov }}
- sphinx {{ sphinx }}
- sphinx_rtd_theme {{ sphinx_rtd_theme }}
- sphinxcontrib-programoutput {{ sphinxcontrib_programoutput }}
- graphviz {{ graphviz }}
- font-ttf-dejavu-sans-mono {{ font_ttf_dejavu_sans_mono }}
about:
summary: Binary Segmentation Benchmark Package for Bob
......
......@@ -243,34 +243,18 @@ autodoc_default_options = {
}
# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
# For inter-documentation mapping: notice sphinx changes to the current
# directory to build the documentation
from bob.extension.utils import link_documentation
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
if os.path.exists("requirements.txt"):
# building on the CI, with a copy of requirements.txt
intersphinx_mapping = link_documentation(
additional_packages=["python", "numpy"]
+ load_requirements(sphinx_requirements)
requirements_file="requirements.txt"
)
else:
# building locally
intersphinx_mapping = link_documentation()
intersphinx_mapping["torch"] = ("https://pytorch.org/docs/stable/", None)
intersphinx_mapping["PIL"] = ("http://pillow.readthedocs.io/en/stable", None)
intersphinx_mapping["pandas"] = (
"https://pandas.pydata.org/pandas-docs/stable/",
None,
)
# Figures out the major click version we use
import pkg_resources
click_version = pkg_resources.require("click")[0].version.split(".")[0]
click_version += ".x"
intersphinx_mapping["click"] = (
"https://click.palletsprojects.com/en/%s/" % (click_version,),
None,
)
# Add our private index (for extras and fixes)
intersphinx_mapping["extras"] = ("", "extras.inv")
torch
torchvision
py:obj torch.utils.data.dataset.T_co
py:class torch.nn.modules.loss._Loss
py:class Module