Jinja2 'group' variable
Hi @andre.anjos
This is more a question than an issue, but I was wondering how the 'group' Jinja variable in the conda/meta.yaml
template is handled here (https://gitlab.idiap.ch/bob/bob.devtools/blob/master/bob/devtools/templates/conda/meta.yaml#L55).
I'm asking because it took me quite some time to figure out why the CI was failing ...
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Owner
@heusch group is a jinja variable in that template. When you create a new package using bdt --new:
bdt new --help Usage: bdt new [OPTIONS] PACKAGE AUTHOR EMAIL Creates a folder structure for a new Bob/BEAT package Options: -t, --title TEXT This entry defines the package title. The package title should be a few words only. It will appear at the description of your package and as the title of your documentation [default: New package] -l, --license [bsd|gplv3] Changes the default licensing scheme to use for your package [default: gplv3] -o, --output-dir TEXT Directory where to dump the new project - must not exist -v, --verbose Increase the verbosity level from 0 (only error messages) to 1 (warnings), 2 (info messages), 3 (debug information) by adding the --verbose option as often as desired (e.g. '-vvv' for debug). -?, -h, --help Show this message and exit. Examples: 1. Generates a new project for Bob: $ bdt new -vv bob/bob.newpackage "John Doe" "joe@example.com"
(I think) when you run
bdt new -vv bob/bob.newpackage "John Doe" "joe@example.com"
what you have before the/
will be interpreted as group.Does that answer your question?
- Owner
It is the gitlab group of the new package.
- Author Maintainer
Thanks, but I actually got that ;)
The problem is that it is not actually replaced by its value in the
conda/meta.yaml
file, and thus you end up with the following URL:https://www.idiap.ch/software/{{ group }}/
and hence the complaint by the CI.Just tested it with the following example:
bdt new -vv bob/bob.blah.test "John Doe" "jd@example.com" INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,740: Creating structure for bob/bob.blah.test at directory /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,740: mkdir /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,745: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/requirements.txt INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,754: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/buildout.cfg INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,761: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/MANIFEST.in INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,770: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/setup.py INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,781: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/.gitignore INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,787: mkdir /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,790: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/index.rst INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,797: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/conf.py INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,807: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/links.rst INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,812: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/.gitlab-ci.yml INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,824: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/README.rst INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,836: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/version.txt INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,841: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/COPYING INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,862: Creating base bob python module INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,887: mkdir /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/img INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,888: cp -a /idiap/user/heusch/miniconda2/envs/bdt/lib/python3.7/site-packages/bob/devtools/scripts/../templates/doc/img/bob-favicon.ico /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/img/bob-favicon.ico INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,897: cp -a /idiap/user/heusch/miniconda2/envs/bdt/lib/python3.7/site-packages/bob/devtools/scripts/../templates/doc/img/bob-128x128.png /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/img/bob-128x128.png INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,904: cp -a /idiap/user/heusch/miniconda2/envs/bdt/lib/python3.7/site-packages/bob/devtools/scripts/../templates/doc/img/bob-logo.png /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/doc/img/bob-logo.png INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,912: mkdir /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/conda INFO:bob.devtools.scripts.new@2019-04-03 15:48:45,916: rendering /remote/idiap.svm/user.active/heusch/work/dev/gitlab/bob.blah.test/conda/meta.yaml
So my best guess is that you should manually edit it, but there is no mention of that in the doc
- André Anjos mentioned in commit f6fb173e
mentioned in commit f6fb173e
- Owner
Hummm... That is a bug of course!
- André Anjos mentioned in merge request !36 (merged)
mentioned in merge request !36 (merged)
- André Anjos assigned to @andre.anjos
assigned to @andre.anjos
- André Anjos closed via merge request !36 (merged)
closed via merge request !36 (merged)
- André Anjos mentioned in commit 11fd6d23
mentioned in commit 11fd6d23