diff --git a/DOCS.rst b/DOCS.rst index d0974e0..4997ace 100644 --- a/DOCS.rst +++ b/DOCS.rst @@ -239,7 +239,7 @@ Example child_models = ( (ModelB, ModelBAdmin), (ModelC, ModelCAdmin), - } + ) # Only the parent needs to be registered: admin.site.register(ModelA, ModelAParentAdmin) diff --git a/MANIFEST.in b/MANIFEST.in index b4ae8d0..25899f9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,4 @@ include README.rst include LICENSE include DOCS.rst include CHANGES.rst -recursive-include polymorphic/templates *.html +recursive-include polymorphic/templates * diff --git a/setup.py b/setup.py index 7beb24f..9e343d2 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,26 @@ -from distutils.core import setup +from setuptools import setup, find_packages setup( name = 'django_polymorphic', version = '0.2', description = 'Seamless Polymorphic Inheritance for Django Models', + url = 'https://github.com/chrisglass/django_polymorphic', + author = 'Bert Constantin', author_email = 'bert.constantin@gmx.de', + maintainer = 'Christopher Glass', maintainer_email = 'tribaal@gmail.com', - url = 'https://github.com/chrisglass/django_polymorphic', - packages = [ - 'polymorphic', - 'polymorphic.templatetags', - ], + + packages = find_packages(), + package_data = { + 'polymorphic': [ + 'templates/admin/polymorphic/*.html', + ], + }, + + install_requires=['setuptools'], + classifiers=[ 'Framework :: Django', 'Intended Audience :: Developers',