Skip to content

Commit

Permalink
Make makefile target 'upload' to use './foreach.sh'
Browse files Browse the repository at this point in the history
  • Loading branch information
javefang committed Jan 14, 2019
1 parent fd3b5ad commit ddfd736
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
@@ -1,5 +1,5 @@
# Package list, in order of ancestry
# removed pytest-qt-app
# removed pytest-qt-app
EXTRA_DEPS = pypandoc \
wheel \
coverage \
Expand Down Expand Up @@ -47,15 +47,9 @@ test:
./foreach.sh 'DEBUG=1 python setup.py test || touch ../FAILED-$$PKG'
bash -c "! compgen -G 'FAILED-*'"

upload:
upload:
pip install twine
for package in $(CHANGED_PACKAGES); do \
cd $$package; \
if [ -f common_setup.py ]; then \
twine upload $(UPLOAD_OPTS) dist/*; \
fi; \
cd ..; \
done
./foreach.sh --changed '[ -f common_setup.py ] && twine upload $(UPLOAD_OPTS) dist/*'

clean:
./foreach.sh 'rm -rf build dist *.xml *.egg-info .eggs htmlcov .cache $(COPY_FILES)'
Expand Down

0 comments on commit ddfd736

Please sign in to comment.