From c11c8f93355e1f8a704badc73942023f8275c089 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 3 Sep 2020 11:58:43 +0300 Subject: [PATCH 1/3] Add SecretFile to public exposed names --- neuromation/api/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neuromation/api/__init__.py b/neuromation/api/__init__.py index ef0e63b94..c1ab91566 100644 --- a/neuromation/api/__init__.py +++ b/neuromation/api/__init__.py @@ -52,9 +52,8 @@ JobTelemetry, Resources, StdStream, - Volume, ) -from .parser import Parser +from .parser import Parser, SecretFile, Volume from .parsing_utils import LocalImage, RemoteImage, TagOption from .plugins import PluginManager from .secrets import Secret, Secrets @@ -131,6 +130,7 @@ "Parser", "Secrets", "Secret", + "SecretFile", "PluginManager", "find_project_root", ) From 48b06e831c46a3f0ae403466283caa92cbb20318 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 3 Sep 2020 12:01:03 +0300 Subject: [PATCH 2/3] Reorganize imports --- tests/cli/formatters/test_jobs_formatters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli/formatters/test_jobs_formatters.py b/tests/cli/formatters/test_jobs_formatters.py index 467c70db3..d002f444f 100644 --- a/tests/cli/formatters/test_jobs_formatters.py +++ b/tests/cli/formatters/test_jobs_formatters.py @@ -16,9 +16,9 @@ JobTelemetry, RemoteImage, Resources, + SecretFile, Volume, ) -from neuromation.api.parser import SecretFile from neuromation.api.parsing_utils import _ImageNameParser from neuromation.cli.formatters.jobs import ( JobStartProgress, From 9918a06873189e47ce5bf5e64237debbf3c2a802 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 3 Sep 2020 12:03:55 +0300 Subject: [PATCH 3/3] Add changelog --- CHANGELOG.D/1714.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGELOG.D/1714.bugfix diff --git a/CHANGELOG.D/1714.bugfix b/CHANGELOG.D/1714.bugfix new file mode 100644 index 000000000..b4a52c8d8 --- /dev/null +++ b/CHANGELOG.D/1714.bugfix @@ -0,0 +1 @@ +Make `neuromation.api.SecretFile` class public \ No newline at end of file