Made the version number logic saner

fix_request_path_info
Chris Glass 2013-04-10 14:09:46 +02:00
parent 62d97f29b1
commit 9c5c6c5136
2 changed files with 14 additions and 10 deletions

View File

@ -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 <version>
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

View File

@ -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',