Skip to content

Commit

Permalink
Merge pull request #242 from sadrasabouri/dev
Browse files Browse the repository at this point in the history
Issue #241 solved!
  • Loading branch information
sepandhaghighi committed Aug 7, 2019
2 parents d8eed18 + 13256fc commit 60b4cbc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

#### Python Version

#### PyCM Version
#### PyCM Version (Use : `pycm.__version__`)
6 changes: 3 additions & 3 deletions Otherfiles/version_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys
import codecs
Failed = 0
VERSION = "2.4"
PYCM_VERSION = "2.4"


SETUP_ITEMS = [
Expand All @@ -24,7 +24,7 @@
"pip install pycm=={0}",
"pip3 install pycm=={0}"]
HTML_ITEMS = ["Version {0}"]
PARAMS_ITEMS = ['VERSION = "{0}"']
PARAMS_ITEMS = ['PYCM_VERSION = "{0}"']
FILES = {
"setup.py": SETUP_ITEMS, "README.md": README_ITEMS, "CHANGELOG.md": CHANGELOG_ITEMS, os.path.join(
"Document", "Document.ipynb"): DOCUMENT_ITEMS, os.path.join(
Expand Down Expand Up @@ -59,7 +59,7 @@ def print_result(failed=False):
file_content = codecs.open(
file_name, "r", "utf-8", 'ignore').read()
for test_item in FILES[file_name]:
if file_content.find(test_item.format(VERSION)) == -1:
if file_content.find(test_item.format(PYCM_VERSION)) == -1:
print("Incorrect version tag in " + file_name)
Failed += 1
break
Expand Down
1 change: 1 addition & 0 deletions pycm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
from .pycm_compare import *
from .pycm_util import *
from .pycm_interpret import *
__version__ = PYCM_VERSION
4 changes: 2 additions & 2 deletions pycm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
sys.exit(error_flag)
else:
tprint("pycm")
tprint("V:" + VERSION)
tprint("V:" + PYCM_VERSION)
pycm_help()
else:
tprint("pycm")
tprint("V:" + VERSION)
tprint("V:" + PYCM_VERSION)
pycm_help()
2 changes: 1 addition & 1 deletion pycm/pycm_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def save_html(
class_list,
self.recommended_list,
alt_link))
html_file.write(html_end(VERSION))
html_file.write(html_end(PYCM_VERSION))
html_file.close()
if address:
message = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion pycm/pycm_param.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""Parameters and constants."""
VERSION = "2.4"
PYCM_VERSION = "2.4"


OVERVIEW = '''
Expand Down

0 comments on commit 60b4cbc

Please sign in to comment.