From 7d562511ba41a6428f13ec404902ed1fd0d7cf65 Mon Sep 17 00:00:00 2001 From: Chris Glass Date: Wed, 10 Apr 2013 14:18:55 +0200 Subject: [PATCH] Version 0.4.2 proper --- polymorphic/__init__.py | 15 --------------- polymorphic/__version__.py | 2 +- setup.py | 3 +-- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/polymorphic/__init__.py b/polymorphic/__init__.py index 3ba0021..d71f106 100644 --- a/polymorphic/__init__.py +++ b/polymorphic/__init__.py @@ -15,21 +15,6 @@ from showfields import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent from showfields import ShowFields, ShowFieldTypes, ShowFieldsAndTypes # import old names for compatibility -""" -See PEP 386 (https://www.python.org/dev/peps/pep-0386/) - -Release logic: - 1. Remove "dev#" from current (this file, now). - 2. git commit - 3. git tag - 4. push to pypi + push --tags to github - 5. bump the version, append ".dev0" - 6. git commit - 7. push to github -""" -__version__ = "0.4.1" - - # Monkey-patch Django < 1.5 to allow ContentTypes for proxy models. if django.VERSION[:2] < (1, 5): from django.contrib.contenttypes.models import ContentTypeManager diff --git a/polymorphic/__version__.py b/polymorphic/__version__.py index a4a9b3d..ce1350f 100644 --- a/polymorphic/__version__.py +++ b/polymorphic/__version__.py @@ -3,7 +3,7 @@ See PEP 386 (https://www.python.org/dev/peps/pep-0386/) Release logic: - 1. Remove "dev#" from current (this file, now). + 1. Remove "dev#" from current (this file, now AND setup.py!). 2. git commit 3. git tag 4. push to pypi + push --tags to github diff --git a/setup.py b/setup.py index ef0a79a..b41f2a8 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ from setuptools import setup, find_packages -import polymorphic setup( name = 'django_polymorphic', - version = polymorphic.__version__, + version ="0.4.2", # You must ALSO bump polymorphic.__version__ ! description = 'Seamless Polymorphic Inheritance for Django Models', url = 'https://github.com/chrisglass/django_polymorphic',