diff --git a/MANIFEST.in b/MANIFEST.in index cb94c4911..e557b69b4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,5 @@ recursive-include docs *.txt recursive-include docs *.html -prune docs/_build *.txt -prune docs/_build/_sources *.txt -prune docs/_build _sources +prune docs/_build/*.txt +prune docs/_build/_sources/*.txt +prune docs/_build/_sources diff --git a/regen-docs b/regen-docs index c435d943f..9ed1b5488 100755 --- a/regen-docs +++ b/regen-docs @@ -1,8 +1,14 @@ #!/bin/sh +CMD="$1" +if [ "$CMD" = "release" ] ; then + python -c 'import setuptools; __file__="setup.py"; execfile(__file__)' register sdist upload + CMD="publish" +fi + mkdir -p docs/_static docs/_build sphinx-build -E -b html docs/ docs/_build || exit 1 -if [ "$1" = "publish" ] ; then +if [ "$CMD" = "publish" ] ; then cd docs/_build echo "Uploading files..." tar czvf - . | ssh flow.openplans.org 'ssh acura.openplans.org "cd /www/pip.openplans.org/; tar xzvf -"' diff --git a/setup.cfg b/setup.cfg index 4b049f978..3c2fdf511 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [egg_info] -#tag_build = dev +tag_build = dev