File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ Roundup release checklist:
32
32
3. Update version in:
33
33
CHANGES.txt (set date for version as well)
34
34
roundup/__init__.py
35
- website/www/index.txt
36
- website/www/conf.py (also update copyright)
35
+ website/www/index.txt (current stable version, release highlights)
36
+ website/www/conf.py (update copyright, version from __init__.py )
37
37
3a. Update license end date in COPYING.txt
38
38
3b. Update doc/acknowledgements.txt (add section for
39
39
release, churn contributers etc.). (Use hg churn -c -r ####..####)
Original file line number Diff line number Diff line change 23
23
24
24
25
25
# Read Roundup version by importing it from parent directory,
26
- # this ensures that 'unkown version' is inserted even if
26
+ # this ensures that 'unknown version' is inserted even if
27
27
# `roundup` is importable from other location in sys.path
28
28
SYSSAVE = sys .path
29
29
DOCROOT = os .path .abspath (os .path .dirname (__file__ ))
Original file line number Diff line number Diff line change 19
19
20
20
import sys , os
21
21
22
+ # Read Roundup version by importing it from root of checkout.
23
+ # this ensures that 'unknown version' is inserted even if
24
+ # `roundup` is importable from other location in sys.path
25
+ SYSSAVE = sys .path
26
+ DOCROOT = os .path .abspath (os .path .dirname (__file__ ) + "/.." )
27
+ sys .path = [os .path .dirname (DOCROOT )]
28
+ try :
29
+ from roundup import __version__ as VERSION
30
+ SHORTVER = '.' .join (VERSION .split ('.' , 2 )[:2 ])
31
+ except ImportError :
32
+ VERSION = SHORTVER = '(unknown version)'
33
+ finally :
34
+ sys .path = SYSSAVE
35
+
22
36
# If your extensions are in another directory, add it here. If the directory
23
37
# is relative to the documentation root, use os.path.abspath to make it
24
38
# absolute, like shown here.
55
69
# built documents.
56
70
#
57
71
# The short X.Y version.
58
- version = '2.3b2'
72
+ version = SHORTVER
59
73
# The full version, including alpha/beta/rc tags.
60
- release = '2.3.0b2'
74
+ release = VERSION
61
75
62
76
# The language for content autogenerated by Sphinx. Refer to documentation
63
77
# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments