atomicshop 2.11.34__py3-none-any.whl → 2.11.36__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.34'
4
+ __version__ = '2.11.36'
@@ -174,8 +174,13 @@ def install_docker_ubuntu(
174
174
  ubuntu_terminal.add_path_to_bashrc(as_regular_user=True)
175
175
 
176
176
  # Add appropriate permissions to the docker socket, so the user can run docker commands without sudo in python.
177
- with open('/etc/profile.d/docker_vars.sh', 'w') as file:
178
- file.write('export DOCKER_HOST=unix:///run/user/1000/docker.sock')
177
+ # with open('/etc/profile.d/docker_vars.sh', 'w') as file:
178
+ # file.write('export DOCKER_HOST=unix:///run/user/1000/docker.sock')
179
+
180
+ # Since we are installing the rootless mode, this script runs without sudo, so to add the DOCKER_HOST variable
181
+ # to the environment, we need to add it to the /etc/profile.d/docker_vars.sh file with sudo.
182
+ command = "echo 'export DOCKER_HOST=unix:///run/user/1000/docker.sock' | sudo tee /etc/profile.d/docker_vars.sh"
183
+ subprocess.run(command, shell=True, check=True)
179
184
 
180
185
  # ubuntu_terminal.add_line_to_bashrc(
181
186
  # 'export DOCKER_HOST=unix:///run/user/1000/docker.sock', as_regular_user=True)
@@ -173,8 +173,8 @@ def install_elastic_kibana_ubuntu(install_elastic: bool = True, install_kibana:
173
173
  raise ValueError("At least one of the services (Elasticsearch or Kibana) must be installed.")
174
174
 
175
175
  # Update and upgrade system packages.
176
- ubuntu_terminal.upgrade_system_packages()
177
176
  ubuntu_terminal.update_system_packages()
177
+ ubuntu_terminal.upgrade_system_packages()
178
178
 
179
179
  # Install necessary dependencies.
180
180
  ubuntu_terminal.install_packages(config_basic.UBUNTU_DEPENDENCY_PACKAGES)
@@ -196,9 +196,9 @@ def install_elastic_kibana_ubuntu(install_elastic: bool = True, install_kibana:
196
196
  # Install Elasticsearch.
197
197
  ubuntu_terminal.install_packages([config_basic.UBUNTU_ELASTIC_PACKAGE_NAME])
198
198
 
199
- if not permissions.is_admin():
200
- print_api("This script requires root privileges...", color='red')
201
- sys.exit(1)
199
+ # if not permissions.is_admin():
200
+ # print_api("This script requires root privileges...", color='red')
201
+ # sys.exit(1)
202
202
 
203
203
  # Check if the configuration file exists.
204
204
  infrastructure.is_elastic_config_file_exists(exit_on_error=True, output_message=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.11.34
3
+ Version: 2.11.36
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=jH96O2I5IFLYzcv2-W6eD1sNe1woWqU3T4-4KnAT3fE,124
1
+ atomicshop/__init__.py,sha256=WQW5EFvbupcSSibfeFKJ_x9B6peG91S75HAt595S-LA,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
@@ -165,12 +165,12 @@ atomicshop/wrappers/ctyping/msi_windows_installer/extract_msi_main.py,sha256=eyF
165
165
  atomicshop/wrappers/ctyping/msi_windows_installer/tables.py,sha256=ajiFiLXl1prg2kOhatfT8E2RKX7F8JjUJpwkVuKu1GY,16263
166
166
  atomicshop/wrappers/dockerw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
167
167
  atomicshop/wrappers/dockerw/dockerw.py,sha256=w8zSJr5C7cbvbuG09ORCpAe0BOcibqqL_Z2EKEBHYK4,6266
168
- atomicshop/wrappers/dockerw/install_docker.py,sha256=YUsp_tbQkjWzFtGqnQtdaskr_jg3nudxIhfwnDUFYz8,9514
168
+ atomicshop/wrappers/dockerw/install_docker.py,sha256=IKHInhSb9iO-g9zOYRrE4EX4eA2DaSadbZ9b0brXgRk,9921
169
169
  atomicshop/wrappers/elasticsearchw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
170
170
  atomicshop/wrappers/elasticsearchw/config_basic.py,sha256=fDujtrjEjbWiYh_WQ3OcYp_8mXhXPYeKLy4wSPL5qM0,1177
171
171
  atomicshop/wrappers/elasticsearchw/elasticsearchw.py,sha256=7TqFdEFznO8NlligJhEKk1vm641ALpCYdaRl1uoXdzM,9768
172
172
  atomicshop/wrappers/elasticsearchw/infrastructure.py,sha256=lhG83BF5uXnbPxOUeNb8vJX1rOffuCnF6uAwJ8mh8Ro,10305
173
- atomicshop/wrappers/elasticsearchw/install_elastic.py,sha256=IhbapWeq5am-MtmnvKBNBPzvaL338rvfG0rbSpl8azE,8620
173
+ atomicshop/wrappers/elasticsearchw/install_elastic.py,sha256=3TNEEFkAOcxvJYXUfKGeYjprxUu1Fl-i54dz8J3q31U,8626
174
174
  atomicshop/wrappers/elasticsearchw/queries/__init__.py,sha256=KBjT-bAt75CJsx1Apko9mpuFU4pfZV8DcGWQvpX65RU,78
175
175
  atomicshop/wrappers/elasticsearchw/queries/aggregation.py,sha256=N9a5yMMnb10sMa_x1qJBFQpgyJ49UWo8_vxuqmUtZ1A,1742
176
176
  atomicshop/wrappers/elasticsearchw/queries/info.py,sha256=P_VhhBo8MvRI4Shi-bh4RsYtlYNRKRBzScXPC64Up_Q,2900
@@ -243,8 +243,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
243
243
  atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
244
244
  atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
245
245
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
246
- atomicshop-2.11.34.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
247
- atomicshop-2.11.34.dist-info/METADATA,sha256=c7w8Xloy9e-I542mNfJEqF41i-T5NAXHpLqfUwiloOU,10448
248
- atomicshop-2.11.34.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
249
- atomicshop-2.11.34.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
250
- atomicshop-2.11.34.dist-info/RECORD,,
246
+ atomicshop-2.11.36.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
247
+ atomicshop-2.11.36.dist-info/METADATA,sha256=JDb9knnzmRzIL0nMOkcOxviKscIfkE4b-WslzrIgrT0,10448
248
+ atomicshop-2.11.36.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
249
+ atomicshop-2.11.36.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
250
+ atomicshop-2.11.36.dist-info/RECORD,,