kcws 1.5__tar.gz → 1.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcws
3
- Version: 1.5
3
+ Version: 1.7
4
4
  Summary: 超轻量级http框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/1
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
12
- Keywords: kcws1.5
12
+ Keywords: kcws1.7
13
13
  Platform: UNKNOWN
@@ -66,6 +66,30 @@ class kcwszip:
66
66
  elif '[Errno 2] No such file or directory: ' in stre:
67
67
  print('不是有效文件',stre)
68
68
  pass
69
+ elif '[WinError 3] 系统找不到指定的路径' in stre:
70
+ print('系统找不到指定的路径',stre)
71
+ pass
72
+ elif '文件名或扩展名太长' in stre:
73
+ if os.path.exists(diswjj):
74
+ try:
75
+ shutil.rmtree(diswjj)
76
+ except:pass
77
+ try:
78
+ zip_ref.close()
79
+ except:pass
80
+ if os.name == 'nt':
81
+ if not os.path.exists("c:/temp"):
82
+ os.makedirs("c:/temp", exist_ok=True)
83
+ newspath="c:/temp/"+md5(filename)
84
+ print('文件名或扩展名太长,正在复制到 '+newspath+' 重试')
85
+ tempname=newspath+'.zip'
86
+ if not os.path.exists(newspath):
87
+ os.makedirs(newspath, exist_ok=True)
88
+ shutil.copy(filename, tempname)
89
+ return kcwszip.unzip(tempname)
90
+ else:
91
+ print('stre',stre,filename)
92
+ raise Exception(e)
69
93
  else:
70
94
  if os.path.exists(diswjj):
71
95
  try:
@@ -74,6 +98,7 @@ class kcwszip:
74
98
  try:
75
99
  zip_ref.close()
76
100
  except:pass
101
+ print('stre',stre,filename)
77
102
  raise Exception(e)
78
103
  zip_ref.close()
79
104
  except Exception as e:
@@ -27,7 +27,7 @@ route['children']=[]
27
27
 
28
28
  kcws={}
29
29
  kcws['name']='kcws' #项目的名称
30
- kcws['version']='1.5' #项目版本
30
+ kcws['version']='1.7' #项目版本
31
31
  kcws['description']='超轻量级http框架' #项目的简单描述
32
32
  kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
33
33
  kcws['license']='MIT License' #开源协议 mit开源
@@ -201,11 +201,11 @@ def cllfunction():
201
201
  exit()
202
202
  for bs in serall:
203
203
  if 'kcws'==bs:
204
- response=requests.get("https://gitee.com/open_source_official_website/kcw/raw/master/kcw.zip")
204
+ response=requests.get("https://gitee.com/open_source_official_website/kcw/raw/master/kcws.zip")
205
205
  elif 'kcwebs'==bs:
206
- response=requests.get("https://gitee.com/open_source_official_website/kcweb/raw/develop/kcweb.zip")
206
+ response=requests.get("https://gitee.com/open_source_official_website/kcweb/raw/develop/kcwebs.zip")
207
207
  elif 'kcwebps'==bs:
208
- response=requests.get("https://gitee.com/open_source_official_website/kcwebplus/raw/develop/kcwebp.zip")
208
+ response=requests.get("https://gitee.com/open_source_official_website/kcwebplus/raw/develop/kcwebps.zip")
209
209
  f=open(bs+'.zip',"wb")
210
210
  f.write(response.content)
211
211
  f.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcws
3
- Version: 1.5
3
+ Version: 1.7
4
4
  Summary: 超轻量级http框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/1
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
12
- Keywords: kcws1.5
12
+ Keywords: kcws1.7
13
13
  Platform: UNKNOWN
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages,Extension
10
10
  class setupconfig:
11
11
  kcws={}
12
12
  kcws['name']='kcws' #项目的名称
13
- kcws['version']='1.5' #项目版本
13
+ kcws['version']='1.7' #项目版本
14
14
  kcws['description']='超轻量级http框架' #项目的简单描述
15
15
  kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
16
16
  kcws['license']='MIT License' #开源协议 mit开源
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes