diff --git a/MANIFEST.in b/MANIFEST.in index c9564c9..c1f9b95 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include README +include README.rst recursive-include valueinlist_filter/templates * diff --git a/README.md b/README.rst similarity index 86% rename from README.md rename to README.rst index de1ff19..62ae5d2 100644 --- a/README.md +++ b/README.rst @@ -6,16 +6,11 @@ Queryset can be filtered by a given list on the django admin page, just like: qs Installation ------------ -.. code-block:: bash - - cd django-valueinlist-filter - python setup.py install + [sudo] pip install django-valueinlist-filter Add valueinlist_filter to settings.INSTALLED_APPS: -.. code-block:: python - INSTALLED_APPS = ( ... 'valueinlist_filter' @@ -23,8 +18,6 @@ Add valueinlist_filter to settings.INSTALLED_APPS: And then, set a CharField field in a model like this: -.. code-block:: python - class Model(models.Model): ... serial_number = models.CharField(max_length=32) @@ -32,7 +25,6 @@ And then, set a CharField field in a model like this: If you want to filter the **serial_number** field by a given value list(split string by space), you can bind ValueInListFilter to this field: -.. code-block:: python from valueinlist_filter.filter import ValueInListFilter from django.contrib import admin @@ -45,3 +37,5 @@ If you want to filter the **serial_number** field by a given value list(split st ) Finally, you will get a textarea form on the filter side bar, the textarea's change event will trigger form. + +Added a 'screenshot.png' picture. diff --git a/setup.py b/setup.py index 9eb1118..63a12e9 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,9 @@ setup( name='django-valueinlist-filter', - version='0.1', + version='0.1.3', description='Queryset can be filtered by a given list on the django admin page, just like: qs.filter(field__in=[list])', - long_description=open('README.md').read(-1), + long_description=open('README.rst').read(-1), author='Chris Chen', author_email='gzerone@gmail.com', url='http://github.com/gzeronet/django-valueinlist-filter', @@ -19,5 +19,18 @@ packages=find_packages(), include_package_data=True, zip_safe=False, - license = 'BSD', + classifiers=[ + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Framework :: Django', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Internet :: WWW/HTTP :: WSGI', + 'Topic :: Software Development :: Libraries :: Application Frameworks', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + 'Environment :: Web Environment', + 'Operating System :: OS Independent' + ], + license='License :: OSI Approved :: BSD License', )