meta.yaml 1.72 KB
Newer Older
1
{% set name = 'bob.devtools' %}
André Anjos's avatar
André Anjos committed
2
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
3 4 5 6 7 8 9 10 11 12 13 14

package:
  name: {{ name }}
  version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}

build:
  entry_points:
    - bdt = bob.devtools.scripts.bdt:main
  number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
  run_exports:
    - {{ pin_subpackage(name) }}
  script:
André Anjos's avatar
André Anjos committed
15
    - cd {{ project_dir }}
16 17 18 19 20
    {% 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 and license to share/doc
André Anjos's avatar
André Anjos committed
21
    # so it is available during test time
22 23 24
    - install -d ${PREFIX}/share/doc/{{ name }}
    - install -m 644 -D README.rst ${PREFIX}/share/doc/{{ name }}
    - install -m 644 -D LICENSE ${PREFIX}/share/doc/{{ name }}
25
    - find doc -type f -exec install -D -m 644 "{}" "${PREFIX}/share/doc/{{ name }}/{}" \;
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
  run:
    - python
    - setuptools
    - click
    - click-plugins
    - conda-build
    - pytz
    - python-dateutil
    - gitpython
    - python-gitlab
    - requests
42
    - sphinx
43
    - pyyaml
44 45 46 47 48 49 50 51 52 53 54 55 56

test:
  requires:
    - sphinx_rtd_theme
  imports:
    - {{ name }}
  commands:
    - bdt -h
    - bdt -?
    - bdt --help
    - bdt lasttag --help
    - bdt changelog --help
    - bdt release --help
57
    - bdt visibility --help
58
    - bdt dumpsphinx --help
59
    - bdt bootstrap --help
André Anjos's avatar
André Anjos committed
60
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc {{ project_dir }}/sphinx
61 62 63 64 65 66

about:
  home: https://www.idiap.ch/software/bob/
  license: BSD 3-Clause
  summary: Tools for development and CI integration of Bob packages
  license_family: BSD