#!/bin/sh # # Written by Florian Diesch # # Updates may be available at # # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # You are free to do with it what ever you want. tmp=$(tempfile --prefix pypicats) zenity --progress --title 'Please wait' --auto-kill --pulsate \ --text 'Downnloading trove classifiers from PyPI' & pid=$! wget -q -O - 'http://pypi.python.org/pypi?%3Aaction=list_classifiers' | xargs -i -d '\n' printf "FALSE\n{}\n" > "$tmp" kill $pid zenity --title 'Trove Classifiers' --list --checklist --multiple \ --text 'Select trove classifiers' --column='' \ --column='Classifier' --separator "$(printf "\n ")" \ --height=800 --width=600 < "$tmp" | \ sed -es"/ *\(.*\)/'\1',/" rm "$tmp"