Sigurd Spieckermann
a1539c9592
fix: delete conditionally created file when answer changes ( #982 )
...
In reality, this is just a test to make sure the feature isn't lost. However, the issue got fixed in some recent refactoring.
Fixes https://github.com/copier-org/copier/issues/686
2023-04-01 14:17:04 +01:00
Jairo Llopis
8987339e34
fix: properly support diffs over updates with new interactive answers
...
Just like 802d0f96548c3c8a0bf1128f8f18da4cf5ca05ad, but this time we make sure that interactive answers also work as expected.
Basically, I moved the creation of the updated and clean worker after the copying of the real destination worker. With this change, we can ask the user for answers and make sure we use them when producing the clean and updated copy.
@moduon MT-1075
2023-03-31 14:30:21 +01:00
Sigurd Spieckermann
b352841046
test: add return type hints
2023-03-31 06:27:36 +01:00
Sigurd Spieckermann
44bfafbbc3
feat: properly support update in repo subdirectory ( #1069 )
2023-03-31 06:15:41 +01:00
Sigurd Spieckermann
5295b9ef63
fix: ignore Git hooks during project update ( #1066 )
...
* add --no-verify to 2nd "dumb commit"
-> disable pre-commit-like checks to ensure that there won't be any more conflicts concerning this commit.
* test: extend test case
* style: reorder git commit flags
Fix https://github.com/copier-org/copier/issues/871
Co-authored-by: Nicolas <118367154+NicMar01@users.noreply.github.com>
2023-03-31 05:14:34 +00:00
Sigurd Spieckermann
9346b41177
test: select latest version tag ( #1067 )
2023-03-30 23:40:06 +01:00
Jairo Llopis
802d0f9654
fix: properly support diffs over updates with new answers
...
These answers could come from new user decisions or new template questions.
Before this patch, these answers were not being respected. The problem was even more evident with iline conflicts.
Possibly a regression produced in 504301c28eb4294fbb18473d759047c2db63b425. Or maybe it was there before and I didn't notice because `--conflict=inline` makes it more obvious.
@moduon MT-2675
2023-03-30 13:49:35 +01:00
Sigurd Spieckermann
453cbf9fe2
fix: skip tasks in pretend mode ( #970 )
2023-03-29 15:19:29 +01:00
Sigurd Spieckermann
0288509a6d
test: add type hints
2023-03-29 15:18:03 +01:00
Sigurd Spieckermann
0c7ac368b0
style: use relative imports consistently
2023-03-29 15:17:24 +01:00
dependabot[bot]
1663358ea3
build(deps-dev): bump types-psutil from 5.9.5.10 to 5.9.5.11
...
Bumps [types-psutil](https://github.com/python/typeshed ) from 5.9.5.10 to 5.9.5.11.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-psutil
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 15:16:54 +01:00
dependabot[bot]
6ae9c92701
build(deps-dev): bump types-pyyaml from 6.0.12.8 to 6.0.12.9
...
Bumps [types-pyyaml](https://github.com/python/typeshed ) from 6.0.12.8 to 6.0.12.9.
- [Release notes](https://github.com/python/typeshed/releases )
- [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-03-29 15:15:34 +01:00
Craig Burdulis
d2de535267
feat: allow templating _answers_file
setting ( #1027 )
...
Co-authored-by: Ethan Barker <ethanbarker0@gmail.com>
2023-03-25 06:59:55 +00:00
dependabot[bot]
2e21b3f06e
build(deps-dev): bump poethepoet from 0.18.1 to 0.19.0
...
Bumps [poethepoet](https://github.com/nat-n/poethepoet ) from 0.18.1 to 0.19.0.
- [Release notes](https://github.com/nat-n/poethepoet/releases )
- [Commits](https://github.com/nat-n/poethepoet/compare/v0.18.1...v0.19.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-03-24 15:13:58 +00:00
dependabot[bot]
4f42d7a71e
build(deps): bump pydantic from 1.10.6 to 1.10.7
...
Bumps [pydantic](https://github.com/pydantic/pydantic ) from 1.10.6 to 1.10.7.
- [Release notes](https://github.com/pydantic/pydantic/releases )
- [Changelog](https://github.com/pydantic/pydantic/blob/v1.10.7/HISTORY.md )
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.6...v1.10.7 )
---
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 15:13:25 +00:00
dependabot[bot]
c86f77591d
build(deps-dev): bump mkdocs-material from 9.1.3 to 9.1.4
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 9.1.3 to 9.1.4.
- [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.3...9.1.4 )
---
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-03-24 15:08:57 +00:00
Sigurd Spieckermann
42a34bf568
style: simplify question answering ( #984 )
...
Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
2023-03-21 16:39:13 +00:00
Sigurd Spieckermann
5029b6e7a9
test: add type hints and clean up ( #985 )
...
* refactor(tests): add type hints and clean up
* fix: import `Protocol` from `typing-extensions` when using Python 3.7
* fix: import `Literal` from `typing-extensions` when using Python 3.7
* refactor(tests): create template and subproject directory using `tmp_path_factory` fixture
* refactor(tests): use OS-agnostic file path separator
* refactor(tests): use `/` separator for `skip_if_exists` paths
* style: fix formatting error
* refactor(tests): expect POSIX path for local repo URL
2023-03-21 16:31:11 +00:00
dependabot[bot]
cc697590d5
build(deps): bump importlib-metadata from 6.0.0 to 6.1.0
...
Bumps [importlib-metadata](https://github.com/python/importlib_metadata ) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/python/importlib_metadata/releases )
- [Changelog](https://github.com/python/importlib_metadata/blob/main/CHANGES.rst )
- [Commits](https://github.com/python/importlib_metadata/compare/v6.0.0...v6.1.0 )
---
updated-dependencies:
- dependency-name: importlib-metadata
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 15:50:59 +00:00
dependabot[bot]
83a7921f4e
build(deps-dev): bump markdown-exec from 1.3.0 to 1.4.0
...
Bumps [markdown-exec](https://github.com/pawamoy/markdown-exec ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/pawamoy/markdown-exec/releases )
- [Changelog](https://github.com/pawamoy/markdown-exec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pawamoy/markdown-exec/compare/1.3.0...1.4.0 )
---
updated-dependencies:
- dependency-name: markdown-exec
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 15:50:45 +00:00
dependabot[bot]
47f3d59c27
build(deps): bump pathspec from 0.11.0 to 0.11.1
...
Bumps [pathspec](https://github.com/cpburnz/python-pathspec ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/cpburnz/python-pathspec/releases )
- [Changelog](https://github.com/cpburnz/python-pathspec/blob/master/CHANGES.rst )
- [Commits](https://github.com/cpburnz/python-pathspec/compare/v0.11.0...v0.11.1 )
---
updated-dependencies:
- dependency-name: pathspec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 23:22:40 +00:00
dependabot[bot]
a95b512064
build(deps-dev): bump mkdocs-material from 9.1.2 to 9.1.3
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 9.1.2 to 9.1.3.
- [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.2...9.1.3 )
---
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-03-15 23:22:13 +00:00
dependabot[bot]
4dbc80393a
build(deps-dev): bump pytest-xdist from 3.2.0 to 3.2.1
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.2.0...v3.2.1 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 17:13:40 +00:00
dependabot[bot]
91966047d9
build(deps-dev): bump mkdocs-material from 9.1.1 to 9.1.2
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 9.1.1 to 9.1.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.1.1...9.1.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-03-10 16:57:45 +00:00
dependabot[bot]
6a86b29342
build(deps-dev): bump types-psutil from 5.9.5.9 to 5.9.5.10
...
Bumps [types-psutil](https://github.com/python/typeshed ) from 5.9.5.9 to 5.9.5.10.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-psutil
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 16:59:11 +00:00
dependabot[bot]
c63b8cbc77
build(deps): bump pydantic from 1.10.5 to 1.10.6
...
Bumps [pydantic](https://github.com/pydantic/pydantic ) from 1.10.5 to 1.10.6.
- [Release notes](https://github.com/pydantic/pydantic/releases )
- [Changelog](https://github.com/pydantic/pydantic/blob/v1.10.6/HISTORY.md )
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.5...v1.10.6 )
---
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 16:19:09 +00:00
Jairo Llopis
dfa583e480
build(direnv): simpler config by inheriting flake configs
...
Before this patch, opening Copier on Gitpod made direnv freeze.
2023-03-08 07:58:38 +00:00
dependabot[bot]
a0efebfd4d
build(deps-dev): bump mkdocs-material from 8.5.11 to 9.1.1
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 8.5.11 to 9.1.1.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Upgrade guide](https://github.com/squidfunk/mkdocs-material/blob/master/docs/upgrade.md )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/8.5.11...9.1.1 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 16:22:42 +00:00
dependabot[bot]
8ecbeadc0e
build(deps-dev): bump pytest from 7.2.1 to 7.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.1 to 7.2.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.2.1...7.2.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-03-07 16:22:22 +00:00
dependabot[bot]
4bdf184d63
build(deps-dev): bump mypy from 1.0.1 to 1.1.1
...
Bumps [mypy](https://github.com/python/mypy ) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.1.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 16:13:17 +00:00
Jairo Llopis
beb174f646
build(flake): fix wrong spelling of substituters, and use nicer list syntax
...
Oops, I did it wrong in 62b5dc36b3818ef550d21932ee49dccae5f3f494. Fixing.
2023-03-02 17:17:37 +00:00
Jairo Llopis
62b5dc36b3
build(flake): more default cache sources
...
Until https://github.com/NixOS/nix/issues/6771 is fixed, it's better to declare devenv's cache, so we have to host less binaries ourselves.
2023-03-02 16:14:08 +00:00
dependabot[bot]
c5667d7fe5
build(deps): bump pydantic from 1.10.4 to 1.10.5
...
Bumps [pydantic](https://github.com/pydantic/pydantic ) from 1.10.4 to 1.10.5.
- [Release notes](https://github.com/pydantic/pydantic/releases )
- [Changelog](https://github.com/pydantic/pydantic/blob/v1.10.5/HISTORY.md )
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.4...v1.10.5 )
---
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 08:13:24 +00:00
dependabot[bot]
ded172ffa7
build(deps-dev): bump mypy from 1.0.0 to 1.0.1
...
Bumps [mypy](https://github.com/python/mypy ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 08:13:13 +00:00
dependabot[bot]
2796cf3bf2
build(deps-dev): bump types-pyyaml from 6.0.12.6 to 6.0.12.8
...
Bumps [types-pyyaml](https://github.com/python/typeshed ) from 6.0.12.6 to 6.0.12.8.
- [Release notes](https://github.com/python/typeshed/releases )
- [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-03-02 08:12:59 +00:00
dependabot[bot]
2e57b6b4dd
build(deps): bump cachix/install-nix-action from 19 to 20
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20 )
---
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-03-02 08:12:43 +00:00
Jairo Llopis
8e0ea4ea60
build(flake): remove obsolete override
2023-02-28 15:54:55 +00:00
Sigurd Spieckermann
77358429da
docs: use MkDocs' builtin watch feature ( #999 )
2023-02-27 18:17:47 +00:00
Sigurd Spieckermann
ba514b424f
fix: parse CLI data using question's answer parser
2023-02-27 18:48:58 +01:00
Sigurd Spieckermann
85fc136ce3
refactor(tests): remove unknown timeout marker
2023-02-27 18:41:57 +01:00
dependabot[bot]
65228b6fbd
build(deps-dev): bump types-psutil from 5.9.5.8 to 5.9.5.9
...
Bumps [types-psutil](https://github.com/python/typeshed ) from 5.9.5.8 to 5.9.5.9.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-psutil
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 15:37:46 +01:00
Sigurd Spieckermann
ab31906aba
fix: don't set YAML !include
constructor globally ( #947 )
...
Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
2023-02-26 08:22:15 +00:00
Sigurd Spieckermann
474be856c1
docs: use tree fence for filesystem trees ( #998 )
...
* docs: use tree fence for filesystem trees
* docs: remove dashed lines in filesystem tree
2023-02-25 07:23:14 +00:00
Jairo Llopis
36cf82ffb4
docs: time to update thankyouss!
...
Copier has grown up. Let's say thanks. 😊
2023-02-24 17:33:18 +00:00
Sigurd Spieckermann
8ca78fa769
refactor: deduplicate code
2023-02-22 15:28:40 +00:00
Sigurd Spieckermann
c9e9c100ec
fix(cli): use --conflict
flag only in copier update
subcommand
2023-02-21 21:21:01 +00:00
Jairo Llopis
b7501dda28
build(flake): use python 3.11
2023-02-21 19:32:55 +00:00
Sigurd Spieckermann
4488146f7e
refactor: remove unused method argument
2023-02-21 17:20:59 +00:00
Damian Kula
e2713fe07e
build: add 3.11 to classifiers in pyproject.toml, switch to stable 3.11 in CI
...
* Add 3.11 to classifiers in pyproject.toml
* Switches to stable 3.11, removes continue-on-error for 3.11
Signed-off-by: Damian Kula <damian.kula@deepl.com>
Co-authored-by: Damian Kula <damian.kula@deepl.com>
2023-02-21 16:32:47 +00:00
dependabot[bot]
ca656ca88b
build(deps): bump JRMurr/direnv-nix-action from 2 to 3
...
Bumps [JRMurr/direnv-nix-action](https://github.com/JRMurr/direnv-nix-action ) from 2 to 3.
- [Release notes](https://github.com/JRMurr/direnv-nix-action/releases )
- [Commits](https://github.com/JRMurr/direnv-nix-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: JRMurr/direnv-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 16:18:26 +00:00