django_sonic_screwdriver/management/commands/pypi:upload.py
from django.core.management.base import BaseCommand
from subprocess import call
class Command(BaseCommand):
help = "Upload project to pypi via twine."
requires_system_checks = False
def handle(self, *args, **options):
call(["twine", "upload", "dist/*"])