atomicshop 2.11.41__py3-none-any.whl → 2.11.43__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 atomicshop might be problematic. Click here for more details.

atomicshop/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.11.41'
4
+ __version__ = '2.11.43'
@@ -118,6 +118,7 @@ def _search_in_archive(
118
118
  if item.filename.endswith('/'): # Skip directories
119
119
  continue
120
120
 
121
+ # At this stage we will get the bytes of the archived file, which is an 'item' in the archive.
121
122
  archived_file_bytes = None
122
123
  # If the main archive is zip we will use the 'open' method, if it's 7z we will use the 'read' method.
123
124
  if archive_type == 'zip':
@@ -1,3 +1,4 @@
1
+ import sys
1
2
  import subprocess
2
3
  from pathlib import Path
3
4
 
@@ -82,6 +83,12 @@ def install_before_restart(
82
83
  if use_built_in_fact_installer:
83
84
  # Run the shell script
84
85
  subprocess.run(['bash', fact_core_pre_install_file_path])
86
+
87
+ # Install docker. FACT installs the docker, but there can be a problem with permissions, so we need to add
88
+ # the user permissions to the docker group before restart.
89
+ if not install_docker.add_current_user_to_docker_group():
90
+ print_api("Docker is installed, but the current user was not added to the docker group.", color='red')
91
+ sys.exit(1)
85
92
  else:
86
93
  message = ("You will need to install DOCKER and NODEJS separately.\n"
87
94
  "This was done to enable Rootless docker install and install other version of NodeJS.")
@@ -95,14 +102,13 @@ def install_before_restart(
95
102
  prefer_binary=True,
96
103
  requirements_file_path=prerequisites_file_path)
97
104
 
105
+ # Install docker in rootless mode.
98
106
  install_docker.install_docker_ubuntu(
99
- use_docker_installer=True, rootless=True, add_current_user_to_docker_group_bool=False)
107
+ use_docker_installer=True, rootless=True, add_current_user_to_docker_group_bool=True)
100
108
 
101
- # Install docker. FACT installs the docker, but there can be a problem with permissions, so we need to add
102
- # the user permissions to the docker group before restart.
103
- # if not install_docker.add_current_user_to_docker_group():
104
- # print_api("Docker is installed, but the current user was not added to the docker group.", color='red')
105
- # sys.exit(1)
109
+ # Install docker in regular mode.
110
+ # install_docker.install_docker_ubuntu(
111
+ # use_docker_installer=True, rootless=False, add_current_user_to_docker_group_bool=True)
106
112
 
107
113
  print_api("FACT_core installation before restart is finished.", color='green')
108
114
  print_api("Please restart the computer to continue the installation.", color='red')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.11.41
3
+ Version: 2.11.43
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=tUAnOkjuAjgtX6xm_4V4xBzywgnEL6Zmf8Af-HngudY,124
1
+ atomicshop/__init__.py,sha256=Uy02j1E0Jlyku4d9N1W_3RzdkL_KaikXUzh8nb3CKWU,124
2
2
  atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
3
3
  atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
4
4
  atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
@@ -70,7 +70,7 @@ atomicshop/addons/process_list/compiled/Win10x64/process_list.lib,sha256=n9c2MVP
70
70
  atomicshop/archiver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
71
  atomicshop/archiver/_search_in_zip.py,sha256=dd8qFSvIhcKmtnPj_uYNJFPmMwZp4tZys0kKgTw_ACw,8385
72
72
  atomicshop/archiver/archiver.py,sha256=BomnK7zT-nQXA1z0i2R2aTv8eu88wPx7tf2HtOdbmEc,1280
73
- atomicshop/archiver/search_in_archive.py,sha256=lPQlBw6WXrV6Y57c6Pn6gaqVnXmY7mESdDCqFRv4BcU,10729
73
+ atomicshop/archiver/search_in_archive.py,sha256=XAxa0QukkXZvPmKna8cpwBHLDEskRUtbgaW1eHvpn6w,10833
74
74
  atomicshop/archiver/sevenz_app_w.py,sha256=TEOhlZPzKqQPStmyIq5E_yP98brj1t_GuoBgeLXA4dA,3019
75
75
  atomicshop/archiver/sevenzs.py,sha256=5i_C50-deC1Cz_GQdMGofV2jeMPbbGWAvih-QnA72cg,1370
76
76
  atomicshop/archiver/zips.py,sha256=k742K1bEDtc_4N44j_Waebi-uOkxxavqltvV6q-BLW4,14402
@@ -189,7 +189,7 @@ atomicshop/wrappers/factw/fact_extractor/docker_image.py,sha256=2FyYjnw8gxFNwISQ
189
189
  atomicshop/wrappers/factw/fact_extractor/get_extractor.py,sha256=2mfOAftHIlCcGt1s7MWdq7DsDCuI6wX3MtvcEZ4SK-0,756
190
190
  atomicshop/wrappers/factw/install/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
191
191
  atomicshop/wrappers/factw/install/install_after_restart.py,sha256=-VXC3KDX2BzF0oi0ELCmfch55vLk-3t16KxlmYyUGD8,1560
192
- atomicshop/wrappers/factw/install/pre_install_and_install_before_restart.py,sha256=vI0ZPSvGQOTKDBgxqbOfW9HGIDexnyAR0cUUCdFgmuQ,5624
192
+ atomicshop/wrappers/factw/install/pre_install_and_install_before_restart.py,sha256=ZlQfAp63oSHGbEtZe5tMFmGsjUCzzFqxMV0hlieOvUE,5889
193
193
  atomicshop/wrappers/factw/postgresql/__init__.py,sha256=xMBn2d3Exo23IPP2F_9-SXmOlhFbwWDgS9KwozSTjA0,162
194
194
  atomicshop/wrappers/factw/postgresql/analysis.py,sha256=2Rxzy2jyq3zEKIo53z8VkjuslKE_i5mq2ZpmJAvyd6U,716
195
195
  atomicshop/wrappers/factw/postgresql/file_object.py,sha256=VRiCXnsd6yDbnsE-TEKYPC-gkAgFVkE6rygRrJLQShI,713
@@ -244,8 +244,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
244
244
  atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
245
245
  atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
246
246
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
247
- atomicshop-2.11.41.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
248
- atomicshop-2.11.41.dist-info/METADATA,sha256=i03LBYdEFEwR0yzXsJi3iLc_RXkjD_htdIE4M-gWOJg,10448
249
- atomicshop-2.11.41.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
250
- atomicshop-2.11.41.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
251
- atomicshop-2.11.41.dist-info/RECORD,,
247
+ atomicshop-2.11.43.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
248
+ atomicshop-2.11.43.dist-info/METADATA,sha256=Nt-_UTMrsMAkeqe-DeOdsQ2-UcPMiEESXiAa2SgJ6UU,10448
249
+ atomicshop-2.11.43.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
250
+ atomicshop-2.11.43.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
251
+ atomicshop-2.11.43.dist-info/RECORD,,