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
|
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/)
|
||||||
|
|
||||||
|
Release logic:
|
||||||
def get_version():
|
1. Remove "dev#" from current (this file, now).
|
||||||
version = '%s.%s' % VERSION[0:2]
|
2. git commit
|
||||||
if VERSION[2]:
|
3. git tag <version>
|
||||||
version += '.%s' % VERSION[2]
|
4. push to pypi + push --tags to github
|
||||||
if VERSION[3]:
|
5. bump the version, append ".dev0"
|
||||||
version += ' %s' % VERSION[3]
|
6. git commit
|
||||||
return version
|
7. push to github
|
||||||
|
"""
|
||||||
|
__version__ = "0.4.1.dev0"
|
||||||
|
|
||||||
|
|
||||||
# Proxied models need to have it's own ContentType
|
# 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
|
from setuptools import setup, find_packages
|
||||||
|
import polymorphic
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'django_polymorphic',
|
name = 'django_polymorphic',
|
||||||
version = '0.4.0',
|
version = polymorphic.__version__,
|
||||||
description = 'Seamless Polymorphic Inheritance for Django Models',
|
description = 'Seamless Polymorphic Inheritance for Django Models',
|
||||||
url = 'https://github.com/chrisglass/django_polymorphic',
|
url = 'https://github.com/chrisglass/django_polymorphic',
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue