8000 Use the same patchlevel module to get the version · endikagil/python-docs-es@8b608b5 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b608b5

Browse files
committed
Use the same patchlevel module to get the version
Pass the real path from where it has to take the version.
1 parent 9570536 commit 8b608b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
sys.path.append(os.path.abspath('cpython/Doc'))
2222
from conf import *
2323

24-
version = '3.7'
25-
release = '3.7.7'
24+
# Call patchlevel with the proper path to get the version from
25+
# instead of hardcoding it
26+
import patchlevel
27+
version, release = patchlevel.get_header_version_info('cpython/Doc')
2628

2729
project = 'Python en Español'
2830
copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y')

0 commit comments

Comments
 (0)
0