Skip to content

Commit e909609

Browse files
committed
remove duplicated version string
1 parent 0896f78 commit e909609

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include VERSION

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.5

docs/source/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
import sys
1616
import os
1717

18+
try:
19+
with open(os.path.join("..", "..", "VERSION"), "r") as version:
20+
version_txt = version.read().rstrip()
21+
except:
22+
version_txt = "not_in_sphinx"
23+
1824
# If extensions (or modules to document with autodoc) are in another directory,
1925
# add these directories to sys.path here. If the directory is relative to the
2026
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -53,9 +59,9 @@
5359
# built documents.
5460
#
5561
# The short X.Y version.
56-
version = '0.0.4'
62+
version = version_txt
5763
# The full version, including alpha/beta/rc tags.
58-
release = '0.0.4'
64+
release = version_txt
5965

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

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
'pyexcel>=0.1.7'
1313
]
1414

15+
with open("VERSION", "r") as version:
16+
version_txt = version.read().rstrip()
17+
1518
setup(
1619
name='pyexcel-webio',
1720
author="C. W.",
18-
version='0.0.4',
21+
version=version_txt,
1922
author_email="wangc_2011@hotmail.com",
2023
url="https://github.com/chfw/pyexcel-webio",
2124
description='A generic request and response interface for pyexcel web extensions.',

0 commit comments

Comments
 (0)