Bleach development¶
Docs¶
Docs are in docs/
. We use Sphinx. Docs are pushed to ReadTheDocs
via a GitHub webhook.
Testing¶
Run:
$ tox
That’ll run Bleach tests in all the supported Python environments. Note that you need the necessary Python binaries for them all to be tested.
Tests are run in Travis CI via a GitHub webhook.
Release process¶
Checkout master tip.
Check to make sure
setup.py
andrequirements.txt
are correct and match requirements-wise.Update version number in:
bleach/version.py
Set the version to something like
VERSION = (1, 4, 3)
.Update
CONTRIBUTORS
,CHANGES
andMANIFEST.in
.Verify correctness.
Run tests with tox:
$ tox
Build the docs:
$ cd docs $ make html
Run the doctests:
$ cd docs/ $ make doctests
Verify everything works
Commit the changes.
Push the changes to GitHub. This will cause Travis to run the tests.
After Travis is happy, tag the release:
$ git tag -a v0.4
Copy the details from
CHANGES
into the tag comment.Push the new tag:
$ git push --tags official master
That will push the release to PyPI.
Blog posts, twitter, update topic in
#bleach
, etc.