From e5abc67c48eac1bfb37b8434ddf85698d46458a1 Mon Sep 17 00:00:00 2001 From: Naman-Priyadarshi Date: Sat, 24 Feb 2024 06:05:02 +0530 Subject: [PATCH] make .gitignore dynamic based on selected backend --- .../{{cookiecutter.project_slug}}/.gitignore | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/scicookie/{{cookiecutter.project_slug}}/.gitignore b/src/scicookie/{{cookiecutter.project_slug}}/.gitignore index 68bc17f9..10af8bf9 100644 --- a/src/scicookie/{{cookiecutter.project_slug}}/.gitignore +++ b/src/scicookie/{{cookiecutter.project_slug}}/.gitignore @@ -94,20 +94,24 @@ ipython_config.py # install all needed dependencies. #Pipfile.lock -# poetry -# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. -# This is especially recommended for binary packages to ensure reproducibility, and is more -# commonly ignored for libraries. -# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control -#poetry.lock - -# pdm -# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. -#pdm.lock -# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it -# in version control. -# https://pdm.fming.dev/#use-with-ide -.pdm.toml +{%- if cookiecutter.build_system == "poetry" %} +# poetry build system +poetry.lock + +{%- elif cookiecutter.build_system == "mesonpy" %} +# meson build system +meson.build +meson_options.txt + +{%- elif cookiecutter.build_system == "pdm" %} +# pdm build system +pdm.lock + +{%- elif cookiecutter.build_system == "maturin" %} +# maturin build system +Cargo.lock + +{%- endif %} # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm __pypackages__/