Closed cfgmr closed 2 months ago
@cfgmr I am trying to recreate this error, but I couldn't. Could you let me know of your OS and way of creating the virtual environment?
Could you let me know of your OS and way of creating the virtual environment?
My apologies, I was not using a new venv, but one which already had an older version of cookiecutter (v2.1.1) installed. The problem does not occur in a fresh venv with up-to-date cookiecutter. I updated the environment info in the issue description above accordingly.
I tested it, and fair-python-cookiecutter
fails with cookiecutter 2.1.1 but works with cookiecutter 2.2.3.
A change in the pyproject.toml
from cookiecutter = "^2.1.1"
to cookiecutter = "^2.2"
could probably fix this issue.
Dockerfile for an environment to reproduce the error:
FROM python:3.10.12-slim AS base
RUN apt update && apt install -y git
RUN pip install poetry
RUN pip install fair-python-cookiecutter
RUN pip install cookiecutter==2.1.1
Thank you for the information, I will release a fix ASAP.
Describe the bug Creating a new Project fails with
`TypeError: cookiecutter() got an unexpected keyword argument 'keep_project_on_failure'
To Reproduce Steps to reproduce the behavior: 1.
pip install fair-python-cookiecutter
pip install poetry
fair-python-cookiecutter my-awesome-project
Expected behavior Expected a new project stub
Screenshots If applicable, add screenshots to help explain your problem.
Traces
Environment Provide information about versions of relevant software packages.
Additional context
Fresh install of poetry and fair-python-cookiecutter in a virtual env