| Alex Stapleton | c5fffd3 | 2014-03-18 15:29:00 +0000 | [diff] [blame] | 1 | Doing a release | 
| Alex Gaynor | 89063f6 | 2014-01-06 15:52:38 -0800 | [diff] [blame] | 2 | =============== | 
 | 3 |  | 
 | 4 | Doing a release of ``cryptography`` is a two part process. | 
 | 5 |  | 
 | 6 | Bumping the version number | 
 | 7 | -------------------------- | 
 | 8 |  | 
 | 9 | The first step in doing a release is bumping the version number in the | 
 | 10 | software. | 
 | 11 |  | 
| Alex Gaynor | ce0b5a3 | 2014-01-06 16:53:31 -0800 | [diff] [blame] | 12 | * Update the version number in ``cryptography/__about__.py``. | 
| Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 13 | * Update the version number in ``vectors/cryptography_vectors/__about__.py``. | 
| Alex Gaynor | 3f23040 | 2014-01-08 09:21:57 -0800 | [diff] [blame] | 14 | * Set the release date in the :doc:`/changelog`. | 
| Alex Gaynor | 89063f6 | 2014-01-06 15:52:38 -0800 | [diff] [blame] | 15 | * Do a commit indicating this. | 
 | 16 | * Send a pull request with this. | 
 | 17 | * Wait for it to be merged. | 
 | 18 |  | 
 | 19 | Performing the release | 
 | 20 | ---------------------- | 
 | 21 |  | 
| Alex Stapleton | 63b3de2 | 2014-02-08 09:43:16 +0000 | [diff] [blame] | 22 | The commit that merged the version number bump is now the official release | 
| Alex Gaynor | b3794db | 2014-01-07 09:25:54 -0800 | [diff] [blame] | 23 | commit for this release. You will need to have ``gpg`` installed and a ``gpg`` | 
 | 24 | key in order to do a release. Once this has happened: | 
| Alex Gaynor | 89063f6 | 2014-01-06 15:52:38 -0800 | [diff] [blame] | 25 |  | 
 | 26 | * Run ``invoke release {version}``. | 
 | 27 |  | 
| Alex Gaynor | fea893c | 2014-01-07 11:06:51 -0800 | [diff] [blame] | 28 | The release should now be available on PyPI and a tag should be available in | 
 | 29 | the repository. You should verify that ``pip install cryptography`` works | 
| Alex Gaynor | 41c14d5 | 2014-01-07 11:19:08 -0800 | [diff] [blame] | 30 | correctly: | 
 | 31 |  | 
 | 32 | .. code-block:: pycon | 
 | 33 |  | 
 | 34 |     >>> import cryptography | 
 | 35 |     >>> cryptography.__version__ | 
 | 36 |     '...' | 
| Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 37 |     >>> import cryptography_vectors | 
 | 38 |     >>> cryptography_vectors.__version__ | 
 | 39 |     '...' | 
| Alex Gaynor | 41c14d5 | 2014-01-07 11:19:08 -0800 | [diff] [blame] | 40 |  | 
 | 41 | Verify that this is the version you just released. | 
| Paul Kehrer | ff26c74 | 2014-04-02 19:11:53 -0500 | [diff] [blame] | 42 |  | 
 | 43 | Post-release tasks | 
 | 44 | ------------------ | 
 | 45 |  | 
| Paul Kehrer | 3bcd3e0 | 2014-04-02 21:00:35 -0500 | [diff] [blame] | 46 | * Update the version number to the next major (e.g. ``0.5.dev1``) in | 
| Paul Kehrer | ff26c74 | 2014-04-02 19:11:53 -0500 | [diff] [blame] | 47 |   ``cryptography/__about__.py`` and | 
 | 48 |   ``vectors/cryptography_vectors/__about__.py``. | 
| Paul Kehrer | 3bcd3e0 | 2014-04-02 21:00:35 -0500 | [diff] [blame] | 49 | * Add new :doc:`/changelog` entry with next version and note that it is under | 
 | 50 |   active development | 
| Paul Kehrer | ff26c74 | 2014-04-02 19:11:53 -0500 | [diff] [blame] | 51 | * Send a pull request with these items | 
| Paul Kehrer | 3254741 | 2014-04-02 21:31:41 -0500 | [diff] [blame] | 52 | * Check for any outstanding code undergoing a deprecation cycle by looking in | 
 | 53 |   ``cryptography.utils`` for ``DeprecatedIn**`` definitions. If any exist open | 
 | 54 |   a ticket to increment them for the next release. |