`git init` is mandatory

Abierto
#562 1 comentario 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
git, python
Área
build-system

Línea de trabajo

Start with the cookiecutter flow that asks whether to run git init, then inspect pyproject.toml and its setuptools-scm configuration. Reproduce the issue by creating a project, answering no, and running uv pip install -e .; done means the generated project handles that choice consistently without the reported installation failure.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Describe the Bug

Despite that we allow users to say "no" to the question about initialising a git repository, we have setuptools-scm in our pyproject.toml so one can't run

uv pip install -e .

if one hasn't initialised a repo. It might be simplest "just" to check that git is installed and error if not. But as-is, there's a bug in the questions vs. pyproject.toml.

To Reproduce

Cookiecut a project, say "no" to the git init question and see what things break 😄.

Expected Behaviour

No response

Actual Behaviour

No response

Version In Use

v1.0.1

Additional Context
- Cookiecutter version: 2.6.0
- Operating system: macOS
- Python version: 3.13

Though I'm pretty confident this isn't an OS/version-dependent problem.
Lenguaje dominante
Python
Estrellas
62
Forks
10
Merge medio
7 d 6 h
PR fusionados (30 d)
6

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de UCL-ARC/python-tooling

Todos los issues de UCL-ARC/python-tooling

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.