Skip to content

Commit

Permalink
fix: Fix new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramimashkouk committed Jul 29, 2024
1 parent 9b3af6e commit 0d2a43a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/df_designer/app/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys
from pathlib import Path

import toml
import nest_asyncio
import typer
from cookiecutter.main import cookiecutter
Expand Down Expand Up @@ -102,14 +101,13 @@ def run_app(
@cli.command("init")
def init(destination: str = settings.work_directory, no_input: bool = False, overwrite_if_exists: bool = True):
original_dir = os.getcwd()
pyproject = toml.load(settings.pyproject_path)
try:
os.chdir(destination)
cookiecutter(
"https://github.com/Ramimashkouk/df_d_template.git",
no_input=no_input,
overwrite_if_exists=overwrite_if_exists,
extra_context={"dflowd_version": pyproject["tool"]["poetry"]["version"]},
extra_context={"dflowd_version": "0.1.0b2"},
)
finally:
os.chdir(original_dir)

0 comments on commit 0d2a43a

Please sign in to comment.