-
André Anjos authoredAndré Anjos authored
meta.yaml 2.73 KiB
{% set name = 'bob.ip.binseg' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package:
name: {{ name }}
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}
build:
skip: true # [not linux]
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
run_exports:
- {{ pin_subpackage(name) }}
script:
- cd {{ project_dir }}
{% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip
{% endif %}
- python setup.py install --single-version-externally-managed --record record.txt
# installs the documentation source, readme to share/doc so it is available
# during test time
- install -d "${PREFIX}/share/doc/{{ name }}"
- cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
requirements:
host:
- python {{ python }}
- setuptools {{ setuptools }}
- torchvision {{ torchvision }} # [linux]
- pytorch {{ pytorch }} # [linux]
- numpy {{ numpy }}
- bob.extension
run:
- python
- setuptools
- {{ pin_compatible('pytorch') }} # [linux]
- {{ pin_compatible('torchvision') }} # [linux]
- {{ pin_compatible('numpy') }}
- pandas
- matplotlib
- tqdm
- tabulate
- bob.core
test:
imports:
- {{ name }}
commands:
# test commands ("script" entry-points) from your package here
- bob binseg --help
- bob binseg config --help
- bob binseg config list --help
- bob binseg config list
- bob binseg config list -v
- bob binseg config describe --help
- bob binseg config describe drive
- bob binseg config describe drive -v
- bob binseg config copy --help
- bob binseg config copy drive /tmp/test.py
- bob binseg train --help
- bob binseg evaluate --help
- bob binseg predict --help
- bob binseg compare --help
- bob binseg evalpred --help
- bob binseg gridtable --help
- bob binseg transformfolder --help
- bob binseg visualize --help
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]