diff --git a/.github/workflows/build.yml b/.github/workflows/build.yaml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/build.yaml diff --git a/Makefile b/Makefile index 1b2eda6..b88d130 100644 --- a/Makefile +++ b/Makefile @@ -20,29 +20,29 @@ endif .PHONY: gen-python gen-cpp gen-js gen-jupyter gen-rust gen-python: ## regenerate the python template from scratch - mkdir -p ../python-template && cd ../python-template && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes - copier copy -w . ../python-template --data-file examples/python.yml - cd ../python-template && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml + mkdir -p ../python-template && cd ../python-template && rm -rf ./* && rm -rf .copier-answers.yaml .gitignore .github .gitattributes + copier copy -w . ../python-template --data-file examples/python.yaml + cd ../python-template && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml gen-cpp: ## regenerate the c++ template from scratch - mkdir -p ../python-template-cpp && cd ../python-template-cpp && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes - copier copy -w . ../python-template-cpp --data-file examples/cpp.yml - cd ../python-template-cpp && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml + mkdir -p ../python-template-cpp && cd ../python-template-cpp && rm -rf ./* && rm -rf .copier-answers.yaml .gitignore .github .gitattributes + copier copy -w . ../python-template-cpp --data-file examples/cpp.yaml + cd ../python-template-cpp && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml gen-js: ## regenerate the js template from scratch - mkdir -p ../python-template-js && cd ../python-template-js && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes - copier copy -w . ../python-template-js --data-file examples/js.yml - cd ../python-template-js && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml + mkdir -p ../python-template-js && cd ../python-template-js && rm -rf ./* && rm -rf .copier-answers.yaml .gitignore .github .gitattributes + copier copy -w . ../python-template-js --data-file examples/js.yaml + cd ../python-template-js && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml gen-jupyter: ## regenerate the jupyter template from scratch - mkdir -p ../python-template-jupyter && cd ../python-template-jupyter && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes - copier copy -w . ../python-template-jupyter --data-file examples/jupyter.yml - cd ../python-template-jupyter && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml + mkdir -p ../python-template-jupyter && cd ../python-template-jupyter && rm -rf ./* && rm -rf .copier-answers.yaml .gitignore .github .gitattributes + copier copy -w . ../python-template-jupyter --data-file examples/jupyter.yaml + cd ../python-template-jupyter && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml gen-rust: ## regenerate the rust template from scratch - mkdir -p ../python-template-rust && cd ../python-template-rust && rm -rf ./* && rm -rf .copier-answers.yml .gitignore .github .gitattributes - copier copy -w . ../python-template-rust --data-file examples/rust.yml - cd ../python-template-rust && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yml + mkdir -p ../python-template-rust && cd ../python-template-rust && rm -rf ./* && rm -rf .copier-answers.yaml .gitignore .github .gitattributes + copier copy -w . ../python-template-rust --data-file examples/rust.yaml + cd ../python-template-rust && $(SED) 's#_src_path: .#_src_path: https://github.com/python-project-templates/base.git#g' ./.copier-answers.yaml .PHONY: test-python test-cpp test-js test-jupyter test-rust test-python: diff --git a/copier.yaml b/copier.yaml index 6a5d324..2243b77 100644 --- a/copier.yaml +++ b/copier.yaml @@ -1,3 +1,5 @@ +_answers_file: .copier-answers.yaml + _exclude: - name-slug.jinja - module-slug.jinja diff --git a/cpp/.github/dependabot.yml b/cpp/.github/dependabot.yaml similarity index 100% rename from cpp/.github/dependabot.yml rename to cpp/.github/dependabot.yaml diff --git a/cpp/.github/workflows/build.yml.jinja b/cpp/.github/workflows/build.yaml.jinja similarity index 100% rename from cpp/.github/workflows/build.yml.jinja rename to cpp/.github/workflows/build.yaml.jinja diff --git a/cpp/.github/workflows/copier.yml b/cpp/.github/workflows/copier.yaml similarity index 100% rename from cpp/.github/workflows/copier.yml rename to cpp/.github/workflows/copier.yaml diff --git a/cpp/README.md.jinja b/cpp/README.md.jinja index bf755f0..ee722e1 100644 --- a/cpp/README.md.jinja +++ b/cpp/README.md.jinja @@ -2,7 +2,7 @@ {{project_description}} -[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml) +[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml) [![codecov](https://codecov.io/gh/{{github}}/{{project_name_formatted}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github}}/{{project_name_formatted}}) [![License](https://img.shields.io/github/license/{{github}}/{{project_name_formatted}})](https://github.com/{{github}}/{{project_name_formatted}}) [![PyPI](https://img.shields.io/pypi/v/{{project_name_formatted}}.svg)](https://pypi.python.org/pypi/{{project_name_formatted}}) diff --git a/cpp/pyproject.toml.jinja b/cpp/pyproject.toml.jinja index b5d97fd..12b74af 100644 --- a/cpp/pyproject.toml.jinja +++ b/cpp/pyproject.toml.jinja @@ -69,7 +69,7 @@ replace = 'version = "{new_version}"' [tool.check-manifest] ignore = [ - ".copier-answers.yml", + ".copier-answers.yaml", ".clang-format", "Makefile", "docs/**/*", diff --git a/examples/cpp.yml b/examples/cpp.yaml similarity index 100% rename from examples/cpp.yml rename to examples/cpp.yaml diff --git a/examples/js.yml b/examples/js.yaml similarity index 100% rename from examples/js.yml rename to examples/js.yaml diff --git a/examples/jupyter.yml b/examples/jupyter.yaml similarity index 100% rename from examples/jupyter.yml rename to examples/jupyter.yaml diff --git a/examples/python.yml b/examples/python.yaml similarity index 100% rename from examples/python.yml rename to examples/python.yaml diff --git a/examples/rust.yml b/examples/rust.yaml similarity index 100% rename from examples/rust.yml rename to examples/rust.yaml diff --git a/js/.gitattributes b/js/.gitattributes index 31c8297..bb7085b 100644 --- a/js/.gitattributes +++ b/js/.gitattributes @@ -12,4 +12,4 @@ Makefile linguist-documentation *.py text=auto eol=lf *.toml text=auto eol=lf *.ts text=auto eol=lf -*.yml text=auto eol=lf +*.yaml text=auto eol=lf diff --git a/js/.github/dependabot.yml b/js/.github/dependabot.yaml similarity index 100% rename from js/.github/dependabot.yml rename to js/.github/dependabot.yaml diff --git a/js/.github/workflows/build.yml.jinja b/js/.github/workflows/build.yaml.jinja similarity index 100% rename from js/.github/workflows/build.yml.jinja rename to js/.github/workflows/build.yaml.jinja diff --git a/js/.github/workflows/copier.yml b/js/.github/workflows/copier.yaml similarity index 100% rename from js/.github/workflows/copier.yml rename to js/.github/workflows/copier.yaml diff --git a/js/README.md.jinja b/js/README.md.jinja index bf755f0..ee722e1 100644 --- a/js/README.md.jinja +++ b/js/README.md.jinja @@ -2,7 +2,7 @@ {{project_description}} -[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml) +[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml) [![codecov](https://codecov.io/gh/{{github}}/{{project_name_formatted}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github}}/{{project_name_formatted}}) [![License](https://img.shields.io/github/license/{{github}}/{{project_name_formatted}})](https://github.com/{{github}}/{{project_name_formatted}}) [![PyPI](https://img.shields.io/pypi/v/{{project_name_formatted}}.svg)](https://pypi.python.org/pypi/{{project_name_formatted}}) diff --git a/js/pyproject.toml.jinja b/js/pyproject.toml.jinja index 09d029c..02dfae0 100644 --- a/js/pyproject.toml.jinja +++ b/js/pyproject.toml.jinja @@ -72,7 +72,7 @@ replace = '"version": "{new_version}"' [tool.check-manifest] ignore = [ - ".copier-answers.yml", + ".copier-answers.yaml", "js/pnpm-lock.yaml", "Makefile", "{{module}}/extension/**/*", diff --git a/jupyter/.gitattributes b/jupyter/.gitattributes index 31c8297..bb7085b 100644 --- a/jupyter/.gitattributes +++ b/jupyter/.gitattributes @@ -12,4 +12,4 @@ Makefile linguist-documentation *.py text=auto eol=lf *.toml text=auto eol=lf *.ts text=auto eol=lf -*.yml text=auto eol=lf +*.yaml text=auto eol=lf diff --git a/jupyter/.github/dependabot.yml b/jupyter/.github/dependabot.yaml similarity index 100% rename from jupyter/.github/dependabot.yml rename to jupyter/.github/dependabot.yaml diff --git a/jupyter/.github/workflows/build.yml.jinja b/jupyter/.github/workflows/build.yaml.jinja similarity index 100% rename from jupyter/.github/workflows/build.yml.jinja rename to jupyter/.github/workflows/build.yaml.jinja diff --git a/jupyter/.github/workflows/copier.yml b/jupyter/.github/workflows/copier.yaml similarity index 100% rename from jupyter/.github/workflows/copier.yml rename to jupyter/.github/workflows/copier.yaml diff --git a/jupyter/README.md.jinja b/jupyter/README.md.jinja index 755523a..f7ef0b6 100644 --- a/jupyter/README.md.jinja +++ b/jupyter/README.md.jinja @@ -2,7 +2,7 @@ {{project_description}} -[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml) +[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml) [![codecov](https://codecov.io/gh/{{github}}/{{project_name_formatted}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github}}/{{project_name_formatted}}) [![License](https://img.shields.io/github/license/{{github}}/{{project_name_formatted}})](https://github.com/{{github}}/{{project_name_formatted}}) [![PyPI](https://img.shields.io/pypi/v/{{project_name_formatted}}.svg)](https://pypi.python.org/pypi/{{project_name_formatted}}) diff --git a/jupyter/pyproject.toml.jinja b/jupyter/pyproject.toml.jinja index e17bad5..92215da 100644 --- a/jupyter/pyproject.toml.jinja +++ b/jupyter/pyproject.toml.jinja @@ -76,7 +76,7 @@ replace = '"version": "{new_version}"' [tool.check-manifest] ignore = [ - ".copier-answers.yml", + ".copier-answers.yaml", "js/pnpm-lock.yaml", "Makefile", "{{module}}/labextension/**", diff --git a/python/.gitattributes b/python/.gitattributes index 7c39058..b40d312 100644 --- a/python/.gitattributes +++ b/python/.gitattributes @@ -6,4 +6,4 @@ Makefile linguist-documentation *.md text=auto eol=lf *.py text=auto eol=lf *.toml text=auto eol=lf -*.yml text=auto eol=lf +*.yaml text=auto eol=lf diff --git a/python/.github/dependabot.yml b/python/.github/dependabot.yaml similarity index 100% rename from python/.github/dependabot.yml rename to python/.github/dependabot.yaml diff --git a/python/.github/workflows/build.yml.jinja b/python/.github/workflows/build.yaml.jinja similarity index 100% rename from python/.github/workflows/build.yml.jinja rename to python/.github/workflows/build.yaml.jinja diff --git a/python/.github/workflows/copier.yml b/python/.github/workflows/copier.yaml similarity index 100% rename from python/.github/workflows/copier.yml rename to python/.github/workflows/copier.yaml diff --git a/python/README.md.jinja b/python/README.md.jinja index bf755f0..ee722e1 100644 --- a/python/README.md.jinja +++ b/python/README.md.jinja @@ -2,7 +2,7 @@ {{project_description}} -[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml) +[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml) [![codecov](https://codecov.io/gh/{{github}}/{{project_name_formatted}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github}}/{{project_name_formatted}}) [![License](https://img.shields.io/github/license/{{github}}/{{project_name_formatted}})](https://github.com/{{github}}/{{project_name_formatted}}) [![PyPI](https://img.shields.io/pypi/v/{{project_name_formatted}}.svg)](https://pypi.python.org/pypi/{{project_name_formatted}}) diff --git a/python/pyproject.toml.jinja b/python/pyproject.toml.jinja index 978ed3a..2517fd4 100644 --- a/python/pyproject.toml.jinja +++ b/python/pyproject.toml.jinja @@ -64,7 +64,7 @@ replace = 'version = "{new_version}"' [tool.check-manifest] ignore = [ - ".copier-answers.yml", + ".copier-answers.yaml", "Makefile", "docs/**/*", ] diff --git a/rust/.gitattributes b/rust/.gitattributes index 82fc503..c06e44a 100644 --- a/rust/.gitattributes +++ b/rust/.gitattributes @@ -7,5 +7,5 @@ Makefile linguist-documentation *.py text=auto eol=lf *.rs text=auto eol=lf *.toml text=auto eol=lf -*.yml text=auto eol=lf +*.yaml text=auto eol=lf diff --git a/rust/.github/dependabot.yml b/rust/.github/dependabot.yaml similarity index 100% rename from rust/.github/dependabot.yml rename to rust/.github/dependabot.yaml diff --git a/rust/.github/workflows/build.yml.jinja b/rust/.github/workflows/build.yaml.jinja similarity index 100% rename from rust/.github/workflows/build.yml.jinja rename to rust/.github/workflows/build.yaml.jinja diff --git a/rust/.github/workflows/copier.yml b/rust/.github/workflows/copier.yaml similarity index 100% rename from rust/.github/workflows/copier.yml rename to rust/.github/workflows/copier.yaml diff --git a/rust/README.md.jinja b/rust/README.md.jinja index bf755f0..ee722e1 100644 --- a/rust/README.md.jinja +++ b/rust/README.md.jinja @@ -2,7 +2,7 @@ {{project_description}} -[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yml) +[![Build Status](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/{{github}}/{{project_name_formatted}}/actions/workflows/build.yaml) [![codecov](https://codecov.io/gh/{{github}}/{{project_name_formatted}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github}}/{{project_name_formatted}}) [![License](https://img.shields.io/github/license/{{github}}/{{project_name_formatted}})](https://github.com/{{github}}/{{project_name_formatted}}) [![PyPI](https://img.shields.io/pypi/v/{{project_name_formatted}}.svg)](https://pypi.python.org/pypi/{{project_name_formatted}}) diff --git a/rust/pyproject.toml.jinja b/rust/pyproject.toml.jinja index 5720647..cf0f52c 100644 --- a/rust/pyproject.toml.jinja +++ b/rust/pyproject.toml.jinja @@ -75,7 +75,7 @@ replace = 'version = "{new_version}"' [tool.check-manifest] ignore = [ - ".copier-answers.yml", + ".copier-answers.yaml", "Makefile", "docs/**/*", "rust/.config/*",