124973271c
The instructions for setting up the virtualenv were wrong, leading to it being unusable. This patch fixes the setup and adds a variable to control the location of the virtualenv, to mirror the way ensure-sphinx and some of our other roles work. Change-Id: I2d8d443ec1fb51d58e70ca0b7837e8ccf586513c Signed-off-by: Doug Hellmann <doug@doughellmann.com>
16 lines
639 B
YAML
16 lines
639 B
YAML
- name: Install docutils for the README check
|
|
# NOTE(dhellmann): We install this unconstrained because we expect
|
|
# setuptools to expect the most recent version anyway. We use a
|
|
# virtualenv to avoid conflicts with system packages due to pip10
|
|
# and later.
|
|
pip:
|
|
name: docutils
|
|
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"
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|