Skip to content

Commit

Permalink
Advanced version identifiers for 1.6 cycle.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiro committed Oct 27, 2012
1 parent 11699ac commit 373df56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django/__init__.py
@@ -1,4 +1,4 @@
VERSION = (1, 5, 0, 'alpha', 0)
VERSION = (1, 6, 0, 'alpha', 0)

def get_version(*args, **kwargs):
# Don't litter django/__init__.py with all the get_version stuff.
Expand Down
18 changes: 15 additions & 3 deletions docs/conf.py
Expand Up @@ -52,11 +52,23 @@
# built documents.
#
# The short X.Y version.
version = '1.5'
version = '1.6'
# The full version, including alpha/beta/rc tags.
release = '1.5'
try:
from django import VERSION, get_version
except ImportError:
release = version
else:
def django_release():
pep386ver = get_version()
if VERSION[3:5] == ('alpha', 0) and 'dev' not in pep386ver:
return pep386ver + '.dev'
return pep386ver

release = django_release()

# The next version to be released
django_next_version = '1.6'
django_next_version = '1.7'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

1 comment on commit 373df56

@timgraham
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't work properly -- could you offer your input on the current ticket?

Please sign in to comment.