-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scriv to FastAPI and PyPI templates
We've been happy with scriv for change log management. Add it to the templates for both FastAPI Safir apps and SQuaRE PyPI packages, adding a CHANGELOG.md file to FastAPI Safir apps since we're standardizing on keeping change logs. Update the development documentation included in SQuaRE PyPI packages accordingly.
- Loading branch information
Showing
18 changed files
with
204 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Change log | ||
|
||
All notable changes to example will be documented in this file. | ||
|
||
Versioning follows [semver](https://semver.org/). | ||
|
||
Dependencies are updated to the latest available version during each release. Those changes are not noted here explicitly. | ||
|
||
This project uses [scriv](https://scriv.readthedocs.io/en/stable/) to maintain the change log. | ||
Changes for the upcoming release can be found in [changelog.d](https://github.com/lsst-sqre/example/tree/main/changelog.d/). | ||
|
||
<!-- scriv-insert-here --> |
7 changes: 7 additions & 0 deletions
7
project_templates/fastapi_safir_app/example/changelog.d/_template.md.jinja
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Delete the sections that don't apply --> | ||
{%- for cat in config.categories %} | ||
|
||
### {{ cat }} | ||
|
||
- | ||
{%- endfor %} |
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
12 changes: 12 additions & 0 deletions
12
project_templates/fastapi_safir_app/{{cookiecutter.name}}/CHANGELOG.md
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Change log | ||
|
||
All notable changes to {{cookiecutter.name}} will be documented in this file. | ||
|
||
Versioning follows [semver](https://semver.org/). | ||
|
||
Dependencies are updated to the latest available version during each release. Those changes are not noted here explicitly. | ||
|
||
This project uses [scriv](https://scriv.readthedocs.io/en/stable/) to maintain the change log. | ||
Changes for the upcoming release can be found in [changelog.d](https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.name}}/tree/main/changelog.d/). | ||
|
||
<!-- scriv-insert-here --> |
7 changes: 7 additions & 0 deletions
7
project_templates/fastapi_safir_app/{{cookiecutter.name}}/changelog.d/_template.md.jinja
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Delete the sections that don't apply --> | ||
{{ "{%- for cat in config.categories %}" }} | ||
|
||
### {{ "{{ cat }}" }} | ||
|
||
- | ||
{{ "{%- endfor %}" }} |
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,7 +1,12 @@ | ||
# Change log | ||
|
||
<!-- Format for headings: 1.2.3 (YYYY-MM-DD) --> | ||
All notable changes to example will be documented in this file. | ||
|
||
## Unreleased | ||
Versioning follows [semver](https://semver.org/). | ||
|
||
- First release of example | ||
Dependencies are updated to the latest available version during each release. Those changes are not noted here explicitly. | ||
|
||
This project uses [scriv](https://scriv.readthedocs.io/en/stable/) to maintain the change log. | ||
Changes for the upcoming release can be found in [changelog.d](https://github.com/lsst-sqre/example/tree/main/changelog.d/). | ||
|
||
<!-- scriv-insert-here --> |
7 changes: 7 additions & 0 deletions
7
project_templates/square_pypi_package/example/changelog.d/_template.md.jinja
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Delete the sections that don't apply --> | ||
{%- for cat in config.categories %} | ||
|
||
### {{ cat }} | ||
|
||
- | ||
{%- endfor %} |
5 changes: 3 additions & 2 deletions
5
project_templates/square_pypi_package/example/docs/_rst_epilog.rst
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,6 +1,7 @@ | ||
|
||
.. _Click: https://click.palletsprojects.com/ | ||
.. _mypy: http://www.mypy-lang.org | ||
.. _pre-commit: https://pre-commit.com | ||
.. _pytest: https://docs.pytest.org/en/latest/ | ||
.. _scriv: https://scriv.readthedocs.io/en/stable/ | ||
.. _semver: https://semver.org/ | ||
.. _tox: https://tox.wiki/en/latest/ | ||
.. _Click: https://click.palletsprojects.com/ |
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
11 changes: 8 additions & 3 deletions
11
project_templates/square_pypi_package/{{cookiecutter.name}}/CHANGELOG.md
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,7 +1,12 @@ | ||
# Change log | ||
|
||
<!-- Format for headings: 1.2.3 (YYYY-MM-DD) --> | ||
All notable changes to {{cookiecutter.name}} will be documented in this file. | ||
|
||
## Unreleased | ||
Versioning follows [semver](https://semver.org/). | ||
|
||
- First release of {{cookiecutter.name}} | ||
Dependencies are updated to the latest available version during each release. Those changes are not noted here explicitly. | ||
|
||
This project uses [scriv](https://scriv.readthedocs.io/en/stable/) to maintain the change log. | ||
Changes for the upcoming release can be found in [changelog.d](https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.name}}/tree/main/changelog.d/). | ||
|
||
<!-- scriv-insert-here --> |
7 changes: 7 additions & 0 deletions
7
project_templates/square_pypi_package/{{cookiecutter.name}}/changelog.d/_template.md.jinja
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Delete the sections that don't apply --> | ||
{{ "{%- for cat in config.categories %}" }} | ||
|
||
### {{ "{{ cat }}" }} | ||
|
||
- | ||
{{ "{%- endfor %}" }} |
5 changes: 3 additions & 2 deletions
5
project_templates/square_pypi_package/{{cookiecutter.name}}/docs/_rst_epilog.rst
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,6 +1,7 @@ | ||
|
||
.. _Click: https://click.palletsprojects.com/ | ||
.. _mypy: http://www.mypy-lang.org | ||
.. _pre-commit: https://pre-commit.com | ||
.. _pytest: https://docs.pytest.org/en/latest/ | ||
.. _scriv: https://scriv.readthedocs.io/en/stable/ | ||
.. _semver: https://semver.org/ | ||
.. _tox: https://tox.wiki/en/latest/ | ||
.. _Click: https://click.palletsprojects.com/ |
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