xmipp3-installer 2.0.2__py3-none-any.whl → 2.0.4__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.
@@ -65,7 +65,7 @@ def get_installation_info(version_manager: versions_manager.VersionsManager, ret
65
65
  "installedByScipion": environment_info[3]
66
66
  },
67
67
  "returnCode": ret_code,
68
- "logTail": environment_info[4] if ret_code else None # Only needed if something went wrong
68
+ "logTail": __anonymize_log_tail(environment_info[4]) if ret_code else None # Only needed if something went wrong
69
69
  }
70
70
 
71
71
  def get_os_release_name() -> str:
@@ -136,6 +136,22 @@ def __get_log_tail() -> Optional[str]:
136
136
  )
137
137
  return output if ret_code == 0 else None
138
138
 
139
+ def __anonymize_log_tail(log_text: Optional[str]) -> Optional[str]:
140
+ """
141
+ ### Anonymizes usernames in a log string.
142
+
143
+ #### Args:
144
+ - log_text (str | None): Log text to anonymize.
145
+
146
+ #### Returns:
147
+ - (str | None): Log text with occurrences of /home/<username> replaced by /home/REDACTED, or None if input was None.
148
+ """
149
+ if log_text is None:
150
+ return
151
+
152
+ pattern = re.compile(r'(/home/)([^/\s]+)')
153
+ return pattern.sub(r'\1REDACTED', log_text)
154
+
139
155
  def __get_mac_address() -> Optional[str]:
140
156
  """
141
157
  ### Returns a physical MAC address for this machine. It prioritizes ethernet over wireless.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
- Name: xmipp3_installer
3
- Version: 2.0.2
2
+ Name: xmipp3-installer
3
+ Version: 2.0.4
4
4
  Summary: Package to handle the installation of Xmipp3
5
5
  Author-email: Martín Salinas <ssalinasmartin@gmail.com>
6
6
  License: GPL-3.0-only
@@ -20,11 +20,12 @@ Requires-Python: >=3.8
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE.txt
22
22
  Requires-Dist: typing-extensions>=4.12
23
- Requires-Dist: distro>=1.9.0
23
+ Requires-Dist: distro>=1.8.0
24
24
  Provides-Extra: test
25
- Requires-Dist: pytest==8.*; extra == "test"
25
+ Requires-Dist: pytest==8.*; python_version < "3.10" and extra == "test"
26
+ Requires-Dist: pytest==9.*; python_version >= "3.10" and extra == "test"
26
27
  Requires-Dist: pytest-cov==5.*; python_version < "3.9" and extra == "test"
27
- Requires-Dist: pytest-cov==6.*; python_version >= "3.9" and extra == "test"
28
+ Requires-Dist: pytest-cov==7.*; python_version >= "3.9" and extra == "test"
28
29
  Requires-Dist: pytest-subprocess==1.*; extra == "test"
29
30
  Requires-Dist: pytest-localserver==0.*; extra == "test"
30
31
  Requires-Dist: ruff==0.*; extra == "test"
@@ -1,7 +1,7 @@
1
1
  xmipp3_installer/__init__.py,sha256=s67VAuwU_q4SQwrHE2ma0iHaK7B-he8LIAHE6isCmMc,50
2
2
  xmipp3_installer/__main__.py,sha256=GjAvEb6__AdjqqtOKc6Q5LQieofjGypAeKmpceqrUsA,124
3
3
  xmipp3_installer/api_client/api_client.py,sha256=sMtkC0lvX7sbi0JbKYsCieGgzxU3B1jZNRgcv9AEMxo,1670
4
- xmipp3_installer/api_client/assembler/installation_info_assembler.py,sha256=hFUzwKgF6MwLXDNAsKAchxfT9mbaksuxXyrpi_9atmM,5963
4
+ xmipp3_installer/api_client/assembler/installation_info_assembler.py,sha256=rHhy3U5qPVgCIevD6XogSjL409AFwJHV3u3ybAQpDEo,6456
5
5
  xmipp3_installer/application/__init__.py,sha256=kLEk5vEkDPq06r2mKB9FZ2f-yn0Jgm5rSGfL3tBwtik,89
6
6
  xmipp3_installer/application/user_interactions.py,sha256=HcNO1YlL2dY5PWZR7hl2Hw366bZ-5fQ7QRcfkwhvr_E,703
7
7
  xmipp3_installer/application/cli/__init__.py,sha256=twbZEzUf7ZjBKE07j3DQinLXqa5KOVJ8akiMISx6Rfg,32
@@ -62,9 +62,9 @@ xmipp3_installer/repository/config_vars/default_values.py,sha256=eIUVE8G5I7VP4T3
62
62
  xmipp3_installer/repository/config_vars/variables.py,sha256=U2LyYIitxGIO7cP_IG0lfkOQ1IrvFZTOp1l6O98N_34,1513
63
63
  xmipp3_installer/shared/file_operations.py,sha256=cwYe3P0Iz3Sq2U4DqANx4AsL1QmqCU-VW2T3C0YcVLA,464
64
64
  xmipp3_installer/shared/singleton.py,sha256=nqsCg_rTCdWld2EeLzmvQLjk_goROWWyia3wN7aqHUE,557
65
- xmipp3_installer-2.0.2.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
66
- xmipp3_installer-2.0.2.dist-info/METADATA,sha256=eIz5A-n44AMsUygsBymn2vTmFvrP0LuahsvXbAzNDHI,4741
67
- xmipp3_installer-2.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
- xmipp3_installer-2.0.2.dist-info/entry_points.txt,sha256=AbvjNKF8d0LfHkuVMrBz26YhjkzL37m4FYUDDs9UFB4,68
69
- xmipp3_installer-2.0.2.dist-info/top_level.txt,sha256=PbpSNvfVKVhceWxY482CNYzjSnGbQXl782LlWh39uuw,17
70
- xmipp3_installer-2.0.2.dist-info/RECORD,,
65
+ xmipp3_installer-2.0.4.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
66
+ xmipp3_installer-2.0.4.dist-info/METADATA,sha256=kDRWRIiBwrHF7D6KXrM0-hzZoa0iT4ujTykaS44M-rk,4842
67
+ xmipp3_installer-2.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
+ xmipp3_installer-2.0.4.dist-info/entry_points.txt,sha256=AbvjNKF8d0LfHkuVMrBz26YhjkzL37m4FYUDDs9UFB4,68
69
+ xmipp3_installer-2.0.4.dist-info/top_level.txt,sha256=PbpSNvfVKVhceWxY482CNYzjSnGbQXl782LlWh39uuw,17
70
+ xmipp3_installer-2.0.4.dist-info/RECORD,,