##// END OF EJS Templates
make-release: import version and copyright updates from default branch (dba4e770d4b6)...
Thomas De Schampheleire -
r7136:d06c0566 stable
parent child Browse files
Show More
@@ -2,62 +2,70 b''
2 set -e
2 set -e
3 set -x
3 set -x
4
4
5 echo "Checking tools needed for uploading stuff"
5 echo "Install/verify tools needed for building and uploading stuff"
6 pip freeze | grep '^Sphinx==' || pip install Sphinx
6 pip install --upgrade -e .
7 pip freeze | grep '^Sphinx-PyPI-upload==' || pip install Sphinx-PyPI-upload
7 pip install --upgrade Sphinx Sphinx-PyPI-upload
8
9 echo "Cleanup and update copyrights ... and clean checkout"
10 scripts/whitespacecleanup.sh
11 scripts/update-copyrights.py
12 hg up -cr .
8
13
9 echo "Verifying everything can build"
14 echo "Make release build from clean checkout in build/"
10 hg purge --all dist
15 rm -rf build dist
11 python2 setup.py build_sphinx
16 hg archive build
12 python2 setup.py compile_catalog # TODO: check for errors
17 cd build
18
19 echo "Check MANIFEST.in"
20 sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | grep -v '^node_modules/bootstrap\|^kallithea/public/css/style.css' | xargs ls -lad
21
22 echo "Build dist"
23 python2 setup.py compile_catalog
13 python2 setup.py sdist
24 python2 setup.py sdist
14
25
15 echo "Verifying VERSION from kallithea/__init__.py"
26 echo "Verify VERSION from kallithea/__init__.py"
16 namerel=$(cd dist && echo Kallithea-*.tar.gz)
27 namerel=$(cd dist && echo Kallithea-*.tar.gz)
17 namerel=${namerel%.tar.gz}
28 namerel=${namerel%.tar.gz}
18 version=${namerel#Kallithea-}
29 version=${namerel#Kallithea-}
30 ls -l $(pwd)/dist/$namerel.tar.gz
19 echo "Releasing Kallithea $version in directory $namerel"
31 echo "Releasing Kallithea $version in directory $namerel"
20 echo "Verifying current revision is tagged for $version"
21 hg log -r "'$version'&." | grep .
22
32
23 echo "Cleaning before making release build"
33 echo "Verify dist file content"
24 hg up -c .
34 ! tar tf dist/Kallithea-$version.tar.gz | grep "$namerel/node_modules/bootstrap/\$"
25 hg revert -a -r null
35
26 hg up -C "'$version'&."
36 echo "Verify docs build"
27 hg purge --all
37 python2 setup.py build_sphinx # not used yet ... but we want to make sure it builds
38
39 cat - << EOT
28
40
29 echo "Building dist file"
41 Now, make sure
30 python2 setup.py compile_catalog
42 * the copyright and contributor lists have been updated
31 python2 setup.py sdist
43 * all tests are passing
44 * release note is ready
45 * announcement is ready
46 * source has been pushed to https://kallithea-scm.org/repos/kallithea
32
47
33 echo "Verifying dist file content"
48 EOT
34 tar tf dist/Kallithea-*.tar.gz | sed "s|^$namerel/||" | LANG=C sort > scripts/manifest
35 hg diff
36 hg up -c . # fail if manifest changed
37
49
38 echo "Now, make sure"
50 echo "Verify current revision is tagged for $version"
39 echo "* the copyright and contributor lists have been updated"
51 hg log -r "'$version'&." | grep .
40 echo "* all tests are passing"
41 echo "* release note is ready"
42 echo "* announcement is ready"
43 echo "* source has been pushed to https://kallithea-scm.org/repos/kallithea"
44 echo
45
52
46 echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: "
53 echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: "
47 read answer
54 read answer
48 [ "$answer" = "pypi" ]
55 [ "$answer" = "pypi" ]
49 extraargs=${EMAIL:+--identity=$EMAIL}
50 python2 setup.py sdist upload --sign $extraargs
51 xdg-open https://pypi.python.org/pypi/Kallithea
52
56
53 echo "Uploading docs to pypi"
57 echo "Upload docs to pypi"
54 # See https://wiki.python.org/moin/PyPiDocumentationHosting
58 # See https://wiki.python.org/moin/PyPiDocumentationHosting
55 python2 setup.py build_sphinx upload_sphinx
59 python2 setup.py build_sphinx upload_sphinx
56 xdg-open https://pythonhosted.org/Kallithea/
60 xdg-open https://pythonhosted.org/Kallithea/
57 xdg-open http://packages.python.org/Kallithea/installation.html
61 xdg-open http://packages.python.org/Kallithea/installation.html
58
62
59 echo "Rebuilding readthedocs for docs.kallithea-scm.org"
63 echo "Rebuild readthedocs for docs.kallithea-scm.org"
60 xdg-open https://readthedocs.org/projects/kallithea/
64 xdg-open https://readthedocs.org/projects/kallithea/
61 curl -X POST http://readthedocs.org/build/kallithea
65 curl -X POST http://readthedocs.org/build/kallithea
62 xdg-open https://readthedocs.org/builds/kallithea/
66 xdg-open https://readthedocs.org/builds/kallithea/
63 xdg-open http://docs.kallithea-scm.org/en/latest/ # or whatever the branch is
67 xdg-open http://docs.kallithea-scm.org/en/latest/ # or whatever the branch is
68
69 extraargs=${EMAIL:+--identity=$EMAIL}
70 python2 setup.py sdist upload --sign $extraargs
71 xdg-open https://pypi.python.org/pypi/Kallithea
@@ -73,7 +73,7 b' name_fixes[\'nansenat16@null.tw\'] = "nans'
73 name_fixes['Peter Vitt'] = "Peter Vitt <petervitt@web.de>"
73 name_fixes['Peter Vitt'] = "Peter Vitt <petervitt@web.de>"
74 name_fixes['philip.j@hostdime.com'] = "Philip Jameson <philip.j@hostdime.com>"
74 name_fixes['philip.j@hostdime.com'] = "Philip Jameson <philip.j@hostdime.com>"
75 name_fixes['Søren Løvborg'] = "Søren Løvborg <sorenl@unity3d.com>"
75 name_fixes['Søren Løvborg'] = "Søren Løvborg <sorenl@unity3d.com>"
76 name_fixes['Thomas De Schampheleire'] = "Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>"
76 name_fixes['Thomas De Schampheleire'] = "Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>"
77 name_fixes['Weblate'] = "<>"
77 name_fixes['Weblate'] = "<>"
78 name_fixes['xpol'] = "xpol <xpolife@gmail.com>"
78 name_fixes['xpol'] = "xpol <xpolife@gmail.com>"
79
79
General Comments 0
You need to be logged in to leave comments. Login now