Skip to content

Commit 63592fe

Browse files
committed
Updated version handling in docs and updated year.
1 parent 0e685bc commit 63592fe

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011, Jannis Leidel.
1+
Copyright (c) 2011-2012, Jannis Leidel.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

docs/conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,20 @@
4141

4242
# General information about the project.
4343
project = u'celery-haystack'
44-
copyright = u'2011, Jannis Leidel'
44+
copyright = u'2011-2012, Jannis Leidel'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
50-
# The short X.Y version.
51-
version = '0.4'
52-
# The full version, including alpha/beta/rc tags.
53-
release = '0.4'
50+
try:
51+
from celery_haystack import __version__
52+
# The short X.Y version.
53+
version = '.'.join(__version__.split('.')[:2])
54+
# The full version, including alpha/beta/rc tags.
55+
release = __version__
56+
except ImportError:
57+
version = release = 'dev'
5458

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

0 commit comments

Comments
 (0)