mttf 1.0.4__py3-none-any.whl → 1.0.6__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.
Potentially problematic release.
This version of mttf might be problematic. Click here for more details.
- mt/tf/version.py +1 -1
- mttf-1.0.6.data/scripts/dmt_twineu.sh +2 -0
- mttf-1.0.6.data/scripts/wml_twineu.sh +2 -0
- {mttf-1.0.4.dist-info → mttf-1.0.6.dist-info}/METADATA +10 -4
- {mttf-1.0.4.dist-info → mttf-1.0.6.dist-info}/RECORD +11 -12
- {mttf-1.0.4.dist-info → mttf-1.0.6.dist-info}/WHEEL +1 -1
- mttf-1.0.4.data/scripts/dmt_twineu.sh +0 -2
- mttf-1.0.4.data/scripts/twine_trusted.py +0 -76
- mttf-1.0.4.data/scripts/wml_twineu.sh +0 -2
- {mttf-1.0.4.data → mttf-1.0.6.data}/scripts/dmt_pipi.sh +0 -0
- {mttf-1.0.4.data → mttf-1.0.6.data}/scripts/wml_nexus.py +0 -0
- {mttf-1.0.4.data → mttf-1.0.6.data}/scripts/wml_pipi.sh +0 -0
- {mttf-1.0.4.dist-info → mttf-1.0.6.dist-info/licenses}/LICENSE +0 -0
- {mttf-1.0.4.dist-info → mttf-1.0.6.dist-info}/top_level.txt +0 -0
mt/tf/version.py
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mttf
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: A package to detect and monkey-patch TensorFlow, for Minh-Tri Pham
|
|
5
5
|
Home-page: https://github.com/inteplus/mttf
|
|
6
6
|
Author: ['Minh-Tri Pham']
|
|
7
7
|
Project-URL: Documentation, https://mtdoc.readthedocs.io/en/latest/mt.tf/mt.tf.html
|
|
8
8
|
Project-URL: Source Code, https://github.com/inteplus/mttf
|
|
9
9
|
License-File: LICENSE
|
|
10
|
-
Requires-Dist: mtbase>=4.
|
|
11
|
-
Requires-Dist: mtnet>=0.
|
|
10
|
+
Requires-Dist: mtbase>=4.32
|
|
11
|
+
Requires-Dist: mtnet>=0.3.1
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: home-page
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
Dynamic: project-url
|
|
16
|
+
Dynamic: requires-dist
|
|
17
|
+
Dynamic: summary
|
|
@@ -2,7 +2,7 @@ mt/tf/__init__.py,sha256=M8xiJNdrAUJZgiZTOQOdfkehjO-CYzGpoxh5HVGBkms,338
|
|
|
2
2
|
mt/tf/init.py,sha256=Hbp0-daCDTUEkQiDwNpbv2qqP7tr9qCyBFUafMklkos,1298
|
|
3
3
|
mt/tf/mttf_version.py,sha256=ha53i-H9pE-crufFttUECgXHwPvam07zMKzApUts1Gs,206
|
|
4
4
|
mt/tf/utils.py,sha256=Copl5VM0PpuFUchK-AcBuGO6QitDwHcEs4FruZb2GAI,2460
|
|
5
|
-
mt/tf/version.py,sha256=
|
|
5
|
+
mt/tf/version.py,sha256=JEvKa4gxQpH3SEqNXvgPPny8PYcB-3ywzFpjtP0yq24,206
|
|
6
6
|
mt/tf/keras_applications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
mt/tf/keras_applications/mobilenet_v3_split.py,sha256=GDEBHo-blR1Q3N8R89USZ8zDP0nq_oLzPNAnoIgkzgo,19305
|
|
8
8
|
mt/tf/keras_applications/mobilevit.py,sha256=FR1eMN4xg-yZ8Orr4ALOYmzCmkoBu7cVgTaK5sc4gsc,9806
|
|
@@ -19,14 +19,13 @@ mt/tfc/__init__.py,sha256=WnGNywMCwmmhWQaGqconT5f9n6IE5jDGflbD92E5iH0,8108
|
|
|
19
19
|
mt/tfg/__init__.py,sha256=6Ly2QImAyQTsg_ZszuAuK_L2n56v89Cix9yYmMVk0CM,304
|
|
20
20
|
mt/tfp/__init__.py,sha256=AQkGCkmDRwswEt3qoOSpxe-fZekx78sHHBs2ZVz33gc,383
|
|
21
21
|
mt/tfp/real_nvp.py,sha256=U9EmkXGqFcvtS2yeh5_RgbKlVKKlGFGklAb7Voyazz4,4440
|
|
22
|
-
mttf-1.0.
|
|
23
|
-
mttf-1.0.
|
|
24
|
-
mttf-1.0.
|
|
25
|
-
mttf-1.0.
|
|
26
|
-
mttf-1.0.
|
|
27
|
-
mttf-1.0.
|
|
28
|
-
mttf-1.0.
|
|
29
|
-
mttf-1.0.
|
|
30
|
-
mttf-1.0.
|
|
31
|
-
mttf-1.0.
|
|
32
|
-
mttf-1.0.4.dist-info/RECORD,,
|
|
22
|
+
mttf-1.0.6.data/scripts/dmt_pipi.sh,sha256=VG5FvmtuR7_v_zhd52hI0mbyiiPCW_TWIpB_Oce0zm4,145
|
|
23
|
+
mttf-1.0.6.data/scripts/dmt_twineu.sh,sha256=xr5z2xbSdI6TXBd8VBVjPcxPPmW5PWe77XQChVYhopY,151
|
|
24
|
+
mttf-1.0.6.data/scripts/wml_nexus.py,sha256=3J-HEwrujnqKQezoGStoGMuuraozWp4ytpp093BKV88,1372
|
|
25
|
+
mttf-1.0.6.data/scripts/wml_pipi.sh,sha256=wDX4_7oKcYbxyKJz-wWvbkUY0NEuBuf0MpBfpmjZk60,133
|
|
26
|
+
mttf-1.0.6.data/scripts/wml_twineu.sh,sha256=XUpqoU5txBQlx_5JmiiTsSBSdVTPWcFoDIkE47E-r8g,138
|
|
27
|
+
mttf-1.0.6.dist-info/licenses/LICENSE,sha256=e_JtcszdGZ2ZGfjcymTGrcxFj_9XPicZOVtnsrPvruk,1070
|
|
28
|
+
mttf-1.0.6.dist-info/METADATA,sha256=WkcrEnKKyDTbK2jQ9GQXiaRLQbdKf3tSNczZOfMHYPA,533
|
|
29
|
+
mttf-1.0.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
30
|
+
mttf-1.0.6.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
31
|
+
mttf-1.0.6.dist-info/RECORD,,
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#!python
|
|
2
|
-
|
|
3
|
-
import twine.repository
|
|
4
|
-
import twine.__main__
|
|
5
|
-
from twine import package as package_file
|
|
6
|
-
import requests
|
|
7
|
-
import requests_toolbelt
|
|
8
|
-
import rich.progress
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def _upload(self, package: package_file.PackageFile) -> requests.Response:
|
|
12
|
-
data = package.metadata_dictionary()
|
|
13
|
-
data.update(
|
|
14
|
-
{
|
|
15
|
-
# action
|
|
16
|
-
":action": "file_upload",
|
|
17
|
-
"protocol_version": "1",
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
data_to_send = self._convert_data_to_list_of_tuples(data)
|
|
22
|
-
|
|
23
|
-
print(f"Uploading {package.basefilename}")
|
|
24
|
-
|
|
25
|
-
with open(package.filename, "rb") as fp:
|
|
26
|
-
data_to_send.append(
|
|
27
|
-
("content", (package.basefilename, fp, "application/octet-stream"))
|
|
28
|
-
)
|
|
29
|
-
encoder = requests_toolbelt.MultipartEncoder(data_to_send)
|
|
30
|
-
|
|
31
|
-
with rich.progress.Progress(
|
|
32
|
-
"[progress.percentage]{task.percentage:>3.0f}%",
|
|
33
|
-
rich.progress.BarColumn(),
|
|
34
|
-
rich.progress.DownloadColumn(),
|
|
35
|
-
"•",
|
|
36
|
-
rich.progress.TimeRemainingColumn(
|
|
37
|
-
compact=True,
|
|
38
|
-
elapsed_when_finished=True,
|
|
39
|
-
),
|
|
40
|
-
"•",
|
|
41
|
-
rich.progress.TransferSpeedColumn(),
|
|
42
|
-
disable=self.disable_progress_bar,
|
|
43
|
-
) as progress:
|
|
44
|
-
task_id = progress.add_task("", total=encoder.len)
|
|
45
|
-
|
|
46
|
-
monitor = requests_toolbelt.MultipartEncoderMonitor(
|
|
47
|
-
encoder,
|
|
48
|
-
lambda monitor: progress.update(
|
|
49
|
-
task_id,
|
|
50
|
-
completed=monitor.bytes_read,
|
|
51
|
-
),
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
resp = self.session.post(
|
|
55
|
-
self.url,
|
|
56
|
-
data=monitor,
|
|
57
|
-
allow_redirects=False,
|
|
58
|
-
headers={"Content-Type": monitor.content_type},
|
|
59
|
-
verify=False, # MT-TODO: I added this line only
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
return resp
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def disable_server_certificate_validation():
|
|
66
|
-
"""Allow twine to just trust the hosts"""
|
|
67
|
-
twine.repository.Repository.set_certificate_authority = lambda *args, **kwargs: None
|
|
68
|
-
twine.repository.Repository._upload = _upload
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
def main():
|
|
72
|
-
disable_server_certificate_validation()
|
|
73
|
-
twine.__main__.main()
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
__name__ == "__main__" and main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|