mttf 1.0.5__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 CHANGED
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 0
3
- PATCH_VERSION = 5
3
+ PATCH_VERSION = 6
4
4
  version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
5
5
  __all__ = ['MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_VERSION', 'version']
@@ -0,0 +1,2 @@
1
+ #/!bin/bash
2
+ wml_nexus.py uv-publish --url https://localhost:5443/repository/minhtri-pypi-dev-hosted/ --username minhtri --password Winnow2019python $@
@@ -0,0 +1,2 @@
1
+ #/!bin/bash
2
+ wml_nexus.py uv-publish --url https://localhost:5443/repository/ml-py-repo/ --username minhtri --password Winnow2019python $@
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mttf
3
- Version: 1.0.5
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.26
11
- Requires-Dist: mtnet>=0.2
10
+ Requires-Dist: mtbase>=4.32
11
+ Requires-Dist: mtnet>=0.3.1
12
12
  Dynamic: author
13
13
  Dynamic: home-page
14
14
  Dynamic: license-file
@@ -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=guF7Z2LcnUUmlTbwZ5Q3tKbMKCatWkiyCJ2NLBcDOqw,206
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.5.data/scripts/dmt_pipi.sh,sha256=VG5FvmtuR7_v_zhd52hI0mbyiiPCW_TWIpB_Oce0zm4,145
23
- mttf-1.0.5.data/scripts/dmt_twineu.sh,sha256=ER8Z1it7hVdPtkZ0TA0SkzwqIQSUlFa_sO95H07ImTI,159
24
- mttf-1.0.5.data/scripts/twine_trusted.py,sha256=fYjqnMQ4rr1XXO3I4Vy0U1g6gJn4kFFSUi0r6iFfDd8,2217
25
- mttf-1.0.5.data/scripts/wml_nexus.py,sha256=3J-HEwrujnqKQezoGStoGMuuraozWp4ytpp093BKV88,1372
26
- mttf-1.0.5.data/scripts/wml_pipi.sh,sha256=wDX4_7oKcYbxyKJz-wWvbkUY0NEuBuf0MpBfpmjZk60,133
27
- mttf-1.0.5.data/scripts/wml_twineu.sh,sha256=FPBvsXM-81P11G2BCJtxVUBervfHQYYrXf0GjZeMt7w,146
28
- mttf-1.0.5.dist-info/licenses/LICENSE,sha256=e_JtcszdGZ2ZGfjcymTGrcxFj_9XPicZOVtnsrPvruk,1070
29
- mttf-1.0.5.dist-info/METADATA,sha256=JHacyTUFvXLyZIUC-NQNWnwgx27Vfv75Ed-iOo-o62I,531
30
- mttf-1.0.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
31
- mttf-1.0.5.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
32
- mttf-1.0.5.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,2 +0,0 @@
1
- #/!bin/bash
2
- wml_nexus.py twine_trusted.py upload --repository-url https://localhost:5443/repository/minhtri-pypi-dev-hosted/ -u minhtri -p Winnow2019python $@
@@ -1,72 +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
- print(f"Uploading {package.basefilename}")
13
-
14
- metadata = package.metadata_dictionary()
15
- data_to_send = self._convert_metadata_to_list_of_tuples(metadata)
16
- data_to_send.append((":action", "file_upload"))
17
- data_to_send.append(("protocol_version", "1"))
18
- with open(package.filename, "rb") as fp:
19
- data_to_send.append(
20
- (
21
- "content",
22
- (package.basefilename, fp, "application/octet-stream"),
23
- )
24
- )
25
- encoder = requests_toolbelt.MultipartEncoder(data_to_send)
26
-
27
- with rich.progress.Progress(
28
- "[progress.percentage]{task.percentage:>3.0f}%",
29
- rich.progress.BarColumn(),
30
- rich.progress.DownloadColumn(),
31
- "•",
32
- rich.progress.TimeRemainingColumn(
33
- compact=True,
34
- elapsed_when_finished=True,
35
- ),
36
- "•",
37
- rich.progress.TransferSpeedColumn(),
38
- disable=self.disable_progress_bar,
39
- ) as progress:
40
- task_id = progress.add_task("", total=encoder.len)
41
-
42
- monitor = requests_toolbelt.MultipartEncoderMonitor(
43
- encoder,
44
- lambda monitor: progress.update(
45
- task_id,
46
- completed=monitor.bytes_read,
47
- ),
48
- )
49
-
50
- resp = self.session.post(
51
- self.url,
52
- data=monitor,
53
- allow_redirects=False,
54
- headers={"Content-Type": monitor.content_type},
55
- verify=False, # MT-NOTE: I added this line only
56
- )
57
-
58
- return resp
59
-
60
-
61
- def disable_server_certificate_validation():
62
- """Allow twine to just trust the hosts"""
63
- twine.repository.Repository.set_certificate_authority = lambda *args, **kwargs: None
64
- twine.repository.Repository._upload = _upload
65
-
66
-
67
- def main():
68
- disable_server_certificate_validation()
69
- twine.__main__.main()
70
-
71
-
72
- __name__ == "__main__" and main()
@@ -1,2 +0,0 @@
1
- #/!bin/bash
2
- wml_nexus.py twine_trusted.py upload --repository-url https://localhost:5443/repository/ml-py-repo/ -u minhtri -p Winnow2019python $@
File without changes
File without changes
File without changes