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
6 | 6 |
/dist
|
7 | 7 |
/docs/_site
|
8 | 8 |
/venv
|
|
9 |
README.rst
|
3 | 3 |
include requirements-dev.txt
|
4 | 4 |
include tox.ini
|
5 | 5 |
include *.md
|
|
6 |
exclude README.md
|
|
7 |
include README.rst
|
6 | 8 |
include compose/config/*.json
|
7 | 9 |
recursive-include contrib/completion *
|
8 | 10 |
recursive-include tests *
|
20 | 20 |
|
21 | 21 |
if [ -z "$(command -v jq 2> /dev/null)" ]; then
|
22 | 22 |
>&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."
|
24 | 24 |
exit 2
|
25 | 25 |
fi
|
26 | 26 |
|
|
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
|
27 | 33 |
|
28 | 34 |
API=https://api.github.com/repos
|
29 | 35 |
REPO=docker/compose
|
|
44 | 50 |
git tag $VERSION
|
45 | 51 |
git push $GITHUB_REPO $VERSION
|
46 | 52 |
|
47 | |
echo "Uploading sdist to pypi"
|
48 | |
python setup.py sdist
|
49 | |
|
50 | 53 |
echo "Uploading the docker image"
|
51 | 54 |
docker push docker/compose:$VERSION
|
52 | 55 |
|
|
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
|
53 | 60 |
if [ "$(command -v twine 2> /dev/null)" ]; then
|
54 | 61 |
twine upload ./dist/docker-compose-${VERSION}.tar.gz
|
55 | 62 |
else
|