pypi cleanups

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-10-25 19:07:50 +02:00
parent 37db1e8c2f
commit d20ae0596d
3 changed files with 30 additions and 50 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ docs/man/man*/docbook-xsl.css
# Python: cache, distutils # Python: cache, distutils
__pycache__/ __pycache__/
MANIFEST MANIFEST
dist/

View file

@ -1,3 +1,3 @@
include docs/changelog docs/changelog-2.1 include docs/changelog docs/changelog-2.1
recursive-include docs/gfx *.png *.text recursive-include docs/gfx *.png *.text
recursive-include docs *.text recursive-include docs *.text *.html *.1 *.7

41
build
View file

@ -52,37 +52,6 @@ case "$1" in
"$0" manbuild "$0" manbuild
;; ;;
pypi-manifest)
# init MANIFEST
echo README > MANIFEST
# bin
echo bin/cdist >> MANIFEST
# main source
find cdist -type f >> MANIFEST
# conf
find conf -type f >> MANIFEST
# docs
ls docs/changelog* >> MANIFEST
find docs/gfx -type f >> MANIFEST
find docs/man/ -type f -name \*.text >> MANIFEST
find docs/man/ -type f -name \*.text.sh >> MANIFEST
# other
find other/ -type f >> MANIFEST
;;
pypi)
$0 clean
$0 pypi-manifest
python3 setup.py sdist
;;
manbuild) manbuild)
trap abort INT trap abort INT
abort() { abort() {
@ -119,6 +88,12 @@ case "$1" in
./docs/dev/releasechecklist ./docs/dev/releasechecklist
;; ;;
pypi)
$0 very-clean
$0 man
python3 setup.py sdist
;;
speeches) speeches)
cd "$SPEECHESDIR" cd "$SPEECHESDIR"
for speech in *tex; do for speech in *tex; do
@ -177,6 +152,10 @@ case "$1" in
rm -f MANIFEST rm -f MANIFEST
;; ;;
very-clean)
$0 clean
rm -rf cache/
;;
test) test)
shift # skip t shift # skip t