meta.yaml 3.22 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
André Anjos's avatar
André Anjos committed
31
    - black >=19
32
    - click >=7
33
    - click-plugins
34
    - conda=4
35
    - conda-build=3
36
    - conda-verify=3
37
    - certifi
38
    - docformatter
39 40 41 42 43
    - pytz
    - python-dateutil
    - gitpython
    - python-gitlab
    - requests
44
    - sphinx
45
    - pyyaml >=5.1
46
    - twine
47
    - lxml
48
    - jinja2
André Anjos's avatar
André Anjos committed
49
    - termcolor
50
    - psutil
51
    - tabulate
52 53 54 55 56 57 58 59 60 61

test:
  requires:
    - sphinx_rtd_theme
  imports:
    - {{ name }}
  commands:
    - bdt -h
    - bdt -?
    - bdt --help
62
    - bdt dumpsphinx --help
63
    - bdt dumpsphinx https://docs.python.org/3/objects.inv > /dev/null
André Anjos's avatar
DRY  
André Anjos committed
64
    - bdt create --help
65
    - bdt build --help
66
    - bdt mirror --help
67
    - bdt rebuild --help
68
    - bdt test --help
69
    - bdt caupdate --help
70
    - bdt new --help
71
    - bdt new -t "New package" -o bob.foobar bob/bob.foobar "John Doe" "joe.doe@example.com"
Tiago de Freitas Pereira's avatar
Tiago de Freitas Pereira committed
72
    - bdt new -t "New package" -l bsd -o bob.foobar2 bob/bob.foobar "John Doe" "joe.doe@example.com"
73
    - bdt new -t "New package" -l bsd -o beat.foobar beat/beat.foobar "John Doe" "joe.doe@example.com"
74 75 76 77 78 79 80 81 82 83 84 85
    - 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
86
    - bdt gitlab runners --help
87
    - bdt gitlab jobs --help
André Anjos's avatar
André Anjos committed
88
    - bdt ci --help
89
    - bdt ci base-build --help
90
    - bdt ci build --help
91
    - bdt ci base-deploy --help
André Anjos's avatar
André Anjos committed
92
    - bdt ci deploy --help
93
    - bdt ci pypi --help
94 95
    - bdt ci readme --help
    - bdt ci clean --help
96
    - bdt ci nightlies --help
97
    - bdt ci docs --help
98
    - bdt ci clean-betas --help
99 100 101 102 103 104
    - bdt dav --help
    - bdt dav list --help
    - bdt dav makedirs --help
    - bdt dav rmtree --help
    - bdt dav clean-betas --help
    - bdt dav upload --help
105
    - bdt gitlab process-pipelines --help
106
    - bdt gitlab get-pipelines --help
107 108
    - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
    - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
109 110 111 112 113 114

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