```shell
$ mkdocs serve
```
+
+## Releasing
+
+*This section is targeted at HTTPX maintainers.*
+
+Before releasing a new version, create a pull request that includes:
+
+- **An update to the changelog**:
+ - We follow the format from [keepachangelog](https://keepachangelog.com/en/1.0.0/).
+ - [Compare](https://github.com/encode/httpx/compare/) `master` with the tag of the latest release, and list all entries that are of interest to our users:
+ - Things that **must** go in the changelog: added, changed, deprecated or removed features, and bug fixes.
+ - Things that **should not** go in the changelog: changes to documentation, tests or tooling.
+ - Try sorting entries in descending order of impact / importance.
+ - Keep it concise and to-the-point. 🎯
+- **A version bump**: see `__version__.py`.
+
+For an example, see [#362](https://github.com/encode/httpx/pull/362).
+
+Once the release PR is merged, run `$ scripts/publish` to publish the new release to PyPI.
exit 1
fi
+if ! command -v "${PREFIX}mkdocs" &>/dev/null ; then
+ echo "Unable to find the 'mkdocs' command."
+ echo "Install from PyPI, using '${PREFIX}pip install mkdocs'."
+ exit 1
+fi
+
find ${PACKAGE} -type f -name "*.py[co]" -delete
find ${PACKAGE} -type d -name __pycache__ -delete
${PREFIX}python setup.py sdist
${PREFIX}twine upload dist/*
+${PREFIX}mkdocs gh-deploy
echo "You probably want to also tag the version now:"
echo "git tag -a ${VERSION} -m 'version ${VERSION}'"