openstack-ansible-os_horizon/tasks/horizon_install_source.yml
Dmitriy Rabotyagov 2c9f231d6a Release pyscss constraints
With [1] pyscss version was bumped to 1.4.0. With that horizon also
requires pyscss>=1.4.0 which means there's no need to additionally
constraint it.

We also temporary disable all functional jobs to resolve circular
dependency.

Needed-By: https://review.opendev.org/c/openstack/openstack-ansible/+/847272
[1] 4fa5acc415

Change-Id: I5676d358d1ec38904fc067ab5f14711358f6031c
2022-07-05 07:17:48 +00:00

63 lines
3.6 KiB
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE(jrosser)
# horizon appears in u-c as is it used as a library for the horizon plugins
# the new pip resolver will fail to install horizon if two contradictory
# constraints are given which will always happen with a source install
# and wheels built on the repo server. We must filter horizon out of u-c.
- name: Retrieve the constraints URL
uri:
url: "{{ horizon_upper_constraints_url }}"
return_content: yes
register: _u_c_contents
- name: Install the python venv
include_role:
name: "python_venv_build"
vars:
venv_python_executable: "{{ horizon_venv_python_executable }}"
venv_build_constraints: "{{ _u_c_contents.content.split('\n') | reject('match', '^(horizon)=') | list + horizon_venv_extra_constraints }}"
venv_build_distro_package_list: "{{ horizon_devel_distro_packages }}"
venv_install_destination_path: "{{ horizon_bin | dirname }}"
venv_pip_install_args: "{{ horizon_pip_install_args }}"
venv_pip_packages: >-
{{ horizon_pip_packages | union(horizon_user_pip_packages) +
horizon_optional_pip_packages +
horizon_service_pip_packages | default([]) +
(horizon_enable_adjutant_ui | bool) | ternary(horizon_adjutant_optional_pip_packages, []) +
(horizon_enable_barbican_ui | bool) | ternary(horizon_barbican_optional_pip_packages, []) +
(horizon_enable_blazar_ui | bool) | ternary(horizon_blazar_optional_pip_packages, []) +
(horizon_enable_cloudkitty_ui | bool) | ternary(horizon_cloudkitty_optional_pip_packages, []) +
(horizon_enable_designate_ui | bool) | ternary(horizon_designate_optional_pip_packages, []) +
(horizon_enable_heat_ui | bool) | ternary(horizon_heat_optional_pip_packages, []) +
(horizon_enable_ironic_ui | bool) | ternary(horizon_ironic_optional_pip_packages, []) +
(horizon_enable_magnum_ui | bool) | ternary(horizon_magnum_optional_pip_packages, []) +
(horizon_enable_mistral_ui | bool) | ternary(horizon_mistral_optional_pip_packages, []) +
(horizon_enable_manila_ui | bool) | ternary(horizon_manila_optional_pip_packages, []) +
(horizon_enable_masakari_ui | bool) | ternary(horizon_masakari_optional_pip_packages, []) +
(horizon_enable_murano_ui | bool) | ternary(horizon_murano_optional_pip_packages, []) +
(horizon_enable_neutron_vpnaas | bool) | ternary(horizon_neutron_vpnaas_optional_pip_packages, []) +
(horizon_enable_octavia_ui | bool) | ternary(horizon_octavia_optional_pip_packages, []) +
(horizon_enable_sahara_ui | bool) | ternary(horizon_sahara_optional_pip_packages, []) +
(horizon_enable_tacker_ui | bool) | ternary(horizon_tacker_optional_pip_packages, []) +
(horizon_enable_trove_ui | bool) | ternary(horizon_trove_optional_pip_packages, []) +
(horizon_enable_watcher_ui | bool) | ternary(horizon_watcher_optional_pip_packages, []) +
(horizon_enable_zun_ui | bool) | ternary(horizon_zun_optional_pip_packages, []) }}
venv_facts_when_changed:
- section: "horizon"
option: "venv_tag"
value: "{{ horizon_venv_tag }}"