-
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.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
28a6418
commit abe4fd6
Showing
13 changed files
with
246 additions
and
26 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,28 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[{,.}{j,J}ustfile] | ||
indent_size = 4 | ||
|
||
[*.{py,rst,ini,md}] | ||
indent_size = 4 | ||
|
||
[*.py] | ||
line_length = 120 | ||
multi_line_output = 3 | ||
|
||
[*.{css,html,js,json,jsx,sass,scss,svelte,ts,tsx,yml,yaml}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{Makefile,*.bat}] | ||
indent_style = tab |
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,5 @@ | ||
# Authors | ||
|
||
- Josh Thomas <josh@joshthomas.dev> | ||
|
||
Special thanks to Jeff Triplett [@jefftriplett](https://github.com/jefftriplett) for his help. |
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,36 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | ||
|
||
<!-- | ||
## [Version Number] | ||
### Added | ||
### Changed | ||
### Deprecated | ||
### Removed | ||
### Fixed | ||
### Security | ||
--> | ||
|
||
## [Unreleased] | ||
|
||
## [2024.1] | ||
|
||
Initial release! 🎉 | ||
|
||
### Added | ||
|
||
- Initial project template. | ||
- Initial documentation. | ||
- Initial tests. | ||
- Initial CI/CD (GitHub Actions). | ||
|
||
### New Contributors! | ||
|
||
- Josh Thomas <josh@joshthomas.dev> (maintainer) | ||
|
||
[unreleased]: https://github.com/westerveltco/django-twc-project/compare/v2024.1...HEAD | ||
[2024.1]: https://github.com/westerveltco/django-simple-nav/releases/tag/v2024.1 |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Releasing a New Version | ||
|
||
When it comes time to cut a new release, follow these steps: | ||
|
||
1. Create a new git branch off of `main` for the release. | ||
|
||
Prefer the convention `release-<version>`, where `<version>` is the next incremental version number (e.g. `release-v2024.1` for version 2024.1). | ||
|
||
```shell | ||
git checkout -b release-v<version> | ||
``` | ||
|
||
However, the branch name is not *super* important, as long as it is not `main`. | ||
|
||
2. Update the version number across the project using the `bumpver` tool. | ||
|
||
The `pyproject.toml` in the base of the repository contains a `[tool.bumpver]` section that configures the `bumpver` tool to update the version number wherever it needs to be updated and to create a commit with the appropriate commit message. | ||
|
||
`bumpver` is included as a development dependency, so you should already have it installed if you have installed the development dependencies for this project. If you do not have the development dependencies installed, you can install them with the following command: | ||
|
||
```shell | ||
python -m pip install -r requirements-dev.lock | ||
``` | ||
|
||
Then, run `bumpver` to update the version number, with the appropriate command line arguments. See the [`bumpver` documentation](https://github.com/mbarkhau/bumpver) for more details. | ||
|
||
**Note**: For any of the following commands, you can add the command line flag `--dry` to preview the changes without actually making the changes. | ||
|
||
Here are the most common commands you will need to run: | ||
|
||
```shell | ||
bumpver update | ||
``` | ||
|
||
To release a tagged version, such as a beta or release candidate, you can run: | ||
|
||
```shell | ||
bumpver update --tag=beta | ||
# or | ||
bumpver update --tag=rc | ||
``` | ||
|
||
Running these commands on a tagged version will increment the tag appropriately, but will not increment the version number. | ||
|
||
To go from a tagged release to a full release, you can run: | ||
|
||
```shell | ||
bumpver update --tag=final | ||
``` | ||
|
||
3. Ensure the [CHANGELOG](https://github.com/westerveltco/django-twc-project/blob/main/CHANGELOG.md) is up to date. If updates are needed, add them now in the release branch. | ||
|
||
4. Create a pull request from the release branch to `main`. | ||
|
||
5. Once CI has passed and all the checks are green ✅, merge the pull request. | ||
|
||
6. Draft a [new release](https://github.com/westerveltco/django-twc-project/releases/new) on GitHub. | ||
|
||
Use the version number with a leading `v` as the tag name (e.g. `v2024.1`). | ||
|
||
Allow GitHub to generate the release title and release notes, using the 'Generate release notes' button above the text box. If this is a final release coming from a tagged release (or multiple tagged releases), make sure to copy the release notes from the previous tagged release(s) to the new release notes (after the release notes already generated for this final release). | ||
|
||
If this is a tagged release, make sure to check the 'Set as a pre-release' checkbox. | ||
|
||
7. Once you are satisfied with the release, publish the release. |
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
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
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