comparison scripts/make-release @ 8368:e5ccabbc3cd7 stable

release: merge default to stable for 0.6.0
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sat, 02 May 2020 21:20:43 +0200
parents 89e9aef9b983
children 61bd04b90f58
comparison
equal deleted inserted replaced
8320:b1b1f69b1f28 8368:e5ccabbc3cd7
13 13
14 venv=$(mktemp -d --tmpdir kallithea-release-XXXXX) 14 venv=$(mktemp -d --tmpdir kallithea-release-XXXXX)
15 trap cleanup EXIT 15 trap cleanup EXIT
16 16
17 echo "Setting up a fresh virtualenv in $venv" 17 echo "Setting up a fresh virtualenv in $venv"
18 virtualenv -p python2 "$venv" 18 python3 -m venv "$venv"
19 . "$venv/bin/activate" 19 . "$venv/bin/activate"
20 20
21 echo "Install/verify tools needed for building and uploading stuff" 21 echo "Install/verify tools needed for building and uploading stuff"
22 pip install --upgrade -e . -r dev_requirements.txt twine python-ldap python-pam 22 pip install --upgrade -e . -r dev_requirements.txt twine python-ldap python-pam
23 23
33 33
34 echo "Check that each entry in MANIFEST.in match something" 34 echo "Check that each entry in MANIFEST.in match something"
35 sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | xargs ls -lad 35 sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | xargs ls -lad
36 36
37 echo "Build dist" 37 echo "Build dist"
38 python2 setup.py compile_catalog 38 python3 setup.py compile_catalog
39 python2 setup.py sdist 39 python3 setup.py sdist
40 40
41 echo "Verify VERSION from kallithea/__init__.py" 41 echo "Verify VERSION from kallithea/__init__.py"
42 namerel=$(cd dist && echo Kallithea-*.tar.gz) 42 namerel=$(cd dist && echo Kallithea-*.tar.gz)
43 namerel=${namerel%.tar.gz} 43 namerel=${namerel%.tar.gz}
44 version=${namerel#Kallithea-} 44 version=${namerel#Kallithea-}
47 47
48 echo "Verify dist file content" 48 echo "Verify dist file content"
49 diff -u <((hg mani | grep -v '^\.hg\|^kallithea/i18n/en/LC_MESSAGES/kallithea.mo$') | LANG=C sort) <(tar tf dist/Kallithea-$version.tar.gz | sed "s|^$namerel/||" | grep . | grep -v '^kallithea/i18n/.*/LC_MESSAGES/kallithea.mo$\|^Kallithea.egg-info/\|^PKG-INFO$\|/$' | LANG=C sort) 49 diff -u <((hg mani | grep -v '^\.hg\|^kallithea/i18n/en/LC_MESSAGES/kallithea.mo$') | LANG=C sort) <(tar tf dist/Kallithea-$version.tar.gz | sed "s|^$namerel/||" | grep . | grep -v '^kallithea/i18n/.*/LC_MESSAGES/kallithea.mo$\|^Kallithea.egg-info/\|^PKG-INFO$\|/$' | LANG=C sort)
50 50
51 echo "Verify docs build" 51 echo "Verify docs build"
52 python2 setup.py build_sphinx # the results are not actually used, but we want to make sure it builds 52 python3 setup.py build_sphinx # the results are not actually used, but we want to make sure it builds
53 53
54 echo "Shortlog for inclusion in the release announcement" 54 echo "Shortlog for inclusion in the release announcement"
55 scripts/shortlog.py "only('.', branch('stable') & tagged() & public() & not '.')" 55 scripts/shortlog.py "only('.', branch('stable') & tagged() & public() & not '.')"
56 56
57 cat - << EOT 57 cat - << EOT