浏览代码

Add 3.2 schema to docker-compose.spec

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 8 年之前
父节点
当前提交
65b919cf08
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2 2
      compose/config/errors.py
  2. 5 0
      docker-compose.spec

+ 2 - 2
compose/config/errors.py

@@ -4,8 +4,8 @@ from __future__ import unicode_literals
 
 
 VERSION_EXPLANATION = (
 VERSION_EXPLANATION = (
     'You might be seeing this error because you\'re using the wrong Compose file version. '
     'You might be seeing this error because you\'re using the wrong Compose file version. '
-    'Either specify a supported version ("2.0", "2.1", "3.0", "3.1") and place your '
-    'service definitions under the `services` key, or omit the `version` key '
+    'Either specify a supported version ("2.0", "2.1", "3.0", "3.1", "3.2") and place '
+    'your service definitions under the `services` key, or omit the `version` key '
     'and place your service definitions at the root of the file to use '
     'and place your service definitions at the root of the file to use '
     'version 1.\nFor more on the Compose file format versions, see '
     'version 1.\nFor more on the Compose file format versions, see '
     'https://docs.docker.com/compose/compose-file/')
     'https://docs.docker.com/compose/compose-file/')

+ 5 - 0
docker-compose.spec

@@ -42,6 +42,11 @@ exe = EXE(pyz,
                 'compose/config/config_schema_v3.1.json',
                 'compose/config/config_schema_v3.1.json',
                 'DATA'
                 'DATA'
             ),
             ),
+            (
+                'compose/config/config_schema_v3.2.json',
+                'compose/config/config_schema_v3.2.json',
+                'DATA'
+            ),
             (
             (
                 'compose/GITSHA',
                 'compose/GITSHA',
                 'compose/GITSHA',
                 'compose/GITSHA',