File: releasing.rst

package info (click to toggle)
python-ws4py 0.4.2%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 688 kB
  • sloc: python: 4,500; makefile: 140; javascript: 96
file content (50 lines) | stat: -rw-r--r-- 1,353 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.. _releasing:

Release Process
===============

ws4py's release process is as follow:

1. Update the release minor or micro version. 
 
 	If necessary change also the major version. This should be saved only for major 
 	modifications and/or API compatibility breakup.
 	
	Edit ``ws4py/__init__.py`` accordingly. This will
	propagate to the ``setup.py`` and ``docs/conf.py`` appropriately on its own.
	
 	.. seealso:: `How to version? <http://semver.org/>`_ You should read this.

2. Run the unit test suites

	It's simple, fast and will make you sleep well at night. So `do it <testing>`_.
	
	If the test suite fails, do not release. It's a simple rule we constantly
	fail for some reason. So if it fails, go back and fix it.
	
3. Rebuild the documentation

	It may sound funny but a release with an out of date documentation has little
	value. Keeping your documentation up to date is as important as having
	no failing unit tests.
	
	Add to subversion any new documentation pages, both their sources and
	the resulting HTML files.
	
4. Build the source package

	First delete the ``build`` directory.

	Run the following command:
	
	.. code-block:: console
	
		python setup.py sdist --formats=gztar
	
	This will produce a tarball in the ``dist`` directory.
	
5. Push the release to PyPI

6. Tag the release in github

7. Announce it to the world :)