122 Commits

Author SHA1 Message Date
Francesco Calcavecchia
ec11ae28f0
docs: Mention uv tool as an alterative to pipx (#1924)
Co-authored-by: Francesco Calcavecchia <f18771@eon.com>
2025-01-14 14:07:04 +00:00
Kürşat Aktaş
4a3c76579a Introducing Copier Guru on Gurubase.io 2024-10-18 19:42:32 +01:00
Sigurd Spieckermann
3c39738325 refactor: drop support for Python 3.8 2024-10-13 13:24:11 +01:00
autofix-ci[bot]
98e58d7ebd style: autoformat with pre-commit 2024-07-01 08:48:34 +01:00
Ofek Lev
798d7aa820
docs: Fix README callout (#1651)
Co-authored-by: Sigurd Spieckermann <2206639+sisp@users.noreply.github.com>
2024-06-29 09:32:32 +01:00
Salem Olorundare
ef3e31d1f9
docs: Supply official shields.io badges (#1615)
Co-authored-by: Sigurd Spieckermann <2206639+sisp@users.noreply.github.com>
2024-05-07 22:43:39 +01:00
Dafydd Jones
c857ec3b49 docs(readme): spelling 2023-11-29 15:25:50 +00: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
Sigurd Spieckermann
0bdd42aef2 docs: add light/dark scheme support for star history chart 2023-08-04 15:36:21 +02:00
Sigurd Spieckermann
a82c0ad6bf
refactor: drop support for Python 3.7 (#1252) 2023-07-18 19:59:05 +01:00
Sigurd Spieckermann
1b351bc856 docs: update CLI usage examples to conform with v8
All CLI calls must use a subcommand as the first argument and all flags
must come after the subcommand. See #1143.
2023-06-15 17:17:05 +01:00
Sigurd Spieckermann
e829bb5d2d docs: replace run_auto() by run_copy() 2023-05-18 11:30:12 +01: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
Jairo Llopis
67cc4ffde3
feat: nix support
- Provide a dev shell.
- Provide a nix package.
- Provide a nix flake.
- Development environment based on direnv.
- Docs.
- Configure Gitpod to use direnv and nix.
- Configure Cachix out of the box, and document how to use it.
- Add direnv and nix to CI.
- Satisfy some linters that came from Precommix, even when Precommix was later discarded.
- Mark some tests as impure.
- Run only pure tests when building Copier with Nix.
- Add poetry loader to direnv.
- Update contribution guide.
2023-01-18 09:40:08 +00:00
Xuan Hu
a1c882e0ba docs: No redundant empty lines for _copier_answers.
Signed-off-by: Xuan Hu <i@huxuan.org>
2022-12-20 11:28:10 +00:00
Sigurd Spieckermann
93acbd9675 docs: beautify badges 2022-09-30 05:04:59 +01:00
Sigurd Spieckermann
0876a1975d docs(readme): fix grammar 2022-09-17 07:14:35 +01:00
Sigurd Spieckermann
e682269cd5 docs: unify shell code blocks 2022-09-09 16:05:20 +01:00
Sigurd Spieckermann
fc6bb03a6d docs: fix spelling 2022-08-26 09:47:49 +01:00
Andrea PIERRÉ
ce52dc1331 docs: add conda install to the README 2022-08-12 08:12:02 +02:00
Juan-Pablo Scaletti
fa3515eff2
docs: update URL in README (#729) 2022-08-09 12:30:27 +00:00
Jairo Llopis
7435792276
docs: link badge to copier pypi page 2022-06-13 11:05:40 +01:00
Jairo Llopis
8ab7bd0845 style: apply pre-commit 2022-01-11 19:56:12 +01:00
Timothée Mazzucotelli
7779803b33
docs: Add a quick start example on how to create a template (#510)
Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>
2021-12-28 07:58:57 +00:00
Timothée Mazzucotelli
0773fcef5c build: Drop support for Python 3.6 2021-12-17 21:59:19 +01: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
2a944bf736 docs: update with latest changes
🤦‍♂️ it seems I forgot to document a lot of changes.
2021-04-20 07:21:36 +01:00
Yajo
8fee9dfe07 Configure gitpod
Allow contributors to start hacking right away with a single click.
2020-09-29 16:37:14 +00:00
Jairo Llopis
5456e33e99 Allow to trigger CI manually
This is needed to test the master branch if it was automerged (which doesn't trigger workflows).

Also I fixed the link for that CI badge.
2020-08-12 11:02:06 +00:00
Jairo Llopis
cdb563a96d Add 4-space indentation to .md files
Mkdocs uses `python-markdown`, and [they say](https://python-markdown.github.io/#differences):

> The syntax rules clearly state that when a list item consists of multiple paragraphs, “each subsequent paragraph in a list item must be indented by either 4 spaces or one tab” (emphasis added). However, many implementations do not enforce this rule and allow less than 4 spaces of indentation. The implementers of Python-Markdown consider it a bug to not enforce this rule.

As we were using 2 spaces for markdown files (which looks better in source code), some indented lists were not displaying properly in the docs page.

Thus I change the setting to 4 spaces. Prettier will now enforce them, and mkdocs will display things properly.
2020-08-10 12:59:07 +00:00
Jairo Llopis
a456f59b7a A little polish on docs
- Prepare for a new release.
- Add configuring page, with more explicit docs and examples for each option.
- Remove configuration stuff from creation page.
- Comparisons are ugly, so remove them from the index page.
2020-08-10 11:27:52 +00:00
Jairo Llopis
9bd9400580 Windows fixes
- Ignore errors when executing `shutil.rmtree()`, because it seems like it's common to fail when deleting git repos on Windows, and since these are temp files, we don't really care that much there's garbage left. Any good OS should clean the temp folders automatically.
- Always find Jinja templates in `PosixPath` mode.
- Ignore `OSError` when trying to enter a possibly git root directory. This is yielded by Windows when the path is a URL and we don't really care about it.
- Fix some tests with non-windows hardcoded stuff.
- Fix a test that was using a Bash script. Modified to be Python, which should work fine cross-system.
- Remove external python dependencies (yaml, plumbum) from test task/migration files. These are available on Linux because it gets the python env from the venv, but on Windows, it uses the main python interpreter and breaks. After all, that's not very important here.
- Do not modify EOL in CI.
- Use python executable in tests instead of python3.
- Update pre-commit versions to include https://github.com/pre-commit/pre-commit-hooks/pull/509.
- Disable autorebasing.
- Disable pre-commit on CI on Windows.
- Require python 3.8 on Windows, where `tempfile` supports autoremoving directories with read-only files.
2020-08-08 15:27:56 +00:00
Timothée Mazzucotelli
fda2ef3e6e s/pykong/copier-org
Also add a "thanks" mention for @pykong 🙂
2020-08-04 09:47:33 +01:00
Jairo Llopis
3296b4ccc0 Link docs
🎉 We have docs! https://copier.readthedocs.io/
2020-08-03 13:10:47 +00:00
Timothée Mazzucotelli
3ad2c67a20 Autodoc 2020-07-31 15:02:58 +02:00
Jairo Llopis
65b03c0c5a Support pre-migration scripts that alter .copier-answers.yml file
When migrating a template, it can happen that the answers spec is modified.

When that happens, the migration script should modify the answers file. Thus, the update process should reload answers after running pre-migrations.

That's what it is doing now with this patch.

@Tecnativa TT23705
2020-06-18 10:07:25 +01:00
Jairo Llopis
25f8d796bf Remove semver
Fix #199.
2020-06-18 09:03:58 +01:00
Ivan Yelizariev
bca532a308
README: fix markdown format 2020-06-17 11:35:24 +05:00
Timothée Mazzucotelli
c4b38a1ec6 Add subdirectory option
Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>
2020-05-20 19:41:10 +02:00
Jairo Llopis
ebdf05bcd4
Merge pull request #207 from Tecnativa/tmdrel
Improve tasks & migration docs, prepare v3.1.0 release
2020-05-11 08:52:45 +01:00
Jairo Llopis
cce3a5d961
Improve tasks & migration docs, prepare v3.1.0 release
Fixes #195.
2020-05-11 08:49:45 +01:00
Timothée Mazzucotelli
cfb6ca921d Add minimum copier version verification 2020-05-10 15:23:23 +02:00
Timothée Mazzucotelli
92472ce639 Update README structure
Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>
2020-05-05 10:49:43 +02:00
Jairo Llopis
08c1a5231b
Recommend copier-template GH topic
Fix #201
2020-05-04 09:15:42 +01:00
Jairo Llopis
11bc27de8d
Merge pull request #190 from pawamoy/add-prompt-templating
Add prompt templating
2020-04-30 10:02:06 +01:00
Timothée Mazzucotelli
59f1f3a8ee Add prompt templating 2020-04-29 12:45:42 +02:00
Timothée Mazzucotelli
8d6a0233e6
Fix link 2020-04-16 13:12:32 +02:00
Jairo Llopis
184a1ca98d
Fix type castings in choices
When data came from `--data` flag, it was always a string.

If some data was expected to be of another type, it could make the template fail.

The type casting system must be applied also to user answers, so here's the patch, docs and tests.

@Tecnativa TT20357
2020-04-13 12:31:45 +01:00
Jairo Llopis
3fec147a10
Add installation instructions
- Without Git, Copier doesn't work.
- With older Git versions, `copier update` fails.
- Recommend using pipx for CLI usage.
2020-04-08 13:46:57 +01:00