maya-umbrella 0.6.0__tar.gz → 0.6.2__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.
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/PKG-INFO +4 -2
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/README.md +3 -1
- maya_umbrella-0.6.2/maya_umbrella/__version__.py +1 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/scanner.py +7 -3
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/pyproject.toml +2 -2
- maya_umbrella-0.6.0/maya_umbrella/__version__.py +0 -1
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/LICENSE +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/cleaner.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/collector.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/constants.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/defender.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/filesystem.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/delete_turtle.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/delete_unknown_plugin_node.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/fix_model_panel.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/fix_on_model_change_3dc.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/i18n.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/locales/en_US.json +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/locales/zh_CN.json +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/log.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/maya_funs.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/signatures.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/vaccine.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/vaccines/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/vaccines/vaccine1.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/vaccines/vaccine2.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/vaccines/vaccine3.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maya_umbrella
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: Check and fix maya virus.
|
|
5
5
|
Home-page: https://github.com/loonghao/maya_umbrella
|
|
6
6
|
License: MIT
|
|
@@ -43,7 +43,7 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
[](https://img.shields.io/badge/maya-2018-green)
|
|
44
44
|
|
|
45
45
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
46
|
-
[](#contributors-)
|
|
47
47
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
48
48
|
|
|
49
49
|
This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
|
|
@@ -193,6 +193,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
193
193
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lingyunfx"><img src="https://avatars.githubusercontent.com/u/73666629?v=4?s=100" width="100px;" alt="lingyunfx"/><br /><sub><b>lingyunfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=lingyunfx" title="Tests">⚠️</a></td>
|
|
194
194
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yjjjj"><img src="https://avatars.githubusercontent.com/u/12741735?v=4?s=100" width="100px;" alt="yjjjj"/><br /><sub><b>yjjjj</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Tests">⚠️</a> <a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Code">💻</a></td>
|
|
195
195
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/uncleschen"><img src="https://avatars.githubusercontent.com/u/37014389?v=4?s=100" width="100px;" alt="Unclechen"/><br /><sub><b>Unclechen</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=uncleschen" title="Tests">⚠️</a></td>
|
|
196
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/CGRnDStudio"><img src="https://avatars.githubusercontent.com/u/8320794?v=4?s=100" width="100px;" alt="andyvfx"/><br /><sub><b>andyvfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=CGRnDStudio" title="Code">💻</a></td>
|
|
197
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cundesi"><img src="https://avatars.githubusercontent.com/u/15829469?v=4?s=100" width="100px;" alt="cundesi"/><br /><sub><b>cundesi</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=cundesi" title="Code">💻</a></td>
|
|
196
198
|
</tr>
|
|
197
199
|
</tbody>
|
|
198
200
|
</table>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[](https://img.shields.io/badge/maya-2018-green)
|
|
19
19
|
|
|
20
20
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
21
|
-
[](#contributors-)
|
|
22
22
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
23
23
|
|
|
24
24
|
This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
|
|
@@ -168,6 +168,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
168
168
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lingyunfx"><img src="https://avatars.githubusercontent.com/u/73666629?v=4?s=100" width="100px;" alt="lingyunfx"/><br /><sub><b>lingyunfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=lingyunfx" title="Tests">⚠️</a></td>
|
|
169
169
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yjjjj"><img src="https://avatars.githubusercontent.com/u/12741735?v=4?s=100" width="100px;" alt="yjjjj"/><br /><sub><b>yjjjj</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Tests">⚠️</a> <a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Code">💻</a></td>
|
|
170
170
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/uncleschen"><img src="https://avatars.githubusercontent.com/u/37014389?v=4?s=100" width="100px;" alt="Unclechen"/><br /><sub><b>Unclechen</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=uncleschen" title="Tests">⚠️</a></td>
|
|
171
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/CGRnDStudio"><img src="https://avatars.githubusercontent.com/u/8320794?v=4?s=100" width="100px;" alt="andyvfx"/><br /><sub><b>andyvfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=CGRnDStudio" title="Code">💻</a></td>
|
|
172
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cundesi"><img src="https://avatars.githubusercontent.com/u/15829469?v=4?s=100" width="100px;" alt="cundesi"/><br /><sub><b>cundesi</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=cundesi" title="Code">💻</a></td>
|
|
171
173
|
</tr>
|
|
172
174
|
</tbody>
|
|
173
175
|
</table>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.2"
|
|
@@ -38,6 +38,7 @@ class MayaVirusScanner(object):
|
|
|
38
38
|
self.defender = None
|
|
39
39
|
self.output_path = output_path
|
|
40
40
|
self._failed_files = []
|
|
41
|
+
self._reference_files = []
|
|
41
42
|
self._fixed_files = []
|
|
42
43
|
# Custom env.
|
|
43
44
|
self._env = env or {
|
|
@@ -63,6 +64,8 @@ class MayaVirusScanner(object):
|
|
|
63
64
|
self.defender = defender
|
|
64
65
|
for maya_file in files:
|
|
65
66
|
self._fix(maya_file)
|
|
67
|
+
for ref in self._reference_files:
|
|
68
|
+
self._fix(ref)
|
|
66
69
|
return self._fixed_files
|
|
67
70
|
|
|
68
71
|
def scan_files_from_file(self, text_file):
|
|
@@ -88,7 +91,9 @@ class MayaVirusScanner(object):
|
|
|
88
91
|
maya_funs.open_maya_file(maya_file)
|
|
89
92
|
self.defender.collect()
|
|
90
93
|
except Exception:
|
|
94
|
+
self.logger.debug("failed to open maya file: {maya_file}".format(maya_file=maya_file))
|
|
91
95
|
self._failed_files.append(maya_file)
|
|
96
|
+
|
|
92
97
|
if self.defender.have_issues:
|
|
93
98
|
self.defender.fix()
|
|
94
99
|
backup_path = get_backup_path(maya_file, root_path=self.output_path)
|
|
@@ -96,6 +101,5 @@ class MayaVirusScanner(object):
|
|
|
96
101
|
shutil.copy2(maya_file, backup_path)
|
|
97
102
|
cmds.file(s=True, f=True)
|
|
98
103
|
self._fixed_files.append(maya_file)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
self._fix(ref)
|
|
104
|
+
self._reference_files.extend(self.defender.collector.infected_reference_files)
|
|
105
|
+
cmds.file(new=True, force=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "maya_umbrella"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.2"
|
|
4
4
|
description = "Check and fix maya virus."
|
|
5
5
|
homepage = "https://github.com/loonghao/maya_umbrella"
|
|
6
6
|
repository = "https://github.com/loonghao/maya_umbrella"
|
|
@@ -36,7 +36,7 @@ nox = { version = "^2024.3.2", python = ">=3.8.1,<3.11" }
|
|
|
36
36
|
|
|
37
37
|
[tool.commitizen]
|
|
38
38
|
name = "cz_conventional_commits"
|
|
39
|
-
version = "0.6.
|
|
39
|
+
version = "0.6.2"
|
|
40
40
|
tag_format = "v$version"
|
|
41
41
|
version_files = [
|
|
42
42
|
"pyproject.toml:version",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.0"
|
|
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
|
{maya_umbrella-0.6.0 → maya_umbrella-0.6.2}/maya_umbrella/hooks/delete_unknown_plugin_node.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|