Skip to content

Commit e94a83a

Browse files
authored
Merge pull request #92 from minos-framework/issue-90-delete-builddockercompose-file
#90 - Delete `.build-docker-compose.txt` file
2 parents b1c3f7d + 7de5a7c commit e94a83a

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

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.2.dev4"
24+
TEMPLATE_VERSION: Final[str] = "v0.1.2.dev6"
2525

2626

2727
class TemplateFetcher:

poetry.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pre-commit = "^2.12.1"
4848
sphinx-autodoc-typehints = "^1.12.0"
4949
sphinxcontrib-apidoc = "^0.3.0"
5050
sphinx-rtd-theme = "^0.5.2"
51-
m2r2 = "^0.2.7"
51+
m2r2 = "^0.3.2"
5252

5353
[build-system]
5454
requires = ["poetry-core>=1.0.0"]

tests/test_cli/test_api/test_new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def test_new_project(self) -> None:
4545
def test_new_microservice(self) -> None:
4646
with TemporaryDirectory() as tmp_dir_name:
4747
path = Path(tmp_dir_name) / "product"
48+
path.mkdir()
49+
(path / ".build_docker_compose.txt").touch()
4850
with patch("minos.cli.TemplateProcessor.render") as mock:
4951
result = CliRunner().invoke(app, ["new", "microservice", str(path)])
5052

0 commit comments

Comments
 (0)