meta.yaml 2.75 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
    {% if environ.get('BUILD_EGG') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - python setup.py install --single-version-externally-managed --record record.txt
19
    # installs the documentation source, readme to share/doc so it is available
20 21 22
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
    - cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"
23 24 25 26 27 28 29 30

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

test:
  requires:
    - sphinx_rtd_theme
  imports:
    - {{ name }}
  commands:
    - bdt -h
    - bdt -?
    - bdt --help
58
    - bdt dumpsphinx --help
59
    - bdt dumpsphinx https://docs.python.org/3/objects.inv > /dev/null
André Anjos's avatar
DRY  
André Anjos committed
60
    - bdt create --help
61
    - bdt build --help
62
    - bdt test --help
63
    - bdt caupdate --help
64
    - bdt new --help
65
    - bdt new -t "New package" -o bob.foobar bob/bob.foobar "John Doe" "joe.doe@example.com"
66
    - bdt new -t "New package" -l bsd -o bob.foobar2 bob/bob.foobar "John Doe" "joe.doe@example.com"
67
    - bdt new -t "New package" -l bsd -o beat.foobar beat/beat.foobar "John Doe" "joe.doe@example.com"
68 69 70 71 72 73 74 75 76 77 78 79
    - bdt gitlab --help
    - bdt gitlab lasttag --help
      #- bdt gitlab lasttag -vv bob/bob.devtools
    - bdt gitlab commitfile --help
    - bdt gitlab changelog --help
      #- bdt gitlab changelog -vv bob/bob.devtools changelog.md
    - bdt gitlab release --help
      #- bdt gitlab release -vvd changelog.md
    - bdt gitlab visibility --help
      #- bdt gitlab visibility -vv bob/bob.devtools
    - bdt gitlab getpath --help
      #- bdt gitlab getpath -vv bob/bob.devtools .gitignore
André Anjos's avatar
André Anjos committed
80
    - bdt ci --help
81
    - bdt ci base-build --help
82
    - bdt ci build --help
83
    - bdt ci base-deploy --help
André Anjos's avatar
André Anjos committed
84
    - bdt ci deploy --help
85
    - bdt ci pypi --help
86 87
    - bdt ci readme --help
    - bdt ci clean --help
88 89
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
    - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
90 91 92 93 94 95

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