meta.yaml 1.88 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{% set name = 'bob.devtools' %}

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:
14
    - cd {{ environ.get('RECIPE_DIR') + '/..' }}
15 16 17 18 19
    {% 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
20
    # so it is available during test time
21 22 23
    - 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 }}
24
    - find doc -type f -exec install -m 644 -D "{}" "${PREFIX}/share/doc/{{ name }}/{}" \;
25 26 27 28 29 30 31 32 33 34

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
  run:
    - python
    - setuptools
    - click
    - click-plugins
André Anjos's avatar
André Anjos committed
35 36
    - conda=4
    - conda-build=3
37
    - certifi
38 39 40 41 42
    - pytz
    - python-dateutil
    - gitpython
    - python-gitlab
    - requests
43
    - sphinx
44
    - pyyaml
45
    - twine
46
    - lxml
47 48 49 50 51 52 53 54 55 56 57 58 59

test:
  requires:
    - sphinx_rtd_theme
  imports:
    - {{ name }}
  commands:
    - bdt -h
    - bdt -?
    - bdt --help
    - bdt lasttag --help
    - bdt changelog --help
    - bdt release --help
60
    - bdt visibility --help
61
    - bdt dumpsphinx --help
André Anjos's avatar
DRY  
André Anjos committed
62
    - bdt create --help
63
    - bdt build --help
André Anjos's avatar
André Anjos committed
64
    - bdt getpath --help
65
    - bdt caupdate --help
André Anjos's avatar
André Anjos committed
66
    - bdt ci --help
67
    - bdt ci build --help
André Anjos's avatar
André Anjos committed
68
    - bdt ci deploy --help
69
    - bdt ci pypi --help
70
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
71 72 73 74 75 76

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