| 1 |
============================= |
| 2 |
Docutils_ Release Procedure |
| 3 |
============================= |
| 4 |
|
| 5 |
:Authors: David Goodger; Lea Wiemann; open to all Docutils developers |
| 6 |
:Contact: [email protected] |
| 7 |
:Date: $Date$ |
| 8 |
:Revision: $Revision$ |
| 9 |
:Copyright: This document has been placed in the public domain. |
| 10 |
|
| 11 |
.. _Docutils: https://docutils.sourceforge.io/ |
| 12 |
|
| 13 |
Releasing (post 2020) |
| 14 |
--------------------- |
| 15 |
|
| 16 |
* Announce the upcoming release on docutils-develop list. |
| 17 |
|
| 18 |
Consider **feature freeze** or/and **check-in freeze** . |
| 19 |
|
| 20 |
* Update RELEASE-NOTES.txt add section ``Release <version>``. |
| 21 |
|
| 22 |
Consult HISTORY.txt for important changes. |
| 23 |
|
| 24 |
* Change HISTORY.txt title ``Changes Since <previous release>`` to ``Release <version>``. |
| 25 |
|
| 26 |
* Set new version with ``sandbox/infrastructure/set_version.sh <version>`` |
| 27 |
|
| 28 |
Check what was changed with version control system by ``set_version.sh`` |
| 29 |
|
| 30 |
Run tests :: |
| 31 |
|
| 32 |
export PYTHONWARNINGS=default |
| 33 |
python3 test/alltests.py |
| 34 |
|
| 35 |
or use tox. |
| 36 |
|
| 37 |
``export PYTHONWARNINGS=default`` prints DeprecationWarnings in python3. |
| 38 |
|
| 39 |
* Generate universal wheel and source-distribution:: |
| 40 |
|
| 41 |
python3 setup.py sdist |
| 42 |
python3 setup.py bdist_wheel --universal |
| 43 |
|
| 44 |
* Upload universal wheel and source to test.pypi:: |
| 45 |
|
| 46 |
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
| 47 |
|
| 48 |
Test in venv :: |
| 49 |
|
| 50 |
python3 -m venv du3 ; cd du3 |
| 51 |
export PYTHONPATH= ; . bin/activate |
| 52 |
|
| 53 |
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps docutils |
| 54 |
|
| 55 |
cp -Lr ../docutils-code/docutils/test . |
| 56 |
python test/alltests.py |
| 57 |
|
| 58 |
python -m pip uninstall docutils |
| 59 |
deactivate ; cd .. ; rm -r du3 |
| 60 |
|
| 61 |
* Commit changes ... the changed version number. |
| 62 |
|
| 63 |
* tag 0.## (Note: only directory docutils is copied):: |
| 64 |
|
| 65 |
svn copy svn+ssh://[email protected]/p/docutils/code/trunk/docutils \ |
| 66 |
svn+ssh://[email protected]/p/docutils/code/tags/docutils-0.## \ |
| 67 |
-m "tagging release 0.##" |
| 68 |
|
| 69 |
* Update your source directory. |
| 70 |
* Rebuild universal wheel and source-distribution :: |
| 71 |
|
| 72 |
python3 setup.py sdist |
| 73 |
python3 setup.py bdist_wheel --universal |
| 74 |
|
| 75 |
* Now upload to pypi:: |
| 76 |
|
| 77 |
python3 -m twine upload dist/docutils-0.##* |
| 78 |
|
| 79 |
* Remove previous package from local cache:: |
| 80 |
|
| 81 |
find .cache/pip/wheels -name docutils\*whl -exec rm -v -i {} \; |
| 82 |
|
| 83 |
* and test:: |
| 84 |
|
| 85 |
python3 -m venv du3 ; cd du3 |
| 86 |
export PYTHONPATH= ; . bin/activate |
| 87 |
|
| 88 |
pip install --no-deps docutils |
| 89 |
cp -Lr ../docutils-code/docutils/test . |
| 90 |
python test/alltests.py |
| 91 |
|
| 92 |
deactivate ; cd .. ; rm -r du3 |
| 93 |
|
| 94 |
* Notify to docutils-developer and user. |
| 95 |
|
| 96 |
* upload source and generated html to sf-htdocs/0.## :: |
| 97 |
|
| 98 |
mkdir tmp1 |
| 99 |
cd tmp1 |
| 100 |
tar xzvf ../dist/docutils-0.##.tar.gz |
| 101 |
cd docutils-0.##/ |
| 102 |
tools/buildhtml.py . |
| 103 |
find . -name \*.pyc -exec rm -v {} \; |
| 104 |
find . -name __pycache__ -exec rmdir -v {} \; |
| 105 |
rm -r docutils.egg-info |
| 106 |
rsync -e ssh -r -t ./ web.sourceforge.net:/home/project-web/docutils/htdocs/0.## |
| 107 |
|
| 108 |
* Check web/index.txt for necessary corrections. |
| 109 |
* Run sandbox/infrastructure/docutils-update.local to update web-content. |
| 110 |
* Release to sourceforge. |
| 111 |
|
| 112 |
- Upload tar.gz and 0.16 release notes to sourceforge. |
| 113 |
- Select docutils-0.16.tar.gz as default for all OS. |
| 114 |
|
| 115 |
* set_version 0.#.#+1b.dev |
| 116 |
* test with py3 |
| 117 |
* docutils/HISTORY.txt: add title "Changes Since 0.##" |
| 118 |
* run sandbox/infrastructure/docutils-update.local |
| 119 |
|
| 120 |
|
| 121 |
.. |
| 122 |
Local Variables: |
| 123 |
mode: indented-text |
| 124 |
indent-tabs-mode: nil |
| 125 |
sentence-end-double-space: t |
| 126 |
fill-column: 70 |
| 127 |
End: |