Skip to content

Commit

Permalink
Add --no-dir-entries to zip file creation to prune empty directories (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jgasthaus committed Jun 5, 2019
1 parent 8ddf21a commit 430385c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -60,7 +60,7 @@ compile_notebooks:

dist_notebooks: compile_notebooks
cd docs/examples && \
find * -type d -prune | grep -v 'tests\|__pycache__' | xargs -t -n 1 -I{} zip -r {}.zip {} -x "*.md" -x "__pycache__" -x "*.pyc" -x "*.txt" -x "*.log" -x "*.params" -x "*.npz" -x "*.json"
find * -type d -prune | grep -v 'tests\|__pycache__' | xargs -t -n 1 -I{} zip --no-dir-entries -r {}.zip {} -x "*.md" -x "__pycache__" -x "*.pyc" -x "*.txt" -x "*.log" -x "*.params" -x "*.npz" -x "*.json"

release: dist_notebooks
python setup.py sdist

0 comments on commit 430385c

Please sign in to comment.