##// 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 2 set -e
3 3 set -x
4 4
5 echo "Checking tools needed for uploading stuff"
6 pip freeze | grep '^Sphinx==' || pip install Sphinx
7 pip freeze | grep '^Sphinx-PyPI-upload==' || pip install Sphinx-PyPI-upload
5 echo "Install/verify tools needed for building and uploading stuff"
6 pip install --upgrade -e .
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"
10 hg purge --all dist
11 python2 setup.py build_sphinx
12 python2 setup.py compile_catalog # TODO: check for errors
14 echo "Make release build from clean checkout in build/"
15 rm -rf build dist
16 hg archive build
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 24 python2 setup.py sdist
14 25
15 echo "Verifying VERSION from kallithea/__init__.py"
26 echo "Verify VERSION from kallithea/__init__.py"
16 27 namerel=$(cd dist && echo Kallithea-*.tar.gz)
17 28 namerel=${namerel%.tar.gz}
18 29 version=${namerel#Kallithea-}
30 ls -l $(pwd)/dist/$namerel.tar.gz
19 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"
24 hg up -c .
25 hg revert -a -r null
26 hg up -C "'$version'&."
27 hg purge --all
33 echo "Verify dist file content"
34 ! tar tf dist/Kallithea-$version.tar.gz | grep "$namerel/node_modules/bootstrap/\$"
35
36 echo "Verify docs build"
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"
30 python2 setup.py compile_catalog
31 python2 setup.py sdist
41 Now, make sure
42 * the copyright and contributor lists have been updated
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"
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
48 EOT
37 49
38 echo "Now, make sure"
39 echo "* the copyright and contributor lists have been updated"
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
50 echo "Verify current revision is tagged for $version"
51 hg log -r "'$version'&." | grep .
45 52
46 53 echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: "
47 54 read answer
48 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 58 # See https://wiki.python.org/moin/PyPiDocumentationHosting
55 59 python2 setup.py build_sphinx upload_sphinx
56 60 xdg-open https://pythonhosted.org/Kallithea/
57 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 64 xdg-open https://readthedocs.org/projects/kallithea/
61 65 curl -X POST http://readthedocs.org/build/kallithea
62 66 xdg-open https://readthedocs.org/builds/kallithea/
63 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 73 name_fixes['Peter Vitt'] = "Peter Vitt <petervitt@web.de>"
74 74 name_fixes['philip.j@hostdime.com'] = "Philip Jameson <philip.j@hostdime.com>"
75 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 77 name_fixes['Weblate'] = "<>"
78 78 name_fixes['xpol'] = "xpol <xpolife@gmail.com>"
79 79
General Comments 0
You need to be logged in to leave comments. Login now