Skip to content

Commit c568336

Browse files
authored
Merge branch 'main' into build/add-testing-of-recopy-and-existing-project
2 parents e238225 + d8fef45 commit c568336

File tree

7 files changed

+55
-14
lines changed

7 files changed

+55
-14
lines changed

.cz.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.commitizen]
2-
version = "0.10.2"
2+
version = "0.10.4"
33
bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]"
44
version_schema = "semver"
55
version_provider = "commitizen"

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 0.10.4 (2025-07-25)
2+
3+
### Fix
4+
5+
- :bug: don't commit and add, leave that to the user (#124)
6+
7+
## 0.10.3 (2025-07-25)
8+
9+
### Refactor
10+
11+
- :recycle: ignore generated `*_files/` from Quarto (#120)
12+
113
## 0.10.2 (2025-07-25)
214

315
### Refactor

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ a terminal so that the working directory is the root of this project
4242
``` bash
4343
just run-all
4444
```
45+
46+
When testing the template, copier can only use content kept in the Git
47+
history. Meaning that if you make changes to the template and try to
48+
test it, it won't be able to test those changes. You have to commit the
49+
changes first in order for copier to use them.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ on what is included in this template.
2929

3030
Check out our
3131
[website](https://template-data-package.seedcase-project.org/) for more
32-
information, such as an how to use it
33-
[guide](https://template-data-package.seedcase-project.org/docs/guide/).
34-
For a list of changes, see our
32+
information, such as a
33+
[guide](https://template-data-package.seedcase-project.org/docs/guide/)
34+
for using the template. For a list of changes, see our
3535
[changelog](https://template-data-package.seedcase-project.org/docs/releases/)
3636
page.
3737

copier.yaml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,41 @@ _subdirectory: template
33
# Post-copy commands:
44
_tasks:
55
# Only run these commands when copying the template
6-
- command: "git init -b main"
7-
when: "{{ _copier_operation == 'copy' }}"
8-
- command: "uv add --dev pre-commit commitizen ruff typos"
9-
when: "{{ _copier_operation == 'copy' }}"
10-
- command: "uv add polars seedcase-sprout"
11-
when: "{{ _copier_operation == 'copy' }}"
12-
- command: "git add ."
13-
when: "{{ _copier_operation == 'copy' }}"
14-
- command: "git commit -m 'chore: :tada: setup a new data package from the template'"
6+
- command: "git init -b main && uv add --dev pre-commit commitizen ruff typos && uv add polars seedcase-sprout"
157
when: "{{ _copier_operation == 'copy' }}"
168

9+
# Message to show after generating or regenerating the project successfully
10+
_message_after_copy: |
11+
12+
Your project "{{ package_abbrev }}" has been created successfully!
13+
14+
Next steps:
15+
16+
1. Change directory to the project root:
17+
18+
$ cd {{ _copier_conf.dst_path }}
19+
20+
2. Install the pre-commit hooks:
21+
22+
$ just install-precommit
23+
24+
3. Install [`spaid`](https://github.com/seedcase-project/spaid) and run these setup steps:
25+
26+
$ spaid_gh_create_repo_from_local -h
27+
$ spaid_gh_set_repo_settings -h
28+
$ spaid_gh_ruleset_basic_protect_main -h
29+
30+
4. Configure GitHub following this
31+
[guide](https://guidebook.seedcase-project.org/operations/security#using-github-apps-to-generate-tokens):
32+
33+
- Install the [auto-release-token](https://github.com/apps/auto-release-token) GitHub App
34+
- Create an `UPDATE_VERSION_TOKEN` secret
35+
- Create an `UPDATE_VERSION_APP_ID` variable
36+
37+
5. List and complete all TODO items in the repository:
38+
39+
$ just list-todos
40+
1741
# Questions:
1842
package_github_repo:
1943
type: str

template/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ __pycache__/
4141
docs/.quarto/
4242
*.ipynb
4343
*.quarto_ipynb
44-
*.storage
44+
*_files/
4545

4646
# Website generation
4747
_site

0 commit comments

Comments
 (0)