diff --git a/.redport/patches/disable-install-step.before.193f667.patch b/.redport/patches/disable-install-step.before.193f667.patch deleted file mode 100644 index 7856bb0..0000000 --- a/.redport/patches/disable-install-step.before.193f667.patch +++ /dev/null @@ -1,81 +0,0 @@ -diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py -index c3d1ed6..1c071ce 100644 ---- a/hooks/post_gen_project.py -+++ b/hooks/post_gen_project.py -@@ -1,76 +1,2 @@ --import logging --import os --from pathlib import Path, PurePath - import shutil --import subprocess --import sys -- --from cookiecutter.config import get_user_config -- -- --logger = logging.getLogger(__name__) -- --logger.info('Saving replay file for red-port') --config_dict = get_user_config() --template_name = '{{ cookiecutter._repo_dir.split('/')[-1] }}' --target_replay_path = Path('.redport') / 'cookiecutter_replay' --target_replay_path.mkdir(exist_ok=True) --shutil.copy( -- (PurePath(config_dict['replay_dir']) / template_name).with_suffix('.json'), -- target_replay_path, --) -- - shutil.rmtree('licenses') -- --{%- if cookiecutter.install_dependencies_now == "y" %} --def sysexit_formatted(message: str) -> None: -- width = max((len(line) for line in message)) -- print('', width * '-', *message, width * '-', -- file=sys.stderr, sep='\n') -- sys.exit() -- --pyenv_commands = [ -- 'pyenv install -s', -- 'pyenv exec python -m venv .venv', --] -- --try: -- for pyenv_command in pyenv_commands: -- subprocess.run(pyenv_command, check=True, shell=True) --except subprocess.CalledProcessError as e: -- sysexit_formatted([ -- f'Pyenv failed with exit code {e.returncode}.', -- 'Go to the {{ cookiecutter.project_slug }}' -- ' directory and re-run:', -- *[ -- f' {command}' -- for command in pyenv_commands + ['poetry install'] -- ], -- ]) -- --poetry_environment = os.environ.copy() --poetry_environment.update({ -- 'LANG': poetry_environment.get('LANG', 'en_US.UTF-8'), -- # https://github.com/python-poetry/poetry/issues/1917 -- 'PYTHON_KEYRING_BACKEND': 'keyring.backends.null.Keyring', --}) -- --logger.info('Running poetry. This may take a while.') --try: -- subprocess.run( -- 'poetry install', -- env=poetry_environment, -- check=True, -- shell=True, -- stdout=sys.stderr, -- ) --except subprocess.CalledProcessError as e: -- print( -- f'Poetry failed with exit code {e.returncode}.', -- 'Fix any issues, then go to the ' -- '{{ cookiecutter.project_slug }} directory and re-run:', -- f' {e.cmd}', -- file=sys.stderr, -- sep='\n', -- ) --{%- endif %}