Run some tests with the latest PyPi version of Docker SDK for Python (#348)

* Run some tests with the latest PyPi version of Docker SDK for Python.

* Use new enough Python so we can actually install the latest Docker SDK for Python.

* Ansibilize

* Fix test.

* Fix two stupid errors by myself.
This commit is contained in:
Felix Fontein
2022-05-13 22:06:51 +02:00
committed by GitHub
parent 560bf1d3a3
commit 155a8b4ba9
4 changed files with 54 additions and 38 deletions
@@ -50,11 +50,11 @@
docker_pip_package_limit: '<4.3.0'
when: (docker_api_version_stdout.stdout | default('0.0')) is version('1.39', '<')
- name: Install Python requirements
- name: Install/upgrade Python requirements
pip:
state: present
name: "{{ [docker_pip_package ~ docker_pip_package_limit] + docker_pip_extra_packages }}"
extra_args: "-c {{ remote_constraints }}"
state: "{{ 'latest' if force_docker_sdk_for_python_pypi | default(false) else 'present' }}"
notify: cleanup docker
# Detect docker CLI, API and docker-py versions