26 lines
997 B
YAML
26 lines
997 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: Install Pygments for the README check
|
|
# 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"
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|