maya-umbrella 0.14.0__py2.py3-none-any.whl → 0.14.1__py2.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.
@@ -1 +1 @@
1
- __version__ = "0.14.0"
1
+ __version__ = "0.14.1"
@@ -1,6 +1,7 @@
1
1
  # Import built-in modules
2
2
  import glob
3
3
  import os
4
+ import platform
4
5
 
5
6
  # Import local modules
6
7
  from maya_umbrella.filesystem import check_virus_by_signature
@@ -81,7 +82,8 @@ class Vaccine(AbstractVaccine):
81
82
 
82
83
  def collect_issues(self):
83
84
  """Collect all issues related to the virus."""
84
- self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
85
+ if platform.system() == "Windows":
86
+ self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
85
87
  self.collect_infected_mel_files()
86
88
  self.collect_infected_hik_files()
87
89
  self.collect_infected_nodes()
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maya_umbrella
3
- Version: 0.14.0
4
- Summary: Check and fix maya virus.
3
+ Version: 0.14.1
4
+ Summary: A better Autodesk Maya antivirus tool detects and removes malicious.
5
5
  Home-page: https://github.com/loonghao/maya_umbrella
6
6
  License: MIT
7
- Keywords: notifiers,python,Maya,dcc
7
+ Keywords: Autodesk Maya,python,Maya,dcc,antivirus,Security Tools,maya_umbrella
8
8
  Author: longhao
9
9
  Author-email: hal.long@outlook.com
10
10
  Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
@@ -23,7 +23,7 @@ Project-URL: Documentation, https://github.com/loonghao/maya_umbrella
23
23
  Project-URL: Repository, https://github.com/loonghao/maya_umbrella
24
24
  Description-Content-Type: text/markdown
25
25
 
26
- # maya-umbrella
26
+ ![maya_umbrella.ing Banner](https://raw.githubusercontent.com/loonghao/maya_umbrella/main/resources/banner.png)
27
27
 
28
28
  [![Python Version](https://img.shields.io/pypi/pyversions/maya-umbrella)](https://img.shields.io/pypi/pyversions/maya-umbrella)
29
29
  [![Nox](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg)](https://github.com/wntrblm/nox)
@@ -46,6 +46,8 @@ Description-Content-Type: text/markdown
46
46
  [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
47
47
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
48
48
 
49
+ A better Autodesk Maya antivirus tool detects and removes malicious.
50
+
49
51
  This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
50
52
  Maya.
51
53
  It ensures a secure and seamless user experience by proactively scanning for threats and effectively neutralizing them.
@@ -55,11 +57,15 @@ It can be provided as an API for seamless integration into your existing pipelin
55
57
  # 安装
56
58
 
57
59
  ## pip 安装
60
+ maya_umbrella is distributed as a standard pipy package, so we can install it via pip install.
61
+
58
62
  maya_umbrella是以标准pipy包去发布的,所以我们可以通过pip install去安装
59
63
  ```shell
60
64
  your/maya-root/mayapy -m pip install maya-umbrella
61
65
  ```
62
66
  ## 一键安装
67
+ Download the corresponding version of the zip package in the release, unzip it and double-click `install.bat` to install it.
68
+
63
69
  在release里面下载对应版本的zip包,解压后双击`install.bat`即可安装
64
70
 
65
71
  更新版本
@@ -88,13 +94,21 @@ pip install -r requirements-dev.txt
88
94
 
89
95
 
90
96
  ## 在maya中测试
97
+ With `nox -s maya -- <maya version>`, start maya.
98
+ Nox will dynamically register a nox session based on your local installation of maya,
99
+ e.g. if you have `maya-2020` installed locally, then you can start maya with a test environment.
100
+ Then you can start maya with a test environment via
91
101
 
92
102
  通过`nox -s maya -- <maya version>`, 启动maya.
93
103
  nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2020`,
94
104
  那么通过可以启动带有测试环境的maya
105
+
95
106
  ```shell
96
107
  nox -s maya -- 2018
97
108
  ```
109
+ **Note: there are two `-` between maya and the version number**.
110
+
111
+ Starting maya and executing the following code in the script editor will dynamically open the ma file from `<repo>/tests/virus/` to test it.
98
112
 
99
113
  **注意:maya 与 版本号之间有 俩个`-`**
100
114
 
@@ -105,23 +119,29 @@ import manual_test_in_maya
105
119
 
106
120
  manual_test_in_maya.start()
107
121
  ```
122
+ It is also possible to execute the corresponding tests via pytest, which also requires a local installation of the corresponding maya
108
123
 
109
124
  也可以通过pytest去执行对应的测试,也需要本地安装了对应的maya
110
125
 
111
126
  ```shell
112
127
  nox -s maya -- 2018 --test
113
128
  ```
129
+ **Note: Command line crash may occur in versions below maya-2022 (PY2)**.
114
130
 
115
131
  **注意:在maya-2022 (PY2) 以下的版本可能会出现命令行crash的情况**
116
132
 
117
133
 
118
134
  ## 增加新的疫苗
135
+ Create a new py in `<repo>/maya_umbrella/vaccines/`, since many viruses don't have a specific name, we'll use `vaccine<id>.py`.
136
+ Inherit `from maya_umbrella.vaccine import AbstractVaccine` and call the class `Vaccine`, and then write the virus collection logic.
119
137
 
120
138
  在`<repo>/maya_umbrella/vaccines/` 新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以`vaccine<id>.py`
121
139
  继承`from maya_umbrella.vaccine import AbstractVaccine`并且class名字叫`Vaccine`即可, 然后去写具体的收集病毒逻辑
122
140
 
123
141
  ## 代码检查
124
142
 
143
+ We can use the encapsulated `nox` command to perform a code check.
144
+
125
145
  我们可以利用封装好的`nox`命令去执行进行代码检查
126
146
 
127
147
  ```shell
@@ -134,6 +154,9 @@ nox -s lint-fix
134
154
  ```
135
155
 
136
156
  # 生成安装包
157
+ Execute the following command to create a zip under <repo>/.zip, with `--version` the version number of the current tool.
158
+
159
+ **Note: between `make-zip` and `--version` there are two `-`**.
137
160
 
138
161
  执行下面的命令可以在<repo>/.zip下面创建zip,参数 `--version` 当前工具的版本号
139
162
 
@@ -1,5 +1,5 @@
1
1
  maya_umbrella/__init__.py,sha256=rcCnFWmELeJsGoKvLHyzC_GmZu-eT1QXjQCHRGj6HuQ,529
2
- maya_umbrella/__version__.py,sha256=EVkhkQ4Bbkx92jXuCmt2_JDjQExgnrq2d3eBQIP9UAo,23
2
+ maya_umbrella/__version__.py,sha256=DcrUHmqhXJJz-Sh-CsHfn9W6Q5OL-VL2FalGEX5hy6E,23
3
3
  maya_umbrella/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  maya_umbrella/_vendor/atomicwrites/LICENSE,sha256=h4Mp8L2HitAVEpzovagvSB6G7C6Agx6QnA1nFx2SLnM,1069
5
5
  maya_umbrella/_vendor/atomicwrites/__init__.py,sha256=myvxvKRBb7vebPTSUiAopsRrvsm6VojiAvET1xohT-4,6970
@@ -32,8 +32,8 @@ maya_umbrella/vaccine.py,sha256=aBW6pdT4tD4OMBPZ-d3E4_n16Rylz-2gb7JWzMZVPK0,1022
32
32
  maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
34
34
  maya_umbrella/vaccines/vaccine2.py,sha256=qYiI_-BSojgN7j4esYCGBDLeyBSneDOGUwZhKHccxh8,2170
35
- maya_umbrella/vaccines/vaccine3.py,sha256=f1jO9pyyZ_Ep18HR-fCQfGEi-TnNKXzjdCi9ORSZUx0,3613
36
- maya_umbrella-0.14.0.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
37
- maya_umbrella-0.14.0.dist-info/METADATA,sha256=CPasuVog_jZMUHuIdjwgvGcgItpIYkrV3HXP7are7Vg,11722
38
- maya_umbrella-0.14.0.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
39
- maya_umbrella-0.14.0.dist-info/RECORD,,
35
+ maya_umbrella/vaccines/vaccine3.py,sha256=vcjGt0jZxBDb7iCUMmBWBQGPZD3BFH96gL6pPxNwDr0,3676
36
+ maya_umbrella-0.14.1.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
37
+ maya_umbrella-0.14.1.dist-info/METADATA,sha256=xZybVtUu3QVLnqV5cNT4POCiZ2YnvQ_5caxfJcz8N1A,13413
38
+ maya_umbrella-0.14.1.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
39
+ maya_umbrella-0.14.1.dist-info/RECORD,,