Show More
@@ -1,30 +1,29 b'' | |||||
1 | include .coveragerc |
|
1 | include .coveragerc | |
2 | include Apache-License-2.0.txt |
|
2 | include Apache-License-2.0.txt | |
3 | include CONTRIBUTORS |
|
3 | include CONTRIBUTORS | |
4 | include COPYING |
|
4 | include COPYING | |
5 | include Jenkinsfile |
|
5 | include Jenkinsfile | |
6 | include LICENSE-MERGELY.html |
|
6 | include LICENSE-MERGELY.html | |
7 | include LICENSE.md |
|
7 | include LICENSE.md | |
8 | include MIT-Permissive-License.txt |
|
8 | include MIT-Permissive-License.txt | |
9 | include README.rst |
|
9 | include README.rst | |
10 | include dev_requirements.txt |
|
10 | include dev_requirements.txt | |
11 | include development.ini |
|
11 | include development.ini | |
12 | include pytest.ini |
|
12 | include pytest.ini | |
13 | include requirements.txt |
|
13 | include requirements.txt | |
14 | include tox.ini |
|
14 | include tox.ini | |
15 | include package.json |
|
15 | include package.json | |
16 | recursive-include docs * |
|
16 | recursive-include docs * | |
17 | recursive-include init.d * |
|
17 | recursive-include init.d * | |
18 | recursive-include kallithea/alembic * |
|
18 | recursive-include kallithea/alembic * | |
19 | include kallithea/bin/ldap_sync.conf |
|
19 | include kallithea/bin/ldap_sync.conf | |
20 | include kallithea/lib/paster_commands/template.ini.mako |
|
20 | include kallithea/lib/paster_commands/template.ini.mako | |
21 | recursive-include kallithea/i18n * |
|
21 | recursive-include kallithea/i18n * | |
22 | recursive-include kallithea/public * |
|
22 | recursive-include kallithea/public * | |
23 | recursive-include node_modules/bootstrap * |
|
|||
24 | recursive-include kallithea/templates * |
|
23 | recursive-include kallithea/templates * | |
25 | recursive-include kallithea/tests/fixtures * |
|
24 | recursive-include kallithea/tests/fixtures * | |
26 | recursive-include kallithea/tests/scripts * |
|
25 | recursive-include kallithea/tests/scripts * | |
27 | include kallithea/tests/models/test_dump_html_mails.ref.html |
|
26 | include kallithea/tests/models/test_dump_html_mails.ref.html | |
28 | include kallithea/tests/performance/test_vcs.py |
|
27 | include kallithea/tests/performance/test_vcs.py | |
29 | include kallithea/tests/vcs/aconfig |
|
28 | include kallithea/tests/vcs/aconfig | |
30 | recursive-include scripts * |
|
29 | recursive-include scripts * |
@@ -1,86 +1,85 b'' | |||||
1 | #!/bin/bash |
|
1 | #!/bin/bash | |
2 | set -e |
|
2 | set -e | |
3 | set -x |
|
3 | set -x | |
4 |
|
4 | |||
5 | cleanup() |
|
5 | cleanup() | |
6 | { |
|
6 | { | |
7 | echo "Removing venv $venv" |
|
7 | echo "Removing venv $venv" | |
8 | rm -rf "$venv" |
|
8 | rm -rf "$venv" | |
9 | } |
|
9 | } | |
10 |
|
10 | |||
11 | echo "Checking that you are NOT inside a virtualenv" |
|
11 | echo "Checking that you are NOT inside a virtualenv" | |
12 | [ -z "$VIRTUAL_ENV" ] |
|
12 | [ -z "$VIRTUAL_ENV" ] | |
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 | virtualenv -p python2 "$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 . |
|
22 | pip install --upgrade -e . | |
23 | pip install --upgrade -r dev_requirements.txt Sphinx-PyPI-upload |
|
23 | pip install --upgrade -r dev_requirements.txt Sphinx-PyPI-upload | |
24 |
|
24 | |||
25 | echo "Cleanup and update copyrights ... and clean checkout" |
|
25 | echo "Cleanup and update copyrights ... and clean checkout" | |
26 | scripts/run-all-cleanup |
|
26 | scripts/run-all-cleanup | |
27 | scripts/update-copyrights.py |
|
27 | scripts/update-copyrights.py | |
28 | hg up -cr . |
|
28 | hg up -cr . | |
29 |
|
29 | |||
30 | echo "Make release build from clean checkout in build/" |
|
30 | echo "Make release build from clean checkout in build/" | |
31 | rm -rf build dist |
|
31 | rm -rf build dist | |
32 | hg archive build |
|
32 | hg archive build | |
33 | cd build |
|
33 | cd build | |
34 |
|
34 | |||
35 | echo "Check MANIFEST.in" |
|
35 | echo "Check that each entry in MANIFEST.in match something" | |
36 |
sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | |
|
36 | sed -e 's/[^ ]*[ ]*\([^ ]*\).*/\1/g' MANIFEST.in | xargs ls -lad | |
37 |
|
37 | |||
38 | echo "Build dist" |
|
38 | echo "Build dist" | |
39 | python2 setup.py compile_catalog |
|
39 | python2 setup.py compile_catalog | |
40 | python2 setup.py sdist |
|
40 | python2 setup.py sdist | |
41 |
|
41 | |||
42 | echo "Verify VERSION from kallithea/__init__.py" |
|
42 | echo "Verify VERSION from kallithea/__init__.py" | |
43 | namerel=$(cd dist && echo Kallithea-*.tar.gz) |
|
43 | namerel=$(cd dist && echo Kallithea-*.tar.gz) | |
44 | namerel=${namerel%.tar.gz} |
|
44 | namerel=${namerel%.tar.gz} | |
45 | version=${namerel#Kallithea-} |
|
45 | version=${namerel#Kallithea-} | |
46 | ls -l $(pwd)/dist/$namerel.tar.gz |
|
46 | ls -l $(pwd)/dist/$namerel.tar.gz | |
47 | echo "Releasing Kallithea $version in directory $namerel" |
|
47 | echo "Releasing Kallithea $version in directory $namerel" | |
48 |
|
48 | |||
49 | echo "Verify dist file content" |
|
49 | echo "Verify dist file content" | |
50 | diff -u <((hg mani | grep -v '^\.hg') | 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 | diff -u <((hg mani | grep -v '^\.hg') | 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) | |
51 | ! tar tf dist/Kallithea-$version.tar.gz | grep "$namerel/node_modules/bootstrap/\$" |
|
|||
52 |
|
51 | |||
53 | echo "Verify docs build" |
|
52 | echo "Verify docs build" | |
54 | python2 setup.py build_sphinx # not used yet ... but we want to make sure it builds |
|
53 | python2 setup.py build_sphinx # not used yet ... but we want to make sure it builds | |
55 |
|
54 | |||
56 | cat - << EOT |
|
55 | cat - << EOT | |
57 |
|
56 | |||
58 | Now, make sure |
|
57 | Now, make sure | |
59 | * all tests are passing |
|
58 | * all tests are passing | |
60 | * release note is ready |
|
59 | * release note is ready | |
61 | * announcement is ready |
|
60 | * announcement is ready | |
62 | * source has been pushed to https://kallithea-scm.org/repos/kallithea |
|
61 | * source has been pushed to https://kallithea-scm.org/repos/kallithea | |
63 |
|
62 | |||
64 | EOT |
|
63 | EOT | |
65 |
|
64 | |||
66 | echo "Verify current revision is tagged for $version" |
|
65 | echo "Verify current revision is tagged for $version" | |
67 | hg log -r "'$version'&." | grep . |
|
66 | hg log -r "'$version'&." | grep . | |
68 |
|
67 | |||
69 | echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: " |
|
68 | echo -n "Enter \"pypi\" to upload Kallithea $version to pypi: " | |
70 | read answer |
|
69 | read answer | |
71 | [ "$answer" = "pypi" ] |
|
70 | [ "$answer" = "pypi" ] | |
72 |
|
71 | |||
73 | echo "Upload docs to pypi" |
|
72 | echo "Upload docs to pypi" | |
74 | # See https://wiki.python.org/moin/PyPiDocumentationHosting |
|
73 | # See https://wiki.python.org/moin/PyPiDocumentationHosting | |
75 | python2 setup.py build_sphinx upload_sphinx |
|
74 | python2 setup.py build_sphinx upload_sphinx | |
76 | xdg-open http://packages.python.org/Kallithea/installation.html |
|
75 | xdg-open http://packages.python.org/Kallithea/installation.html | |
77 |
|
76 | |||
78 | echo "Rebuild readthedocs for docs.kallithea-scm.org" |
|
77 | echo "Rebuild readthedocs for docs.kallithea-scm.org" | |
79 | xdg-open https://readthedocs.org/projects/kallithea/ |
|
78 | xdg-open https://readthedocs.org/projects/kallithea/ | |
80 | curl -X POST http://readthedocs.org/build/kallithea |
|
79 | curl -X POST http://readthedocs.org/build/kallithea | |
81 | xdg-open https://readthedocs.org/builds/kallithea/ |
|
80 | xdg-open https://readthedocs.org/builds/kallithea/ | |
82 | xdg-open http://docs.kallithea-scm.org/en/latest/ # or whatever the branch is |
|
81 | xdg-open http://docs.kallithea-scm.org/en/latest/ # or whatever the branch is | |
83 |
|
82 | |||
84 | extraargs=${EMAIL:+--identity=$EMAIL} |
|
83 | extraargs=${EMAIL:+--identity=$EMAIL} | |
85 | python2 setup.py sdist upload --sign $extraargs |
|
84 | python2 setup.py sdist upload --sign $extraargs | |
86 | xdg-open https://pypi.python.org/pypi/Kallithea |
|
85 | xdg-open https://pypi.python.org/pypi/Kallithea |
General Comments 0
You need to be logged in to leave comments.
Login now