File: clean.sh

package info (click to toggle)
pyroon 0.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: python: 1,660; sh: 135; makefile: 4
file content (15 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -euf -o pipefail

SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$SELF_DIR/.."

if [[ `env | grep VIRTUAL_ENV` ]]; then
  echo "Error: deactivate your venv first."
  exit 1
fi

find . -regex '^.*\(__pycache__\|\.py[co]\)$' -delete
rm .coverage .eggs .tox build dist withings*.egg-info .venv venv -rf

echo "Clean complete."