Integrate the new release script into docs & Makefile
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,6 +1,6 @@
|
|||||||
# See README for copyright and licensing details.
|
# See README for copyright and licensing details.
|
||||||
|
|
||||||
PYTHON=python3
|
PYTHON=python
|
||||||
SOURCES=$(shell find testtools -name "*.py")
|
SOURCES=$(shell find testtools -name "*.py")
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@@ -22,6 +22,7 @@ prerelease:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
./setup.py sdist upload --sign
|
./setup.py sdist upload --sign
|
||||||
|
$(PYTHON) _lp_release.py
|
||||||
|
|
||||||
snapshot: prerelease
|
snapshot: prerelease
|
||||||
./setup.py sdist
|
./setup.py sdist
|
||||||
|
|||||||
@@ -129,26 +129,16 @@ Release tasks
|
|||||||
which should not be replaced).
|
which should not be replaced).
|
||||||
#. Commit the changes.
|
#. Commit the changes.
|
||||||
#. Tag the release, bzr tag testtools-X.Y.Z
|
#. Tag the release, bzr tag testtools-X.Y.Z
|
||||||
#. Create a source distribution and upload to pypi ('make release').
|
#. Run 'make release', this:
|
||||||
#. Make sure all "Fix committed" bugs are in the 'next' milestone on
|
#. Creates a source distribution and uploads to PyPI
|
||||||
Launchpad
|
#. Ensures all Fix Committed bugs are in the release milestone
|
||||||
#. Rename the 'next' milestone on Launchpad to 'X.Y.Z'
|
#. Makes a release on Launchpad and uploads the tarball
|
||||||
#. Create a release on the newly-renamed 'X.Y.Z' milestone
|
#. Marks all the Fix Committed bugs as Fix Released
|
||||||
|
#. Creates a new milestone
|
||||||
* Make the milestone inactive (this is the default)
|
|
||||||
* Set the release date to the current day
|
|
||||||
|
|
||||||
#. Upload the tarball and asc file to Launchpad
|
|
||||||
#. Merge the release branch testtools-X.Y.Z into trunk. Before the commit,
|
#. Merge the release branch testtools-X.Y.Z into trunk. Before the commit,
|
||||||
add a NEXT heading to the top of NEWS and bump the version in __init__.py.
|
add a NEXT heading to the top of NEWS and bump the version in __init__.py.
|
||||||
Push trunk to Launchpad
|
Push trunk to Launchpad
|
||||||
#. If a new series has been created (e.g. 0.10.0), make the series on Launchpad.
|
#. If a new series has been created (e.g. 0.10.0), make the series on Launchpad.
|
||||||
#. Make a new milestone for the *next release*.
|
|
||||||
|
|
||||||
#. During release we rename 'next' to $version.
|
|
||||||
#. We call new milestones 'next'.
|
|
||||||
|
|
||||||
#. Set all bugs that were "Fix Committed" to "Fix Released"
|
|
||||||
|
|
||||||
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/
|
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/
|
||||||
.. _unittest: http://docs.python.org/library/unittest.html
|
.. _unittest: http://docs.python.org/library/unittest.html
|
||||||
|
|||||||
Reference in New Issue
Block a user