forked from pypa/sampleproject
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into main-github
- Loading branch information
Showing
12 changed files
with
185 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ pypa | |
pyproject | ||
pytest | ||
sampleproject | ||
secho | ||
sendline | ||
setuptools | ||
SPHINXBUILD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
prune template | ||
prune */__pycache__ | ||
exclude copier.yaml | ||
graft src/init_python_project/template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
{{ includex('README.md', start_match='Prerequisites', end_match='<!-- usage-end -->')}} | ||
|
||
## Using [copier] directly | ||
??? note "Using [pipx]" | ||
|
||
```console | ||
copier copy --trust https://git01.iis.fhg.de/mkj/project-template.git my_new_project | ||
``` | ||
```{.sh .copy} | ||
pipx run init-python-project | ||
``` | ||
|
||
*Note: `--trust` is required because the template uses [tasks][] to setup your git repository for you.* | ||
[pipx]: https://pypa.github.io/pipx/ | ||
|
||
[tasks]: https://git01.iis.fhg.de/mkj/project-template/-/blob/main/copier.yaml | ||
??? note "Using [copier]" | ||
|
||
The underlying template is built using [copier]. This means you can also use the copier template directly like this: | ||
|
||
*Note: If you have [pipx][] installed (you should, it is good), you can simply use `pipx run copier` out of the box.* | ||
```{.sh .copy} | ||
copier copy --trust https://git01.iis.fhg.de/mkj/project-template.git my_new_project | ||
``` | ||
|
||
*Note: `--trust` is required because the template uses [tasks] to setup your git repository for you.* | ||
|
||
[tasks]: https://git01.iis.fhg.de/mkj/project-template/-/blob/main/copier.yaml | ||
[copier]: https://github.com/copier-org/copier | ||
[pipx]: https://pypa.github.io/pipx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
template/{% if docs == 'mkdocs' %}docs{% endif %}/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mkdocs | ||
mkdocs-material | ||
mkdocstrings[python] | ||
mkdocs-git-revision-date-localized-plugin | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters