mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
80b6bd6813
Carbon 1.1.1 for some reason added six to their setup.py, which breaks this test since it's not installed into the virtualenv. This PR forces this test to use a version of carbon which does not dep on six in its setup.py.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
{%- set virtualenv_base = salt['runtests_helpers.get_salt_temp_dir_for_path']('virtualenv-12-base') -%}
|
|
{%- set virtualenv_test = salt['runtests_helpers.get_salt_temp_dir_for_path']('pip-installed-weird-install') -%}
|
|
|
|
{{ virtualenv_base }}:
|
|
virtualenv.managed:
|
|
- system_site_packages: False
|
|
- distribute: True
|
|
|
|
install_older_venv:
|
|
pip.installed:
|
|
- name: 'virtualenv < 13.0'
|
|
- bin_env: {{ virtualenv_base }}
|
|
- require:
|
|
- virtualenv: {{ virtualenv_base }}
|
|
|
|
# For this test we need to make sure that the virtualenv used in the
|
|
# 'carbon-weird-setup' pip.installed state below was created using
|
|
# virtualenv < 13.0. virtualenvs created using later versions make
|
|
# packages with custom setuptools prefixes relative to the virtualenv
|
|
# itself, which makes the 'weird' behavior we are trying to confirm
|
|
# obsolete. Thus, the two states above ensure that the 'base' venv has
|
|
# a version old enough to exhibit the behavior we want to test.
|
|
|
|
setup_test_virtualenv:
|
|
cmd.run:
|
|
- name: {{ virtualenv_base }}/bin/virtualenv {{ virtualenv_test }}
|
|
- onchanges:
|
|
- pip: install_older_venv
|
|
|
|
carbon-weird-setup:
|
|
pip.installed:
|
|
- name: 'carbon < 1.1'
|
|
- no_deps: True
|
|
- bin_env: {{ virtualenv_test }}
|
|
- onchanges:
|
|
- cmd: setup_test_virtualenv
|