Skip to content

Commit a5fb7e4

Browse files
committed
update contributing
1 parent c13956f commit a5fb7e4

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,21 @@ just test tests/test_basics.py::BasicTests::test_call_command
8383

8484
django-typer strictly adheres to [semantic versioning](https://semver.org).
8585

86+
## Issuing Releases
87+
88+
The release workflow is triggered by tag creation. You must have [git tag signing enabled](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits). Our justfile has a release shortcut:
89+
90+
```bash
91+
just release x.x.x
92+
```
8693

8794
## Just Recipes
8895

8996
```
90-
build # build docs and package
97+
build # build src package and wheel
9198
build-docs # build the docs
9299
build-docs-html # build html documentation
93100
build-docs-pdf # build pdf documentation
94-
build-sdist # build the source distribution
95-
build-wheel # build the wheel distribution
96101
check # run all static checks
97102
check-docs # lint the documentation
98103
check-docs-links # check the documentation links for broken links
@@ -106,32 +111,36 @@ clean-docs # remove doc build artifacts
106111
clean-env # remove the virtual environment
107112
clean-git-ignored # remove all git ignored files
108113
coverage # generate the test coverage report
109-
default # list all available commands
110114
docs # build and open the documentation
111115
docs-live # serve the documentation, with auto-reload
112116
fix # fix formatting, linting issues and import sorting
113117
format # format the code and sort imports
114-
init python="python" # install build tooling
115118
install *OPTS # update and install development dependencies
116119
install-docs # install documentation dependencies
117120
install-precommit # install git pre-commit hooks
121+
install-psycopg3 # install with postgresql dependencies
118122
install-translate # install translation dependencies
123+
install-uv # install the uv package manager
119124
lint # sort the imports and fix linting issues
120125
list-missed-tests # run the tests and report if any were not run - sanity check
121126
log-tests # run all tests and log them
127+
manage *COMMAND # run the django admin
122128
open-docs # open the html documentation
123-
pin-dependency +PACKAGES # install a dependency to a specific version e.g. just pin-dependency Django~=5.1.0
124129
precommit # run the pre-commit checks
130+
release VERSION # issue a relase for the given semver string (e.g. 2.1.0)
125131
run +ARGS # run the command in the virtual environment
132+
setup python="python" # setup the venv and pre-commit hooks
126133
sort-imports # sort the python imports
127134
test *TESTS # run tests
128135
test-all # run all tests
129136
test-bash # test bash shell completions
130137
test-fish # test fish shell completions
138+
test-lock +PACKAGES # lock to specific python and versions of given dependencies
131139
test-no-rich # run the tests that require rich not to be installed
132140
test-powershell # test powershell shell completions
133141
test-pwsh # test pwsh shell completions
134142
test-rich # run the tests that require rich to be installed
135143
test-zsh # test zsh shell completions
136144
translate # generate translations using google translate
145+
validate_version VERSION # validate the given version string against the lib version
137146
```

justfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ install *OPTS:
4848
install-docs:
4949
uv sync --group docs --all-extras
5050

51+
# install with postgresql dependencies
5152
install-psycopg3:
5253
uv sync --group psycopg3
5354

@@ -108,6 +109,7 @@ build-docs-pdf: install-docs
108109
# build the docs
109110
build-docs: build-docs-html
110111

112+
# build src package and wheel
111113
build:
112114
uv build
113115

0 commit comments

Comments
 (0)