From 5a1fe80d6b481cb89441b1a90fee6c579d474d8b Mon Sep 17 00:00:00 2001 From: Graham Hayes Date: Tue, 16 Oct 2018 16:25:22 +0100 Subject: [PATCH] Install Pygments before checking README syntax for publish jobs Story: 2004094 Task: 27496 Change-Id: I4f2ea50bdc86a50da2c5d331d6d84fe430d710ce Signed-off-by: Graham Hayes --- roles/check-python-release/tasks/main.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/check-python-release/tasks/main.yaml b/roles/check-python-release/tasks/main.yaml index 1336b1246d..3d1e83ea72 100644 --- a/roles/check-python-release/tasks/main.yaml +++ b/roles/check-python-release/tasks/main.yaml @@ -8,6 +8,14 @@ virtualenv: "{{ check_python_release_virtualenv }}" virtualenv_python: "{{ release_python }}" chdir: "{{ zuul_work_dir }}" + # Pygments needs to be installed to allow the metadata and README + # check parse project READMEs that have code blocks in the + # README.rst file. + pip: + name: Pygments + virtualenv: "{{ check_python_release_virtualenv }}" + virtualenv_python: "{{ release_python }}" + chdir: "{{ zuul_work_dir }}" - name: Check the package metadata and README format command: "{{ check_python_release_virtualenv }}/bin/{{ release_python }} setup.py check --restructuredtext --strict"