siat 3.7.3__py3-none-any.whl → 3.7.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
siat/common.py CHANGED
@@ -3836,6 +3836,8 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
3836
3836
  或python -m pip install --upgrade pip
3837
3837
  如果上述方法不适用,您可能需要重新安装Python,并确保在安装过程中选中了“Add Python to PATH”
3838
3838
  """
3839
+ DEBUG=False
3840
+
3839
3841
  print("Upgrading siat and related modules, please wait ... ...")
3840
3842
 
3841
3843
  #获取系统目录
@@ -3865,7 +3867,8 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
3865
3867
  if sp_list[-1] == 'anaconda3': break
3866
3868
 
3867
3869
  #生成pip命令字符串前半段,仅缺插件名
3868
- cmdstr=sp+sep_flag+'Scripts'+sep_flag+pipcmd+' '
3870
+ #cmdstr=sp+sep_flag+'Scripts'+sep_flag+pipcmd+' '
3871
+ cmdstr=sp+sep_flag+pipcmd+' '
3869
3872
 
3870
3873
  #检查是否使用镜像源
3871
3874
  if alternative == "":
@@ -3898,17 +3901,25 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
3898
3901
  for m in tqdm(module_list):
3899
3902
  #print("Upgrading",m,"... ...",end='')
3900
3903
  #print_progress_percent2(m,module_list,steps=5,leading_blanks=2)
3904
+ if DEBUG:
3905
+ print(" DEBUG: m={}".format(m))
3901
3906
 
3902
3907
  if alternative == "":
3903
3908
  cmdstr1=cmdstr+m
3904
3909
  else:
3905
3910
  cmdstr1=cmdstr+m+' '+alter_source
3906
- #print(cmdstr1)
3911
+ if DEBUG:
3912
+ print(" DEBUG: cmdstr1={}".format(cmdstr1))
3907
3913
 
3908
3914
  #proc=subprocess.run(cmdstr1.split(' '),stdout=subprocess.PIPE)
3909
- proc=subprocess.run(cmdstr1.split(' '))
3910
- rcode=proc.returncode
3911
- if rcode !=0: fail_list=fail_list+[m]
3915
+ try:
3916
+ proc=subprocess.run(cmdstr1.split(' '))
3917
+ rcode=proc.returncode
3918
+ if rcode !=0: fail_list=fail_list+[m]
3919
+ except:
3920
+ print(" #Error(upgrade_siat): executable file python not found in {}".format(sp))
3921
+ print(" Solution: find out the exact path where the executable file python locates")
3922
+ return
3912
3923
 
3913
3924
  if len(fail_list) == 0:
3914
3925
  print("All specified modules are successfully upgraded!")
@@ -3918,7 +3929,7 @@ def upgrade_siat(module_list=['siat','akshare','pandas','pandas_datareader', \
3918
3929
 
3919
3930
  if 'pip' in fail_list:
3920
3931
  print("Upgrading for pip, in Anaconda Prompt (Windows) or Terminal (Mac):")
3921
- print(" python -m pip install --upgrade pip")
3932
+ print(" python -m pip install --upgrade --user pip")
3922
3933
 
3923
3934
  return
3924
3935
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siat
3
- Version: 3.7.3
3
+ Version: 3.7.4
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
@@ -18,7 +18,7 @@ siat/capm_beta.py,sha256=cxXdRVBQBllhbfz1LeTJAIWvyRYhW54nhtNUXv4HwS0,29063
18
18
  siat/capm_beta2.py,sha256=-ZYYp1HK7SkfTR3vBKZ0QVC4Q_tbST2O4MGbX_V77J0,32031
19
19
  siat/capm_beta_test.py,sha256=ImR0c5mc4hIl714XmHztdl7qg8v1E2lycKyiqnFj6qs,1745
20
20
  siat/cmat_commons.py,sha256=Nj9Kf0alywaztVoMVeVVL_EZk5jRERJy8R8kBw88_Tg,38116
21
- siat/common.py,sha256=Ed89feCX9c7i_hbd_pcDk8h7Ie-VHOVKITSH4cKA02M,162842
21
+ siat/common.py,sha256=2Y51NN6n4FhkNXDRFnV9xPE2Z7XcjqcqaWtZLRaDmgQ,163283
22
22
  siat/compare_cross.py,sha256=3iP9TH2h3w27F2ARZc7FjKcErYCzWRc-TPiymOyoVtw,24171
23
23
  siat/compare_cross_test.py,sha256=xra5XYmQGEtfIZL2h-GssdH2hLdFIhG3eoCrkDrL3gY,3473
24
24
  siat/concepts_iwencai.py,sha256=m1YEDtECRT6FqtzlKm91pt2I9d3Z_XoP59BtWdRdu8I,3061
@@ -141,8 +141,8 @@ siat/valuation_china.py,sha256=CVp1IwIsF3Om0J29RGkyxZLt4n9Ug-ua_RKhLwL9fUQ,69624
141
141
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
142
142
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
143
143
  siat/yf_name.py,sha256=r0Q67cSMMlfebEkI9h9pdGlJCooEq7hw_3M5IUs4cSI,20081
144
- siat-3.7.3.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
145
- siat-3.7.3.dist-info/METADATA,sha256=CTwHox9UQtS4g3RRebTz5dH5GgC62g4WOxJr8mr1tEo,8009
146
- siat-3.7.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
147
- siat-3.7.3.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
148
- siat-3.7.3.dist-info/RECORD,,
144
+ siat-3.7.4.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
145
+ siat-3.7.4.dist-info/METADATA,sha256=Z5_tRV4Qco5cFw7n0OY1MUd17AVse6nzSrziWnY9PMI,8009
146
+ siat-3.7.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
147
+ siat-3.7.4.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
148
+ siat-3.7.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes