Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
fc956d33
Commit
fc956d33
authored
Aug 13, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
let sphinx docs build read Cython version from Cython/__init__.py
parent
a46eb5df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
docs/conf.py
docs/conf.py
+14
-2
No files found.
docs/conf.py
View file @
fc956d33
...
...
@@ -12,6 +12,8 @@
# serve to show the default value.
import
sys
import
re
import
os.path
# If your extensions are in another directory, add it here.
sys
.
path
.
append
(
'sphinxext'
)
...
...
@@ -49,10 +51,20 @@ copyright = '2011, Stefan Behnel, Robert Bradshaw, Dag Sverre Seljebotn, Greg Ew
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
#
# The short X.Y version.
version
=
'0.15'
# The full version, including alpha/beta/rc tags.
release
=
'0.15'
try
:
_match_version
=
re
.
compile
(
r'^\
s*_*
version\
s*_*
\s*=\
s*[
"\']([^"\']+)["\'].*'
).
match
with
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'Cython'
,
'__init__.py'
))
as
_f
:
for
line
in
_f
:
_m
=
_match_version
(
line
)
if
_m
:
release
=
_m
.
group
(
1
)
break
except
:
pass
# The short X.Y version.
version
=
re
.
sub
(
'^([0-9]+[.][0-9]+).*'
,
'
\
g<
1
>'
,
release
)
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment