Add cookiecutter template for module
This commit is contained in:
@@ -4,7 +4,7 @@ set -eu
|
||||
OUTPUTDIR=`realpath "${1}"`
|
||||
mkdir -p "${OUTPUTDIR}"
|
||||
|
||||
find . -path '*/doc/conf.py' | while read path; do
|
||||
find . -name 'cookiecutter*' -prune -o -path '*/doc/conf.py' -print | while read path; do
|
||||
path=`dirname "${path}"`
|
||||
path=`dirname "${path}"`
|
||||
package=`basename "${path}"`
|
||||
|
||||
@@ -4,6 +4,6 @@ set -eu
|
||||
PACKAGES=`realpath "${1}"`
|
||||
mkdir -p "${PACKAGES}"
|
||||
|
||||
find . -name setup.py | while read path; do
|
||||
find . -name 'cookiecutter*' -prune -o -name setup.py -print | while read path; do
|
||||
(cd "`dirname ${path}`" && python setup.py sdist && cp dist/* "${PACKAGES}")
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user