diff --git a/polymorphic/__init__.py b/polymorphic/__init__.py index 7f4f0fd..14bde64 100644 --- a/polymorphic/__init__.py +++ b/polymorphic/__init__.py @@ -14,16 +14,19 @@ from showfields import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent from showfields import ShowFields, ShowFieldTypes, ShowFieldsAndTypes # import old names for compatibility -VERSION = (1, 0, 0, 'beta') +""" +See PEP 386 (https://www.python.org/dev/peps/pep-0386/) - -def get_version(): - version = '%s.%s' % VERSION[0:2] - if VERSION[2]: - version += '.%s' % VERSION[2] - if VERSION[3]: - version += ' %s' % VERSION[3] - return version +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.dev0" # Proxied models need to have it's own ContentType diff --git a/setup.py b/setup.py index 5442bff..ef0a79a 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ from setuptools import setup, find_packages +import polymorphic setup( name = 'django_polymorphic', - version = '0.4.0', + version = polymorphic.__version__, description = 'Seamless Polymorphic Inheritance for Django Models', url = 'https://github.com/chrisglass/django_polymorphic',