Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable-2.9] Add constraints for new ruamel release #75134

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1 +1,3 @@
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later
ruamel.yaml < 0.17 ; python_version <= '2.7' # ruamel.yaml 0.17 and later are not tested with Python 2.7
ruamel.yaml.clib <= 0.2.2 ; python_version < '3.5' # ruamel.yaml.clib 0.2.3 and later requires Python 3.5 or later
2 changes: 2 additions & 0 deletions test/integration/targets/k8s/files/constraints.txt
@@ -0,0 +1,2 @@
ruamel.yaml < 0.17 ; python_version <= '2.7' # ruamel.yaml 0.17 and later are not tested with Python 2.7
ruamel.yaml.clib <= 0.2.2 ; python_version < '3.5' # ruamel.yaml.clib 0.2.3 and later requires Python 3.5 or later
12 changes: 12 additions & 0 deletions test/integration/targets/k8s/tasks/main.yml
Expand Up @@ -17,6 +17,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: validate_not_installed.yml
vars:
Expand All @@ -37,6 +39,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: validate_installed.yml
vars:
Expand All @@ -58,6 +62,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: older_openshift_fail.yml
vars:
Expand All @@ -80,6 +86,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: basic_validation.yml

Expand All @@ -96,6 +104,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: basic_validation.yml

Expand All @@ -113,6 +123,8 @@
virtualenv: "{{ virtualenv }}"
virtualenv_command: "{{ virtualenv_command }}"
virtualenv_site_packages: no
extra_args:
-c {{ role_path }}/files/constraints.txt

- include_tasks: full_test.yml
vars:
Expand Down