From 605dd721d7d113601f8f4895ea273cacd42ec91a Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 17 Nov 2017 10:40:01 -0500 Subject: [PATCH] allow server projects to be published to pypi by default Update the default jobs allowed for a python service to include publish-to-pypi, as we begin to publish more services there. Change-Id: Ibf31c851205a0eed283a4f6bdc1cd6a8037dcd79 Signed-off-by: Doug Hellmann --- openstack_releases/project_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openstack_releases/project_config.py b/openstack_releases/project_config.py index 21be9d1ef2..2ce40f1d4c 100644 --- a/openstack_releases/project_config.py +++ b/openstack_releases/project_config.py @@ -83,6 +83,7 @@ def get_zuul_project_data(url=ZUUL_PROJECTS_URL): _RELEASE_JOBS_FOR_TYPE = { 'python-service': [ 'release-openstack-server', + 'publish-to-pypi', ], 'python-pypi': [ 'publish-to-pypi', @@ -178,9 +179,11 @@ def require_release_jobs_for_repo(deliverable_info, zuul_projects, repo, for wrong_type, wrong_jobs in _RELEASE_JOBS_FOR_TYPE.items(): if wrong_type == release_type: continue + # "bad" jobs are any that are attached to the repo but + # are not supported by the release-type of the repo bad_jobs = [ j for j in wrong_jobs - if j in templates + if j in templates and j not in expected_jobs ] if bad_jobs: mk_error(