paramsx 1.0.6__tar.gz → 1.0.7__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.

Potentially problematic release.


This version of paramsx might be problematic. Click here for more details.

@@ -1,10 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paramsx
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Librería para gestionar y respaldar parámetros de AWS SSM de manera sencilla y eficiente.
5
5
  Home-page: https://github.com/pistatxos/paramsx
6
6
  Author: Mariox
7
7
  Author-email: info@tomonota.net
8
8
  License-File: LICENSE
9
9
  Requires-Dist: boto3
10
- Requires-Dist: windows-curses; platform_system == "Windows"
@@ -1,10 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paramsx
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: Librería para gestionar y respaldar parámetros de AWS SSM de manera sencilla y eficiente.
5
5
  Home-page: https://github.com/pistatxos/paramsx
6
6
  Author: Mariox
7
7
  Author-email: info@tomonota.net
8
8
  License-File: LICENSE
9
9
  Requires-Dist: boto3
10
- Requires-Dist: windows-curses; platform_system == "Windows"
@@ -0,0 +1 @@
1
+ boto3
@@ -10,12 +10,18 @@ class CustomInstallCommand(install):
10
10
  # Ejecutar instalación predeterminada
11
11
  install.run(self)
12
12
 
13
- # Detectar el sistema operativo
13
+ # 1. Agregar directorio de scripts al PATH
14
+ self._add_scripts_to_path()
15
+
16
+ # 2. Crear carpeta de configuración .xsoft
17
+ self._create_config_folder()
18
+
19
+ def _add_scripts_to_path(self):
14
20
  system = platform.system()
15
21
  scripts_dir = None
16
22
 
17
23
  if system == "Windows":
18
- # Ruta del directorio de scripts para Windows
24
+ # Ruta del directorio de scripts en Windows
19
25
  scripts_dir = os.path.join(
20
26
  os.path.expanduser("~"),
21
27
  "AppData",
@@ -25,31 +31,23 @@ class CustomInstallCommand(install):
25
31
  "Scripts",
26
32
  )
27
33
  elif system in ["Linux", "Darwin"]: # Linux o macOS
28
- # Ruta del directorio de scripts para Linux/macOS
29
34
  scripts_dir = os.path.join(os.path.dirname(sys.executable), "bin")
30
35
 
31
36
  if scripts_dir:
32
- # Verificar si el directorio ya está en el PATH
33
37
  path_env = os.environ.get("PATH", "")
34
38
  if scripts_dir not in path_env:
35
39
  if system == "Windows":
36
- # Agregar al PATH en Windows
37
40
  os.system(f'setx PATH "{path_env};{scripts_dir}"')
38
41
  print(f"Se agregó {scripts_dir} al PATH. Reinicia tu terminal para que los cambios surtan efecto.")
39
42
  elif system == "Darwin":
40
- # Usar .zshrc en macOS
41
- zshrc_path = os.path.expanduser("~/.zshrc")
42
- self._add_to_shell_config(zshrc_path, scripts_dir)
43
+ self._add_to_shell_config("~/.zshrc", scripts_dir)
43
44
  elif system == "Linux":
44
- # Usar .bashrc en Linux
45
- bashrc_path = os.path.expanduser("~/.bashrc")
46
- self._add_to_shell_config(bashrc_path, scripts_dir)
45
+ self._add_to_shell_config("~/.bashrc", scripts_dir)
47
46
 
48
- # Crear el directorio de configuración de paramsx
47
+ def _create_config_folder(self):
49
48
  config_dir = os.path.expanduser("~/.xsoft")
50
49
  os.makedirs(config_dir, exist_ok=True)
51
50
 
52
- # Archivo de configuración
53
51
  config_file = "paramsx/paramsx_config.py"
54
52
  target_file = os.path.join(config_dir, "paramsx_config.py")
55
53
 
@@ -83,16 +81,13 @@ if platform.system() == "Windows":
83
81
 
84
82
  setup(
85
83
  name="paramsx",
86
- version="1.0.6",
84
+ version="1.0.7",
87
85
  packages=find_packages(),
88
86
  include_package_data=True,
89
87
  package_data={
90
88
  'paramsx': ['paramsx_config.py'], # Archivos específicos
91
89
  },
92
- install_requires=[
93
- "boto3",
94
- "windows-curses; platform_system == 'Windows'"
95
- ],
90
+ install_requires=install_requires,
96
91
  entry_points={
97
92
  "console_scripts": [
98
93
  "paramsx=paramsx.main:entry_point",
@@ -1,4 +0,0 @@
1
- boto3
2
-
3
- [:platform_system == "Windows"]
4
- windows-curses
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes