From 3a0133fc1a3f6e0c98a896e2db3fa609c45d6c19 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Wed, 6 Sep 2017 19:46:57 -0400 Subject: [PATCH] Adding pip_clean script --- CONTRIBUTING.rst | 6 +++--- scripts/pip_clean.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 scripts/pip_clean.sh diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 30772cc..bf0ed5a 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -1,6 +1,6 @@ ------------------------ -Contributor Guidlines ------------------------ +---------------------- +Contributor Guidelines +---------------------- Before you start ================ diff --git a/scripts/pip_clean.sh b/scripts/pip_clean.sh new file mode 100755 index 0000000..ef14788 --- /dev/null +++ b/scripts/pip_clean.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# Removes any lingering build/release files from the project directory + +find . -type f -name '*.pyc' -delete +find . -type f -name '*.pyo' -delete +find . -type d -name '__pycache__' -delete +find . -type d -name 'build' -delete +find . -type d -name 'dist' -delete +find . -type d -name '*.egg-info' -delete