1797 Commits

Author SHA1 Message Date
dependabot[bot]
ee3218b56e build(deps-dev): bump poethepoet from 0.23.0 to 0.24.0
Bumps [poethepoet](https://github.com/nat-n/poethepoet) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/nat-n/poethepoet/releases)
- [Commits](https://github.com/nat-n/poethepoet/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: poethepoet
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 16:07:41 +02:00
dependabot[bot]
731d4e4fbb build(deps): bump packaging from 23.1 to 23.2
Bumps [packaging](https://github.com/pypa/packaging) from 23.1 to 23.2.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/23.1...23.2)

---
updated-dependencies:
- dependency-name: packaging
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 16:07:08 +02:00
Sigurd Spieckermann
092b30434b docs: fix generating --help-all output in CLI reference 2023-10-02 12:58:11 +02:00
Sigurd Spieckermann
e97d6732b8 fix: fix answer validation for type: str questions 2023-10-01 12:27:14 +01:00
ChaCha
e38caa20cc
fix: version guess from tags that don't start with v, but are still PEP440 compliant (#1048)
Without this change, Dunamai by default needs tags to be prefixed with a 'v'. ie: v0.1.2 v1.1.2 ...

Fixes https://github.com/copier-org/copier/issues/1042.

Co-authored-by: cclecle <clement.chastanier@gmail.com>
Co-authored-by: Jairo Llopis <yajo.sk8@gmail.com>
2023-10-01 07:32:31 +00:00
Zhiliang
f8614fc96f
docs: add uses cases for updating a project (#1336) 2023-10-01 08:18:38 +01:00
Sigurd Spieckermann
bc1dfc0419 build(typing): add missing type hints 2023-10-01 07:43:04 +01:00
Sigurd Spieckermann
59b8d6d8b0 docs: fix spelling/punctuation/terminology 2023-09-30 19:56:05 +02:00
mspiegel31
61cbe798a7
feat: allow overriding data file with CLI arguments (#1332)
Users should be able to pass CLI data arguments and use a `--data-file` at the same time.  Let's just take inspiration from the [helm values file](https://helm.sh/docs/chart_template_guide/values_files/) and give highest priority to data values passed at the command line.
2023-09-29 12:28:37 +01:00
Jannis Mainczyk
74769bc439
docs: improve link text formatting (#1344) 2023-09-26 16:58:20 +02:00
dependabot[bot]
fe3b1aeb96 build(deps): bump dunamai from 1.18.0 to 1.18.1
Bumps [dunamai](https://github.com/mtkennerly/dunamai) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/mtkennerly/dunamai/releases)
- [Changelog](https://github.com/mtkennerly/dunamai/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mtkennerly/dunamai/compare/v1.18.0...v1.18.1)

---
updated-dependencies:
- dependency-name: dunamai
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 15:32:24 +02:00
dependabot[bot]
fa47b7d98e build(deps-dev): bump types-pyyaml from 6.0.12.11 to 6.0.12.12
Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.12.11 to 6.0.12.12.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-pyyaml
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 15:24:58 +02:00
dependabot[bot]
0ea0511d7a build(deps-dev): bump mkdocs-material from 9.4.1 to 9.4.2
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.4.1 to 9.4.2.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.4.1...9.4.2)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 15:24:34 +02:00
dependabot[bot]
7619108e50 build(deps-dev): bump poethepoet from 0.22.1 to 0.23.0
Bumps [poethepoet](https://github.com/nat-n/poethepoet) from 0.22.1 to 0.23.0.
- [Release notes](https://github.com/nat-n/poethepoet/releases)
- [Commits](https://github.com/nat-n/poethepoet/compare/v0.22.1...v0.23.0)

---
updated-dependencies:
- dependency-name: poethepoet
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 15:24:03 +02:00
Sigurd Spieckermann
32746bd2a5 fix(cli): use return code 4 for unsafe template error
BREAKING CHANGE: Changes the return code for unsafe template error from
2 to 4 to avoid return code collision with Plumbum's `SwitchError` type
errors which use return code 2.
2023-09-25 10:26:55 +01:00
dependabot[bot]
03e55b6d08 build(deps-dev): bump mkdocs-material from 9.3.2 to 9.4.1
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.3.2 to 9.4.1.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.3.2...9.4.1)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 16:53:44 +02:00
mspiegel31
a674e64a42
feat(cli): read answers from yaml file (#1325)
Co-authored-by: Sigurd Spieckermann <2206639+sisp@users.noreply.github.com>
2023-09-20 07:12:04 +02:00
dependabot[bot]
e19c574d95 build(deps-dev): bump mkdocs-material from 9.3.1 to 9.3.2
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.3.1 to 9.3.2.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.3.1...9.3.2)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 17:48:44 +02:00
dependabot[bot]
2c8d3013e3 build(deps): bump typing-extensions from 4.7.1 to 4.8.0
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.7.1 to 4.8.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.7.1...4.8.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 15:26:30 +02:00
Jairo Llopis
ddafdee3ce
docs: placeholders are always strings
Fixes https://github.com/copier-org/copier/issues/1327
2023-09-13 07:42:14 +01:00
dependabot[bot]
a8d57ef4a6 build(deps-dev): bump mkdocs-material from 9.2.8 to 9.3.1
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.2.8 to 9.3.1.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.2.8...9.3.1)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:19:45 +02:00
dependabot[bot]
2d35e35cf2 build(deps-dev): bump pytest from 7.4.1 to 7.4.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.1 to 7.4.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.1...7.4.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 15:42:28 +02:00
dependabot[bot]
4d227a404f build(deps): bump questionary from 2.0.0 to 2.0.1
Bumps [questionary](https://github.com/tmbo/questionary) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/tmbo/questionary/compare/2.0.0...2.0.1)

---
updated-dependencies:
- dependency-name: questionary
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 15:22:48 +02:00
Jairo Llopis
c13bcd9310
fix(nix): detect build version appropriately
Before this patch, nix builds of Copier always returned version "0.0.0".
2023-09-08 11:51:17 +01:00
Sigurd Spieckermann
97371493e7 docs: unify terminology 2023-09-08 10:28:19 +02:00
Jairo Llopis
448455239f
docs: tell the world about the templated siblings feature
Closes https://github.com/copier-org/copier/issues/1238
2023-09-07 15:30:49 +01:00
dependabot[bot]
b881f5131d build(deps-dev): bump mkdocs-material from 9.2.7 to 9.2.8
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.2.7 to 9.2.8.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.2.7...9.2.8)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 16:36:19 +02:00
dependabot[bot]
add4c33762 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 15:34:47 +02:00
dependabot[bot]
179f7fed90 build(deps-dev): bump pytest from 7.4.0 to 7.4.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.0 to 7.4.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 15:34:18 +02:00
Jairo Llopis
d55ad3e9c0
bump: version 8.2.0 → 8.3.0 v8.3.0 2023-09-05 10:03:26 +01:00
Jairo Llopis
afedd572c4 fix(recopy): never clone old template (even less if it's just for cleanup)
Before this patch, when doing a recopy for a subproject previously placed on a git ref that was no longer reachable, the recopy process still tried to clone the old template.

The funniest part is that it was only trying to clone it while doing the process of cleanup. Thus, even if that clone worked, it was a waste.

This should make recopy more resilient and performant.
2023-09-05 10:00:30 +01:00
Jairo Llopis
ec5e86995e feat: add -A as an alias for --skip-answered, and support it in recopy too 2023-09-04 22:28:54 +01:00
dependabot[bot]
dbb5edfdc5 build(deps-dev): bump poethepoet from 0.22.0 to 0.22.1
Bumps [poethepoet](https://github.com/nat-n/poethepoet) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/nat-n/poethepoet/releases)
- [Commits](https://github.com/nat-n/poethepoet/compare/v.0.22.0...v0.22.1)

---
updated-dependencies:
- dependency-name: poethepoet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 17:53:31 +02:00
dependabot[bot]
d669f97a8d build(deps-dev): bump mkdocstrings from 0.22.0 to 0.23.0
Bumps [mkdocstrings](https://github.com/mkdocstrings/mkdocstrings) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases)
- [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mkdocstrings/mkdocstrings/compare/0.22.0...0.23.0)

---
updated-dependencies:
- dependency-name: mkdocstrings
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:29:57 +02:00
dependabot[bot]
30a3c899ed build(deps-dev): bump mkdocs-material from 9.1.21 to 9.2.7
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.21 to 9.2.7.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.21...9.2.7)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:06:57 +02:00
dependabot[bot]
21619dd899 build(deps-dev): bump pre-commit from 3.3.3 to 3.4.0
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.3.3...v3.4.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:05:26 +02:00
dependabot[bot]
c6e810fb8d build(deps): bump cachix/install-nix-action from 22 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 14:54:53 +02:00
Oleksii Siechko
8619fc8a68
feat: add --skip-answered flag to avoid repeating recorded answers
This change addresses a usability issue troubling users when they run 'copier update'. Previously, each time 'copier update' was run, the user had to review all responses given in the answers file. This was a repetitive and laborious process, particularly for users dealing with extensive templates.

This PR introduces a new flag --skip-answered to improve the user experience and reduce friction during updates. The new flag allows users to bypass the review of questions already answered in the past. It automatically pulls responses from the answers file and presents only the newly added template questions to the user for their review.

`skip-answered` will skip all answered questions and ask user input only for new inputs if they are present.

Fixes #1178

Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
2023-09-03 21:15:49 +00:00
Jairo Llopis
1936824ac5
bump: version 8.1.0 → 8.2.0 v8.2.0 2023-08-28 18:28:53 +01:00
Juan Luis Cano Rodríguez
94067161e8
fix: do not immediately fail if git is not available
Copier has lots of git-related stuff, but it also has features that work without it. It is now a lazy requirement.

Fixes https://github.com/copier-org/copier/issues/312
2023-08-28 17:27:30 +00:00
Jairo Llopis
5b33f0ba60 build: fix linting issue
Make a bit beautier the devtasks code and fix https://github.com/copier-org/copier/issues/1241.
2023-08-28 17:41:32 +01:00
Jairo Llopis
d6c04b478d
feat: release on FlakeHub.com too
This allows flake installers to get SemVer-compatible upgrades with no effort. Cool!
2023-08-28 17:22:16 +01:00
Jairo Llopis
bc3609699e
build(direnv): enable flakes
I use nix-direnv, which enables them automatically. But other direnv implementations don't. By being explicit, I can smooth other devs' lifes.

See https://github.com/copier-org/copier/pull/1292#discussion_r1306757036

Closes https://github.com/copier-org/copier/pull/1292
2023-08-28 17:20:57 +01:00
Sigurd Spieckermann
d8a667a462 docs: update outdated copier update --force examples 2023-08-28 13:57:16 +02:00
Sigurd Spieckermann
00e51bd94c
feat: add support for pre-update and post-update messages (#1288)
* feat: add support for pre-update and post-update messages

* test: use verbose regex syntax
2023-08-25 10:25:08 +01:00
dependabot[bot]
c5cfd57ed2 build(deps): bump pydantic from 2.2.1 to 2.3.0
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-24 15:51:43 +02:00
Sigurd Spieckermann
2d8f502889 build(deps-dev): bump setuptools from 66.0.0 to 68.1.2 2023-08-23 08:59:39 +01:00
dependabot[bot]
ce71a6d0ca build(deps-dev): bump certifi from 2022.12.7 to 2023.7.22
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2022.12.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 09:40:35 +01:00
dependabot[bot]
2026d0ae2b build(deps): bump pydantic from 2.2.0 to 2.2.1
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.2.0...v2.2.1)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 15:58:44 +02:00
dependabot[bot]
71c66234d4 build(deps): bump pydantic from 2.1.1 to 2.2.0
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.1.1...v2.2.0)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 15:16:06 +02:00