85 Commits

Author SHA1 Message Date
Sigurd Spieckermann
dce3efd435 bump: version 9.7.0 → 9.7.1 2025-04-23 15:29:02 +00:00
Sigurd Spieckermann
f215a23744 bump: version 9.6.0 → 9.7.0 2025-04-22 12:15:46 +00:00
Jairo Llopis
227379e795
bump: version 9.5.0 → 9.6.0 2025-03-09 22:00:08 +00:00
Jairo Llopis
d735c8beac
bump: version 9.4.1 → 9.5.0 2025-02-17 13:47:02 +00:00
Jairo Llopis
e824d4f099
bump: version 9.4.0 → 9.4.1 2024-10-18 19:18:47 +01:00
Jairo Llopis
59f13c0798
bump: version 9.3.1 → 9.4.0 2024-10-15 15:20:41 +01:00
Jairo Llopis
53f1901822
bump: version 9.3.0 → 9.3.1 2024-07-03 17:07:10 +01:00
Jairo Llopis
448dd4ff70
bump: version 9.2.0 → 9.3.0 2024-07-01 08:49:45 +01:00
Jairo Llopis
70aa69f7df
bump: version 9.1.1 → 9.2.0 2024-04-04 16:50:48 +01:00
Jairo Llopis
1bef95e940
bump: version 9.1.0 → 9.1.1 2024-01-16 15:04:01 +00:00
Jairo Llopis
3d6be0aaf9
bump: version 9.0.1 → 9.1.0 2023-11-27 10:24:19 +00:00
Jairo Llopis
d8a0707939
bump: version 9.0.0 → 9.0.1 2023-10-30 09:33:51 +00:00
Jairo Llopis
06d4397e06
style: pre-commit fixes 2023-10-26 15:09:03 +01:00
Jairo Llopis
908c090846
bump: version 8.3.0 → 9.0.0 2023-10-22 14:24:05 +01:00
Jairo Llopis
d55ad3e9c0
bump: version 8.2.0 → 8.3.0 2023-09-05 10:03:26 +01:00
Jairo Llopis
1936824ac5
bump: version 8.1.0 → 8.2.0 2023-08-28 18:28:53 +01:00
Jairo Llopis
67f2664b6a
bump: version 8.0.0 → 8.1.0 2023-07-10 19:23:04 +01:00
Jairo Llopis
3fd3d5a5d2
bump: version 7.2.0 → 8.0.0 2023-06-04 16:38:00 +01:00
Jairo Llopis
eee609dddf
bump: version 7.1.0 → 7.2.0 2023-04-19 17:45:50 +01:00
Jairo Llopis
91f21c738c bump: version 7.1.0a0 → 7.1.0 2023-04-07 16:16:14 +00:00
Jairo Llopis
fdec1e7726
bump: version 7.0.1 → 7.1.0a0 2022-12-29 12:04:13 +01:00
Jairo Llopis
ecc0b80089
bump: version 7.0.0 → 7.0.1 2022-10-14 13:41:10 +02:00
Jairo Llopis
3b2bb0e248
bump: version 6.2.0 → 7.0.0 2022-10-12 14:45:19 +02:00
Jairo Llopis
608654a03e
bump: version 6.1.0 → 6.2.0 2022-09-18 09:04:21 +01:00
Sigurd Spieckermann
fc6bb03a6d docs: fix spelling 2022-08-26 09:47:49 +01:00
Jairo Llopis
9ee4fe1ba8
bump: version 6.0.0 → 6.1.0 2022-06-13 10:47:15 +01:00
Sebastian Tramp
cc0ff5292b fix release data 2022-05-16 19:35:39 +01:00
Jairo Llopis
2a729ca2b5 bump: new release 2022-05-15 09:55:55 +01:00
Kian-Meng Ang
4684c78b5b Fix typos 2022-05-03 11:54:59 +08:00
Jairo Llopis
eb3bb5e67a fix: stop remembering answers nobody asked
Before this patch, an answers file could remember answers to questions that were not present in the questionary.

STR:

1. In one project, apply one template that has a `.copier-answers.yml` file.
2. Now apply another template that has a different default value in `_answers_file`.
3. The second answers file would contain answers to the 1st template too.

@moduon MT-616
2022-04-20 09:07:29 +01:00
Jairo Llopis
23dd5dbf8f fix: remove files on update
When a template gets updated and a file gets deleted within, subproject updates should delete that file automatically too.

Fix https://github.com/copier-org/copier/issues/461
2022-04-13 19:53:53 +01:00
Andrew Leech
e5dfa08c16 feat: Add jinja variable "_copier_python" to get sys.executable. 2022-03-22 17:25:44 +00:00
Jairo Llopis
0b16548915 docs(changelog): inform that we now tell copied version
Changelog entry for https://github.com/copier-org/copier/pull/557.
2022-02-26 08:44:36 +00:00
Sabar Dasgupta
6cc94c6ad1
feat: include local dirty changes by default (#520)
- if a template is vcs-tracked and dirty, the changes are committed automatically with a "wip" commit and propagated to the subproject
- user is warned in this scenario
- tests for copy and update on dirty templates

fixes #184
2022-01-11 20:07:14 +01:00
Timothée Mazzucotelli
9003ceb4b0
Merge branch 'master' into python-311 2021-12-21 09:17:53 +01:00
Timothée Mazzucotelli
407471a2c2 docs: Document _copier_conf.json() removal in changelog 2021-12-20 14:50:20 +00:00
Timothée Mazzucotelli
fc36f5af41 style: Lint 2021-12-20 14:50:20 +00:00
Timothée Mazzucotelli
a169e5f50b docs: Update changelog (dropped Python 3.6 support) 2021-12-17 22:23:12 +01:00
Jacob Straszynski
126a7460b5
feat: allow overriden defaults in questionnaire (#477)
* allow overriden defaults in questionnaire

This works in conjunction with https://github.com/copier-org/copier/pull/476.
If partial answers are written out to a file, they can be re-loaded as
default overrides to whatever is specified in the template allowing one
to resume progress.

* fix failing test
2021-11-20 17:36:16 +00:00
Jacob Straszynski
600ebdb492
feat: raise CopierAnswersInterrupt on partial answers (#476)
* includes a unit-y test in it's own file, tests/test_interrupts.
* includes an integration test that verifies that we don't dump
  a stacktrace. E.g. this test will fail if CopierAnswersInterrupt no
  longer subclasses KeyboardInterrupt.
* update changelog with CopierAnswersInterrupt
2021-11-15 13:29:57 +00:00
Jairo Llopis
3fd8226649 perf(clone): clone faster without blobs
When git 2.27 or newer is installed, we can add `--filter=blob:none` to avoid getting useless information from the git server. This makes clone much faster if your template has a big history.

Close https://github.com/copier-org/copier/issues/450 (it does not exactly fix it, but maybe makes it irrelevant).
2021-11-02 19:17:56 +00:00
Jairo Llopis
745a490415
fix: always compare versions as PEP440 strings (#434)
In migration scripts, environment variables `$VERSION_FROM`, `$VERSION_CURRENT` and `$VERSION_TO` didn't always get a valid PEP440 version identifier, but the tag. Now we add the PEP440 variants of those variables, autogenerated with dunamai, and these are used instead to sort the versions. This will help comparing template evolution when doing a checkout to an untagged version, or when you happen to add a tag without `v` when the previous one had it. If you want to get the exact commit or version, you can still use the old variables in your scripts, so no backwards incompatibility is introduced. It should remove some false negatives when comparing those version strings.

Fixes https://github.com/copier-org/copier/issues/269.
2021-11-01 08:28:58 +00:00
Timo Furrer
5ab752c11f
feat: keep trailing newlines for Jinja templates by default (#465)
Closes #464
2021-10-31 07:28:43 +00:00
Timo Furrer
edc60fee9f
feat: support Python 3.10 (#462) 2021-10-27 10:31:48 +00:00
Jairo Llopis
7bbd0406b8 feat: do not ask for overwriting copier answers file
The copier answers file (`.copier-answers.yml` by default) should be updated always, and everybody is almost excessively warned to NOT touch that file by hand and let Copier handle it. Thus, it makes no sense to ask users whether it should be updated on conflict.

Fixes https://github.com/copier-org/copier/issues/325.
2021-07-02 16:28:57 +01:00
Jairo Llopis
e3d8e2e170 fix: inherit permissions
When copying a file, make sure its permissions are the same as those of the file in the template.

Fixes https://github.com/copier-org/copier/issues/361.
2021-07-02 16:24:41 +01:00
Dennis Roche
2241c7d74c docs: Updated changelog 2021-07-02 15:34:51 +01:00
Jairo Llopis
20c151e9f4 fix!: only support explicit types for multi-type choice questions
- Inform about `null` value being converted to choice key.
- Warn about problems when using multiple types in choices.

Fixes https://github.com/copier-org/copier/issues/405.
2021-05-21 16:54:30 +01:00
Timothée Mazzucotelli
23f5695a96 feat: Handle empty templates suffix 2021-05-17 13:29:13 +01:00
Jairo Llopis
9209af58b7
docs: update changelog
Fix #374.
2021-03-28 12:52:58 +01:00