Skip to content

Commit

Permalink
Merge pull request #92 from peopledoc/release/0.22
Browse files Browse the repository at this point in the history
Release/0.22
  • Loading branch information
DainDwarf authored Feb 3, 2020
2 parents fb4bf2e + 446ae5f commit a932a89
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
Changelog
=========

0.22 (unreleased)
0.23 (unreleased)
-----------------

0.22 (2020-02-03)
-----------------

- Run tests for Django 2.2 and Python 3.5, 3.6, 3.7 & 3.8
Expand Down
17 changes: 15 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,20 @@ http://localhost:8000/mail_factory/.
Release
=======

To prepare a new version:

* Create a branch named ``release/<version>``
* In a commit, change the ``CHANGELOG`` and ``VERSION`` file to remove the ``.dev0`` and set the date of the release
* In a second commit, change the ``VERSION`` to the next version number + ``.dev0``
* Create a PR for your branch
* When the PR is merged, tag the first commit with the version number, and create a github release using the ``CHANGELOG``

To release a new version (including the wheel)::

pip install wheel
python setup.py sdist bdist_wheel upload
pip install twine
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

And after testing everything works fine on the testing repository::

twine upload dist/*
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.22.dev0
0.23.dev0

0 comments on commit a932a89

Please sign in to comment.