From 54c4bcf933d12c1bde9262bd0557398c58fa3626 Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sun, 14 Jul 2013 11:50:13 +0200 Subject: [PATCH] prep for release of 0.5.1. --- HISTORY.rst | 10 +++++++++- djadmin2/__init__.py | 2 +- docs/conf.py | 2 +- setup.py | 20 +++++++++++++++++++- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 7ed63f6..e4de61d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,10 +3,18 @@ History 0.5.1 (2013-07-08) + * No longer pinning dependencies on specific versions + * `Documentation on built-in views`_ shows context variables. * Added django-filter to dependency list * Problem with related_name resolved * Fixed the height of the change_form - * FAQ added + * Example app actually shows added content + * Pull requests going forward are internationalized_ + * FAQ_ begun + +.. _`internationalized`: https://django-admin2.readthedocs.org/en/latest/contributing.html#internationalize +.. _`Documentation on built-in views`: https://django-admin2.readthedocs.org/en/latest/ref/built-in-views.html +.. _faq: https://django-admin2.readthedocs.org/en/latest/faq.html 0.5.0 (2013-07-08) diff --git a/djadmin2/__init__.py b/djadmin2/__init__.py index 3084924..1cfb9eb 100644 --- a/djadmin2/__init__.py +++ b/djadmin2/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import division, absolute_import, unicode_literals -__version__ = '0.5.0' +__version__ = '0.5.1' __author__ = 'Daniel Greenfeld & Contributors' diff --git a/docs/conf.py b/docs/conf.py index 17fb2a2..13092ed 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -70,7 +70,7 @@ copyright = u'2013, Daniel Greenfeld' # The short X.Y version. version = '0.5' # The full version, including alpha/beta/rc tags. -release = '0.5.0' +release = '0.5.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 45e6cb6..866d3a9 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ from setuptools import setup import re import os import sys +import string def get_author(package): @@ -48,6 +49,23 @@ def get_package_data(package): return {package: filepaths} +def remove_screenshots(text): + """ + Removes the section with screenshots since PyPI doesn't like them. + """ + outputting = True + new_text = "" + for line in text.splitlines(): + if line.startswith("Screenshots"): + outputting = False + continue + if len(line) and line[0] in string.ascii_letters: + outputting = True + if outputting: + new_text += line + return new_text + + author = get_author('djadmin2') version = get_version('djadmin2') @@ -59,7 +77,7 @@ if sys.argv[-1] == 'publish': print(" git push --tags") sys.exit() -LONG_DESCRIPTION = open('README.rst').read() +LONG_DESCRIPTION = remove_screenshots(open('README.rst').read()) HISTORY = open('HISTORY.rst').read() setup(