Commit 6aad05314c792094f2d3343d6f4dfffa525383a5
Committed by
Claude Paroz
1 parent
53e05164
Added changelog file HISTORY.rst (#89)
Fixes #86. * Added HISTORY.rst to the repo and backfilled it for all the releases down to 1.6.0 * Updated setup.py to copy the `long_description` strategy [from cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/setup.py), which pushes the changelog to PyPI so it's easy to find
Showing
3 changed files
with
66 additions
and
7 deletions
HISTORY.rst
0 → 100644
| 1 | +.. :changelog: | ||
| 2 | + | ||
| 3 | +History | ||
| 4 | +======= | ||
| 5 | + | ||
| 6 | +Pending | ||
| 7 | +------- | ||
| 8 | + | ||
| 9 | +* New release notes here | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +1.7.1 (2016-05-03) | ||
| 13 | +------------------ | ||
| 14 | + | ||
| 15 | +* ``get_comment_list`` now returns a ``QuerySet`` instead of a ``list``. | ||
| 16 | +* Isolated abstract models outside of models.py so they can be imported without | ||
| 17 | + triggering Django's deprecation warning about models living outside of a | ||
| 18 | + 'models' module. | ||
| 19 | +* Updated translations. | ||
| 20 | + | ||
| 21 | +1.7.0 (2016-03-29) | ||
| 22 | +------------------ | ||
| 23 | + | ||
| 24 | +* Dropped Django 1.6 and Python 2.6 support | ||
| 25 | +* Improved usage of ``AppConfig`` functionality for custom models. | ||
| 26 | +* Added ``CommentAbstractModel`` as another abstract model layer for easier | ||
| 27 | + customization. | ||
| 28 | +* Avoided N+1 query problem for users on comments. | ||
| 29 | +* Made the moderation email subject translatable. | ||
| 30 | +* Added a database index to ``Comment.submit_date``, since it is used for the | ||
| 31 | + default ordering. | ||
| 32 | +* Fixed packaging so locale files are distributed. | ||
| 33 | +* Updated translations. | ||
| 34 | + | ||
| 35 | +1.6.2 (2016-12-10) | ||
| 36 | +------------------ | ||
| 37 | + | ||
| 38 | +* Fixed some Django deprecation warnings. | ||
| 39 | +* Setup translation system using Transifex. | ||
| 40 | +* Added missing South migration for the email length. | ||
| 41 | +* Updated translations. | ||
| 42 | + | ||
| 43 | +1.6.1 (2016-05-08) | ||
| 44 | +------------------ | ||
| 45 | + | ||
| 46 | +* Fixed migrations not working when installed as an egg. | ||
| 47 | + | ||
| 48 | + | ||
| 49 | +1.6.0 (2016-04-29) | ||
| 50 | +------------------ | ||
| 51 | + | ||
| 52 | +* Made ``CommentSecurityForm`` pass keyword arguments to its parent class. | ||
| 53 | +* Added ``COMMENTS_TIMEOUT`` setting to configure the timeout for | ||
| 54 | + ``CommentSecurityForm``. | ||
| 55 | +* Migrated ``Comment.user_email`` to 254 characters. | ||
| 56 | +* Moved South migrations to ``south_migrations`` folder so they can exist with | ||
| 57 | + Django 1.7 migrations. | ||
| 58 | +* Added Django 1.9 compatibility, dropped support for Django 1.5. |
| 1 | -import os | ||
| 2 | from setuptools import setup, find_packages | 1 | from setuptools import setup, find_packages |
| 3 | 2 | ||
| 4 | -try: | ||
| 5 | - f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) | ||
| 6 | - long_description = f.read().strip() | ||
| 7 | - f.close() | ||
| 8 | -except IOError: | ||
| 9 | - long_description = None | 3 | +with open('README.rst') as readme_file: |
| 4 | + readme = readme_file.read() | ||
| 5 | + | ||
| 6 | +with open('HISTORY.rst') as history_file: | ||
| 7 | + history = history_file.read() | ||
| 8 | + | ||
| 9 | +long_description = readme + history | ||
| 10 | 10 | ||
| 11 | setup( | 11 | setup( |
| 12 | name='django-contrib-comments', | 12 | name='django-contrib-comments', |
Please
register
or
login
to post a comment