Codebase list docker-compose / 569ccba
Convert the README to rst and fix the logo url before packaging it up for pypi. Signed-off-by: Daniel Nephin <dnephin@docker.com> Daniel Nephin 8 years ago
3 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
66 /dist
77 /docs/_site
88 /venv
9 README.rst
33 include requirements-dev.txt
44 include tox.ini
55 include *.md
6 exclude README.md
7 include README.rst
68 include compose/config/*.json
79 recursive-include contrib/completion *
810 recursive-include tests *
2020
2121 if [ -z "$(command -v jq 2> /dev/null)" ]; then
2222 >&2 echo "$0 requires https://stedolan.github.io/jq/"
23 >&2 echo "Please install it and ake sure it is available on your \$PATH."
23 >&2 echo "Please install it and make sure it is available on your \$PATH."
2424 exit 2
2525 fi
2626
27
28 if [ -z "$(command -v pandoc 2> /dev/null)" ]; then
29 >&2 echo "$0 requires http://pandoc.org/"
30 >&2 echo "Please install it and make sure it is available on your \$PATH."
31 exit 2
32 fi
2733
2834 API=https://api.github.com/repos
2935 REPO=docker/compose
4450 git tag $VERSION
4551 git push $GITHUB_REPO $VERSION
4652
47 echo "Uploading sdist to pypi"
48 python setup.py sdist
49
5053 echo "Uploading the docker image"
5154 docker push docker/compose:$VERSION
5255
56 echo "Uploading sdist to pypi"
57 pandoc -f markdown -t rst README.md -o README.rst
58 sed -i -e 's/logo.png?raw=true/https:\/\/github.com\/docker\/compose\/raw\/master\/logo.png?raw=true/' README.rst
59 python setup.py sdist
5360 if [ "$(command -v twine 2> /dev/null)" ]; then
5461 twine upload ./dist/docker-compose-${VERSION}.tar.gz
5562 else