mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 14:25:46 +00:00
ci: python 3.12+ compatibility
ci: python 3.12+ compatibility
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import docker
|
||||
import pytest
|
||||
from distutils.version import LooseVersion
|
||||
from packaging.version import Version
|
||||
|
||||
|
||||
raw_version = docker.from_env().version()["Version"]
|
||||
pytestmark = pytest.mark.skipif(
|
||||
LooseVersion(raw_version) < LooseVersion("1.13"),
|
||||
Version(raw_version) < Version("1.13"),
|
||||
reason="Docker compose syntax v3 requires docker engine v1.13 or later (got {raw_version})"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user