Made the version number logic saner
parent
62d97f29b1
commit
9c5c6c5136
|
|
@ -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
|
||||
|
|
|
|||
3
setup.py
3
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',
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue