meta.yaml 3.24 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.17
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 52
    # pin packaging temporarily until
    # https://github.com/ContinuumIO/anaconda-issues/issues/11236 is fixed.
53
    - packaging=19.0
54 55 56 57 58 59 60 61 62 63

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

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