Remove check-python-release role
The check-python-release role is still running 'setup.py check' against the repo. That command is obsolete, and should be replaced with twine. The pti-python-tarball/check.yaml playbook already runs twine, so we can just remove the role with the obsolete command to have it tested with twine. Change-Id: I99469da7b0f06656524d97d788b7440e1ed8ad4f
This commit is contained in:
parent
8c57bc627d
commit
53f1b26469
@ -1,6 +1,5 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- check-python-release
|
||||
- build-python-release
|
||||
- ensure-twine
|
||||
post_tasks:
|
||||
|
@ -1,16 +0,0 @@
|
||||
Test building sdist and wheel for Python projects and verify their
|
||||
metadata.
|
||||
|
||||
** Role Variables **
|
||||
|
||||
.. zuul:rolevar:: release_python
|
||||
:default: python
|
||||
|
||||
The python interpreter to use. Set it to "python3" to use python 3,
|
||||
for example.
|
||||
|
||||
.. zuul:rolevar:: check_python_release_virtualenv
|
||||
:default: {{ansible_user_dir}}/.venv
|
||||
|
||||
The location for the virtualenv used to install the tools needed to
|
||||
check the packaging metadata for the project.
|
@ -1,3 +0,0 @@
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||
release_python: "python"
|
||||
check_python_release_virtualenv: "{{ ansible_user_dir }}/.venv"
|
@ -1,25 +0,0 @@
|
||||
- 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 }}"
|
Loading…
x
Reference in New Issue
Block a user