Move package description to module docstring

This commit is contained in:
Peter Bittner 2017-10-20 01:11:29 +02:00
parent 4e8644fbdc
commit 9738f31688
2 changed files with 4 additions and 10 deletions

View file

@ -1,11 +1,5 @@
"""
Analytics service integration for Django
========================================
The django-analytical application integrates analytics services into a
Django_ project. See the ``docs`` directory for more information.
.. _Django: http://www.djangoproject.com/
Analytics service integration for Django projects
"""
__author__ = "Joost Cassee"

View file

@ -36,7 +36,7 @@ class TestCommand(Command):
cmdclass['test'] = TestCommand
def read(fname):
def read_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
@ -59,8 +59,8 @@ setup(
name='django-analytical',
version=package.__version__,
license=package.__license__,
description='Analytics service integration for Django projects',
long_description=read('README.rst'),
description=package.__doc__.strip(),
long_description=read_file('README.rst'),
author=package.__author__,
author_email=package.__email__,
packages=[