meta.yaml 2.52 KB
Newer Older
1
{% set name = 'bob.devtools' %}
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:
15
    - cd {{ project_dir }}
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
20 21 22 23
     # 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 doc "${PREFIX}/share/doc/{{ name }}/"
24 25 26 27 28 29 30 31

requirements:
  host:
    - python {{ python }}
    - setuptools {{ setuptools }}
  run:
    - python
    - setuptools
32
    - click >=7
33
    - click-plugins
André Anjos's avatar
André Anjos committed
34
    - conda=4
35
    - conda-build=3.16
36
    - conda-verify=3
37
    - certifi
38 39 40 41 42
    - pytz
    - python-dateutil
    - gitpython
    - python-gitlab
    - requests
43
    - sphinx
44
    - pyyaml
45
    - twine
46
    - lxml
47
    - jinja2
André Anjos's avatar
André Anjos committed
48
    - termcolor
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
60
      #- bdt lasttag -vv bob/bob.devtools
61
    - bdt commitfile --help
62
    - bdt changelog --help
63
      #- bdt changelog -vv bob/bob.devtools changelog.md
64
    - bdt release --help
65
      #- bdt release -vvd changelog.md
66
    - bdt visibility --help
67
      #- bdt visibility -vv bob/bob.devtools
68
    - bdt dumpsphinx --help
69
    - bdt dumpsphinx https://docs.python.org/3/objects.inv > /dev/null
André Anjos's avatar
DRY  
André Anjos committed
70
    - bdt create --help
71
    - bdt build --help
72
    - bdt test --help
André Anjos's avatar
André Anjos committed
73
    - bdt getpath --help
74
      #- bdt getpath -vv bob/bob.devtools .gitignore
75
    - bdt caupdate --help
76
    - bdt new --help
77
    - bdt new -t "New package" -o bob.foobar bob/bob.foobar "John Doe" "joe.doe@example.com"
78
    - bdt new -t "New package" -o beat.foobar beat/beat.foobar "John Doe" "joe.doe@example.com"
André Anjos's avatar
André Anjos committed
79
    - bdt ci --help
80
    - bdt ci base-build --help
81
    - bdt ci build --help
82
    - bdt ci base-deploy --help
André Anjos's avatar
André Anjos committed
83
    - bdt ci deploy --help
84
    - bdt ci pypi --help
85 86
    - bdt ci readme --help
    - bdt ci clean --help
87
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc {{ project_dir }}/sphinx
88 89 90 91 92 93

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
94
  license_file: ../LICENSE