From 3fc4c03276b0e15368da03eccb2b5d95e91c79a7 Mon Sep 17 00:00:00 2001 From: Joris Roovers Date: Tue, 18 Jun 2019 13:03:45 +0200 Subject: Updated dependencies - Updated most dependencies to latest (or newer) versions - Removed dependency pinning for Python 2.6 and 3.3 - Minor code-tweaks to deal with dependency changes - Added pypi download stats to `run_tests.sh -s` --- run_tests.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'run_tests.sh') diff --git a/run_tests.sh b/run_tests.sh index 97ab9c0..ced36ae 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -93,7 +93,7 @@ run_unit_tests(){ clean # py.test -s => print standard output (i.e. show print statement output) # -rw => print warnings - OMIT="*pypy*" + OMIT="*pypy*,*venv*,*virtualenv*,*gitlint/tests/*" if [ -n "$testargs" ]; then coverage run --omit=$OMIT -m pytest -rw -s "$testargs" else @@ -186,7 +186,7 @@ run_build_test(){ run_stats(){ clean # required for py.test to count properly echo "*** Code ***" - radon raw -s gitlint | tail -n 6 + radon raw -s gitlint | tail -n 11 echo "*** Docs ***" echo " Markdown: $(cat docs/*.md | wc -l | tr -d " ") lines" echo "*** Tests ***" @@ -200,6 +200,12 @@ run_stats(){ echo " First commit: $(git log --pretty="%aD" $(git rev-list --max-parents=0 HEAD))" echo " Contributors: $(git log --format='%aN' | sort -u | wc -l | tr -d ' ')" echo " Releases (tags): $(git tag --list | wc -l | tr -d ' ')" + # PyPi API: https://pypistats.org/api/ + echo "*** PyPi ***" + stats=$(curl -s https://pypistats.org/api/packages/gitlint/recent) + echo " Last Month: $(echo $stats | jq .data.last_month)" + echo " Last Week: $(echo $stats | jq .data.last_week)" + echo " Last Day: $(echo $stats | jq .data.last_day)" } clean(){ -- cgit v1.2.3