提交 6a22b625 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Add a few things into the release instructions

上级 11f545a3
...@@ -4,10 +4,18 @@ ...@@ -4,10 +4,18 @@
How to make a release How to make a release
================================================== ==================================================
Get a fresh copy of the repository
==================================
Clone the code:: Clone the code::
hg clone http://hg.assembla.com/theano Theano-0.X hg clone http://hg.assembla.com/theano Theano-0.X
It does not have to be in your PYTHONPATH.
Update the version number
=========================
Edit ``setup.py`` to contain the newest version number :: Edit ``setup.py`` to contain the newest version number ::
cd Theano-0.X cd Theano-0.X
...@@ -18,18 +26,47 @@ Edit ``setup.py`` to contain the newest version number :: ...@@ -18,18 +26,47 @@ Edit ``setup.py`` to contain the newest version number ::
* Change the ``version`` and ``release`` variables to new version number. * Change the ``version`` and ``release`` variables to new version number.
* Change the upper copyright year to the current year if necessary. * Change the upper copyright year to the current year if necessary.
``NEWS.txt`` usually contains the name and date of the release, change them
too.
Tag the release
===============
You will need to commit the previous changes, tag the resulting version, and
push that into the original repository::
Tag the release. The syntax is something like the following:: Tag the release. The syntax is something like the following::
hg commit -m"modifications for 0.X release" setup.py doc/conf.py hg commit -m"modifications for 0.X release" setup.py doc/conf.py
hg tag 0.X hg tag 0.X
hg push hg push
The documentation will be automatically regenerated in the next few hours.
Generate and upload the package
===============================
Now change ``ISRELEASED`` in setup.py to ``True``. Now change ``ISRELEASED`` in setup.py to ``True``.
Finally, use setuptools to register and upload the release:: Finally, use setuptools to register and upload the release::
python setup.py register sdist --formats=gztar,zip upload python setup.py register sdist --formats=gztar,zip upload
Change ``ISRELEASED`` back to ``False``. TODO:
* Does that line actually uploads the package on pypi.org?
* Who can do that?
* How to upload on mloss.org and freshmeat.net?
Change ``ISRELEASED`` back to ``False``.
Announce the release
====================
Generate an e-mail from the template in in ``EMAIL.txt``, including content
from ``NEWS.txt``, and send it to the following mailing lists:
Regenerate the documentation. * theano-users
* theano-announce
* numpy-discussion@scipy.org
* scipy-user@scipy.org
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论