Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
_answers_file: .copier-answers.yaml

_exclude:
- name-slug.jinja
- module-slug.jinja
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cpp/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
2 changes: 1 addition & 1 deletion cpp/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ replace = 'version = "{new_version}"'

[tool.check-manifest]
ignore = [
".copier-answers.yml",
".copier-answers.yaml",
".clang-format",
"Makefile",
"docs/**/*",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion js/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion js/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
2 changes: 1 addition & 1 deletion js/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*",
Expand Down
2 changes: 1 addition & 1 deletion jupyter/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
2 changes: 1 addition & 1 deletion jupyter/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
2 changes: 1 addition & 1 deletion jupyter/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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/**",
Expand Down
2 changes: 1 addition & 1 deletion python/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
2 changes: 1 addition & 1 deletion python/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ replace = 'version = "{new_version}"'

[tool.check-manifest]
ignore = [
".copier-answers.yml",
".copier-answers.yaml",
"Makefile",
"docs/**/*",
]
Expand Down
2 changes: 1 addition & 1 deletion rust/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rust/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
2 changes: 1 addition & 1 deletion rust/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ replace = 'version = "{new_version}"'

[tool.check-manifest]
ignore = [
".copier-answers.yml",
".copier-answers.yaml",
"Makefile",
"docs/**/*",
"rust/.config/*",
Expand Down
Loading