megfile 2.2.9.post3__py3-none-any.whl → 2.2.9.post5__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.
megfile/errors.py CHANGED
@@ -90,9 +90,11 @@ s3_retry_exceptions = [
90
90
  botocore.exceptions.IncompleteReadError,
91
91
  botocore.exceptions.EndpointConnectionError,
92
92
  botocore.exceptions.ReadTimeoutError,
93
+ botocore.exceptions.ConnectTimeoutError,
93
94
  botocore.exceptions.ProxyConnectionError,
94
95
  botocore.exceptions.ConnectionClosedError,
95
96
  requests.exceptions.ReadTimeout,
97
+ requests.exceptions.ConnectTimeout,
96
98
  urllib3.exceptions.IncompleteRead,
97
99
  urllib3.exceptions.ProtocolError,
98
100
  urllib3.exceptions.ReadTimeoutError,
@@ -116,6 +118,7 @@ def s3_should_retry(error: Exception) -> bool:
116
118
 
117
119
  http_retry_exceptions = (
118
120
  requests.exceptions.ReadTimeout,
121
+ requests.exceptions.ConnectTimeout,
119
122
  requests.exceptions.ChunkedEncodingError,
120
123
  requests.exceptions.HTTPError,
121
124
  requests.exceptions.ProxyError,
megfile/sftp_path.py CHANGED
@@ -1159,6 +1159,7 @@ class SftpPath(URIPath):
1159
1159
  raise FileNotFoundError(
1160
1160
  'No such file: %r' % self.path_with_protocol)
1161
1161
  fileobj = self._client.open(self._real_path, mode, bufsize=buffering)
1162
+ fileobj.name = self.path
1162
1163
  if 'r' in mode and 'b' not in mode:
1163
1164
  return io.TextIOWrapper(
1164
1165
  fileobj, encoding=encoding, errors=errors) # type: ignore
megfile/version.py CHANGED
@@ -1 +1 @@
1
- VERSION = "2.2.9.post3"
1
+ VERSION = "2.2.9.post5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: megfile
3
- Version: 2.2.9.post3
3
+ Version: 2.2.9.post5
4
4
  Summary: Megvii file operation library
5
5
  Home-page: https://github.com/megvii-research/megfile
6
6
  Author: megvii
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  License-File: LICENSE.pyre
26
26
  Requires-Dist: boto3
27
- Requires-Dist: botocore >=1.13.0
27
+ Requires-Dist: botocore (>=1.13.0)
28
28
  Requires-Dist: requests
29
29
  Requires-Dist: paramiko
30
30
  Requires-Dist: tqdm
@@ -1,6 +1,6 @@
1
1
  megfile/__init__.py,sha256=MT8SIXsmEUvtSpd1GHv6e3fFfR1gRnlEdkNNqv3gngo,6534
2
2
  megfile/cli.py,sha256=iey0nNwPg9fu__NA3VbFD4a5iKgEIF-X1PL7Vi8fJeU,21080
3
- megfile/errors.py,sha256=ATLYeKgfppA3cb1lNwzWf0AcKAJksr6KXPglpJa2j2w,13198
3
+ megfile/errors.py,sha256=Sbx3UEKnzuyUmB1tFU9cZv61Yr4dRa79J6D0UMmkvj4,13323
4
4
  megfile/fs.py,sha256=OfY0z4GSl8fT3mDGdeqP2hWFsd1QJl-h8RkSbg6-M8I,11547
5
5
  megfile/fs_path.py,sha256=nptxiqKFElDxDligDynBNsf_DJltMTiHq-Z3asa_qg8,38835
6
6
  megfile/hdfs.py,sha256=aAkHobOO0nDcLoqj0tx_1tvgoLOCooTWuukq0pO-nQA,9156
@@ -12,12 +12,12 @@ megfile/pathlike.py,sha256=Ere6tMf2nsI7bDsZo0WBzl_2HRrS_4iKOpYp0zZltAU,29487
12
12
  megfile/s3.py,sha256=siBZfveWX1TDA4Mp41UvugcG3zlrhl_iPUbixUp1TmI,12352
13
13
  megfile/s3_path.py,sha256=7esS4XupMv0kowOwQewq_lCTD07c8VIQXofTYMbdgzg,90323
14
14
  megfile/sftp.py,sha256=JCkF2v1ZbHuIy_Bg3l85AesjFDimDzx9Gh1gRoMsahc,12524
15
- megfile/sftp_path.py,sha256=L3BrGx4q_0s7Dpe7ETTe3yfLWy0_Uc6t1byLV5dcE8c,50910
15
+ megfile/sftp_path.py,sha256=dXxH_aompswriUhJJ8VHoi4rC9PpkXYCU9v3yoMQVco,50943
16
16
  megfile/smart.py,sha256=YoRvxEaZ_C-A5gQlFEs4sGBJ6D26s0qYEBJEcny_jBg,33416
17
17
  megfile/smart_path.py,sha256=Y0UFh4J2ccydRY2W-wX2ubaf9zzJx1M2nf-VLBGe4mk,6749
18
18
  megfile/stdio.py,sha256=yRhlfUA2DHi3bq-9cXsSlbLCnHvS_zvglO2IYYyPsGc,707
19
19
  megfile/stdio_path.py,sha256=eQulTXUwHvUKA-5PKCGfVNiEPkJhG9YtVhtU58OcmoM,2873
20
- megfile/version.py,sha256=2AbGguXZzWAXtVwZcKv-pZIh_yo_PsDddcVdcq-E2H0,25
20
+ megfile/version.py,sha256=N78j2FzmS7ZRqpASyygNGUD0HBA-P1-3UvFDwNflNe4,25
21
21
  megfile/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  megfile/lib/base_prefetch_reader.py,sha256=Rspr7i3q8GlWeiqQ-4xMiu83tVz3kR40QH8mNlG5xqs,13220
23
23
  megfile/lib/combine_reader.py,sha256=XFSqEY5A5X5Uf7eQ6AXAzrvNteESSXvKNVPktGjo3KY,4546
@@ -42,10 +42,10 @@ megfile/lib/stdio_handler.py,sha256=QDWtcZxz-hzi-rqQUiSlR3NrihX1fjK_Rj9T2mdTFEg,
42
42
  megfile/lib/url.py,sha256=VbQLjo0s4AaV0iSk66BcjI68aUTcN9zBZ5x6-cM4Qvs,103
43
43
  megfile/utils/__init__.py,sha256=qdX8FF_dYFKwp1BIWx3JeSGd91s7AKUDSEpDv9tORcM,9162
44
44
  megfile/utils/mutex.py,sha256=-2KH3bNovKRd9zvsXq9n3bWM7rQdoG9hO7tUPxVG_Po,2538
45
- megfile-2.2.9.post3.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
- megfile-2.2.9.post3.dist-info/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
47
- megfile-2.2.9.post3.dist-info/METADATA,sha256=gkirYOO1S6CdN2-FO9BLvBLqVuM-oRmNiPg6l4tjzcM,8968
48
- megfile-2.2.9.post3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
49
- megfile-2.2.9.post3.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
50
- megfile-2.2.9.post3.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
51
- megfile-2.2.9.post3.dist-info/RECORD,,
45
+ megfile-2.2.9.post5.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
46
+ megfile-2.2.9.post5.dist-info/LICENSE.pyre,sha256=9lf5nT-5ZH25JijpYAequ0bl8E8z5JmZB1qrjiUMp84,1080
47
+ megfile-2.2.9.post5.dist-info/METADATA,sha256=6O_QO11jBRYQcU5jeXfIjK_gujavzRFs8Yz7BUjt-38,8970
48
+ megfile-2.2.9.post5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
49
+ megfile-2.2.9.post5.dist-info/entry_points.txt,sha256=M6ZWSSv5_5_QtIpZafy3vq7WuOJ_5dSGQQnEZbByt2Q,49
50
+ megfile-2.2.9.post5.dist-info/top_level.txt,sha256=i3rMgdU1ZAJekAceojhA-bkm3749PzshtRmLTbeLUPQ,8
51
+ megfile-2.2.9.post5.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.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5