Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: little house keeping and files & folder restructure #33

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,752 changes: 2,752 additions & 0 deletions .vscode/PythonImportHelper-v2-Completion.json

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions myte/__init__.py

This file was deleted.

2 changes: 0 additions & 2 deletions myte/utils/__init__.py

This file was deleted.

File renamed without changes.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
import os
import shutil

from constants import current_dir, messages, system_os, template_folder
from rich import print as mprint
from rich.console import Console
from rich.text import Text
from utils import GenerateSecretKey

from ..utils.secret_key_generator import GenerateSecretKey
from ..utils.constants import current_dir, messages, system_os, template_folder


class CreateProject:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import shutil

import typer
from constants import current_dir, messages
from rich import print as mprint

from ..utils.constants import current_dir, messages


class DeleteProject:
""" This class defines the project deletion/override function """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

import inquirer
import typer
from create_project import CreateProject
from delete_project import DeleteProject
from rich import print as mprint
from rich.prompt import Prompt
from utils import UKeyboardInterrupt

from ..utils.errors import UKeyboardInterrupt
from .create_project import CreateProject
from .delete_project import DeleteProject


class SetupProject:
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

# get template folder path

template_folder = os.path.join(os.path.dirname(__file__), "templates")
# template_folder = os.path.join(os.path.dirname(__file__), "templates")
template_folder = os.path.join(os.path.abspath(
os.path.join(os.path.dirname(__file__), os.pardir)), "templates")


# get current working directory path

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions myte/main.py → packages/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"""

import typer
from constants import messages
from create_myte.resources.setup_project import SetupProject
from create_myte.utils.constants import messages
from rich import print as mprint
from rich.console import Console
from rich.text import Text
from setup_project import SetupProject

# cli initialization

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ install_requires =

[options.entry_points]
console_scripts =
myte-start = myte.main:main
create-myte = myte.main:main