#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs import djangopypi from setuptools import setup, find_packages from distutils.core import Command from subprocess import call class devserver(Command): """ Convenience command to sync the database and run a development server. $ python setup.py runserver """ description = "run the django development server" # Must be overridden even though we don't need them user_options = [] initialize_options = finalize_options = lambda self: None def run(self): environ = os.environ.copy() environ['DJANGO_SETTINGS_MODULE'] = 'chishop.settings' call(['django-admin.py', 'syncdb'], env=environ) call(['django-admin.py', 'runserver'], env=environ) setup( name='chishop', version=djangopypi.__version__, packages=find_packages(), description='Simple PyPI server written in Django.', author='Ask Solem', author_email='askh@opera.com', url="http://ask.github.com/chishop", include_package_data=True, install_requires=[ 'django>=1.0', 'docutils', 'django-registration==0.8-alpha-1', 'django-tagging>=0.3', ], dependency_links=[ 'http://bitbucket.org/ubernostrum/django-registration/downloads', ], cmdclass={ 'devserver': devserver, }, classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Operating System :: OS Independent", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Topic :: System :: Software Distribution", "Programming Language :: Python", ], long_description=codecs.open('README', "r", "utf-8").read(), )