Skip to content

Commit 6d88bf4

Browse files
authored
Merge pull request #98 from minos-framework/0.2.x
v0.2.1
2 parents beca6ff + 84707ac commit 6d88bf4

File tree

10 files changed

+256
-176
lines changed

10 files changed

+256
-176
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: make coverage
2525

2626
- name: Publish coverage
27-
uses: codecov/codecov-action@v1.3.1
27+
uses: codecov/codecov-action@v2
2828
with:
2929
token: ${{ secrets.CODECOV_TOKEN }}
3030
files: ./coverage.xml

HISTORY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@
3939
* `version` commands added.
4040
* Minos CLI no longer generates `__pycache__` archives.
4141
* `init` command is no longer supported.
42+
43+
## 0.2.1 (2022-03-16)
44+
45+
* Updated microservices' query repository.
46+
* Enhanced defaults Redis Docker container.
47+
* Automatic databases creation in script SQL file.
48+
* Fixed bugs
49+
* Improved versions compatibility.

minos/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__author__ = "Minos Framework Devs"
22
__email__ = "[email protected]"
3-
__version__ = "0.2.0"
3+
__version__ = "0.2.1"
44

55
import sys
66

minos/cli/api/new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def new_microservice(name: str) -> None:
4545
processor = TemplateProcessor.from_fetcher(fetcher, microservice_path, defaults={"name": name})
4646
processor.render()
4747

48+
(microservice_path / ".build_docker_compose.txt").unlink()
49+
4850

4951
@app.callback()
5052
def callback():

minos/cli/templating/fetchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222

2323
TEMPLATE_URL: Final[str] = "https://github.com/minos-framework/minos-templates/releases/download"
24-
TEMPLATE_VERSION: Final[str] = "v0.1.1"
24+
TEMPLATE_VERSION: Final[str] = "v0.1.2"
2525

2626

2727
class TemplateFetcher:

minos/cli/templating/processors.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def answers(self) -> dict[str, Any]:
135135
:return: A mapping from question name to the answer value.
136136
"""
137137
answers = self.context
138-
answers |= self._previous_answers
138+
answers |= self._previous_answers_without_template_registry
139139

140140
answers = self.form.ask(context=answers, env=self.env)
141141
self._store_new_answers(answers)
@@ -154,6 +154,14 @@ def _previous_answers(self) -> dict[str, str]:
154154

155155
return answers
156156

157+
@cached_property
158+
def _previous_answers_without_template_registry(self):
159+
previous_answers_without_registry = self._previous_answers.copy()
160+
previous_answers_without_registry.pop("template_registry", None)
161+
previous_answers_without_registry.pop("template_version", None)
162+
163+
return previous_answers_without_registry
164+
157165
def _store_new_answers(self, answers) -> None:
158166
with self._answers_file_path.open("w") as file:
159167
yaml.dump(answers, file)

0 commit comments

Comments
 (0)