Skip to content

Commit c7bd926

Browse files
committed
Fix for Issue #30 v1.1 branch
1 parent 848d0c5 commit c7bd926

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

kepconfig/connectivity/tag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,6 @@ def get_full_tag_structure(server, path, recursive = False) -> dict:
510510
r['tag_groups'] = get_all_tag_groups(server, path)
511511
if recursive:
512512
for group in r['tag_groups']:
513-
res = get_full_tag_structure(server, path + '.' + group['common.ALLTYPES_NAME'])
513+
res = get_full_tag_structure(server, path + '.' + group['common.ALLTYPES_NAME'], recursive=recursive)
514514
group.update(res)
515515
return r

release.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
import os
33

4-
file_location = "kepconfig/__init__.py"
4+
file_location = "./kepconfig/__init__.py"
55
version_re_string = "([0-9]+)\.([0-9]+)\.([0-9]+(?:[ab][0-9])?)"
66
version_search = re.compile(r'__version__ = "'+ version_re_string + '"')
77
version_check = re.compile(version_re_string)
@@ -44,16 +44,17 @@ def release():
4444
if ans.lower() in ("y", "yes"):
4545
# os.system("rm -rf dist/*") #Linux
4646
os.system("RMDIR /S /Q dist") #Windows
47-
os.system("python3.10 -m build")
48-
ans = input("upload to pip?(Y/n)")
47+
os.system("python -m build")
48+
ans = input("Upload to pip?(Y/n)")
4949
if ans.lower() in ("y", "yes"):
50+
ans = input("Push to production?(Y=production pypi/n=test pypi)")
51+
if ans.lower() in ("y", "yes"):
52+
#Production PyPi Server
53+
os.system("python -m twine upload dist/*")
54+
else:
55+
# Test PyPi Server
56+
os.system("python -m twine upload --repository testpypi dist/*")
5057

51-
# Test PyPi Server
52-
os.system("python -m twine upload --repository testpypi dist/*")
53-
54-
#Production PyPi Server
55-
# os.system("python -m twine upload dist/*")
56-
57-
58+
5859
if __name__ == "__main__":
5960
release()

0 commit comments

Comments
 (0)