orionis 0.672.0__py3-none-any.whl → 0.674.0__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.
@@ -6,6 +6,7 @@ import subprocess
6
6
  import sys
7
7
  import time
8
8
  from pathlib import Path
9
+ from typing import Optional
9
10
  from rich.console import Console
10
11
  from rich.panel import Panel
11
12
  from orionis.console.base.command import BaseCommand
@@ -95,6 +96,9 @@ class PublisherCommand(BaseCommand):
95
96
  # Calculate the width for console panels (3/4 of the console width)
96
97
  self.__with_console = (self.__console.width // 4) * 3
97
98
 
99
+ # Retrieve the PyPI token from environment variables
100
+ self.__token: Optional[str] = None
101
+
98
102
  def __bumpMinorVersion(self):
99
103
  """
100
104
  Increment the minor version number in the file where the VERSION constant is defined.
@@ -373,7 +377,7 @@ class PublisherCommand(BaseCommand):
373
377
  """
374
378
 
375
379
  # Get the PyPI token from environment variables
376
- token = os.getenv("PYPI_TOKEN").strip()
380
+ token = self.__token
377
381
 
378
382
  # Check if the PyPI token is available
379
383
  if not token:
@@ -535,6 +539,13 @@ class PublisherCommand(BaseCommand):
535
539
  """
536
540
  try:
537
541
 
542
+ # Retrieve the PyPI token from environment variables
543
+ self.__token = os.getenv("PYPI_TOKEN").strip()
544
+
545
+ # Ensure the PyPI token is available
546
+ if not self.__token:
547
+ raise ValueError("PyPI token not found in environment variables.")
548
+
538
549
  # Execute test suite
539
550
  response: dict = reactor.call("test")
540
551
 
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.672.0"
8
+ VERSION = "0.674.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.672.0
3
+ Version: 0.674.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -8,7 +8,7 @@ orionis/console/base/command.py,sha256=tAO_EVy1aNWneNSKYYMAf9yDTfbvHAqSJnZZ6pOR4
8
8
  orionis/console/base/scheduler.py,sha256=JoZdtyrVJiNzBoVEWUovHscqBxqw_fPPwaENIQc4Zp4,7644
9
9
  orionis/console/base/scheduler_event_listener.py,sha256=X2mZBAYLBCtLOH7QSrCEaLeJ5m8Hq5UtGxaWRRvWbfo,4421
10
10
  orionis/console/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- orionis/console/commands/__publisher__.py,sha256=ZKAg802weVlgEndJWtdlDzU2QoQOb7ge-CuhupTqSEc,21231
11
+ orionis/console/commands/__publisher__.py,sha256=TS2WGZoWx7YX8CP7ixKB5lHc_1r-bBDNB8OkkWR9lzc,21647
12
12
  orionis/console/commands/cache_clear.py,sha256=iwdMdRLw8BAGkR-OcBB3JD9pOidC3jWT-W-DUrENywQ,3048
13
13
  orionis/console/commands/help.py,sha256=VFIn3UqQm4pxwjfSQohVwKNpc7F-6XRcwSZQwDSLEaU,3739
14
14
  orionis/console/commands/log_clear.py,sha256=OI1j_myCYUOMI-SfnN-NH-6BYzzWKXOKIEb55vFTXq4,4045
@@ -206,7 +206,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
206
206
  orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
207
207
  orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
208
208
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
209
- orionis/metadata/framework.py,sha256=eMXy0dxPBfl1IqUyX23hng2Vfk04cmMg_2HHsZLCr5M,4089
209
+ orionis/metadata/framework.py,sha256=xtrVMtgKgLECq19wISGCAiCIujjVyneIQt5gEUxTIjk,4089
210
210
  orionis/metadata/package.py,sha256=s1JeGJPwdVh4jO3IOfmpwMuJ_oX6Vf9NL7jgPEQNf5Y,16050
211
211
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
212
212
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -393,8 +393,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
393
393
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
394
394
  orionis/test/view/render.py,sha256=arysoswhkV2vUd2aVMZRPpmH317jaWbgjDpQ_AWQ5AE,5663
395
395
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
396
- orionis-0.672.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
397
- orionis-0.672.0.dist-info/METADATA,sha256=pzALGHPw_H9_MsP7awPsyS8yrki6VRqbJHt5QjnuTwU,4772
398
- orionis-0.672.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
399
- orionis-0.672.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
400
- orionis-0.672.0.dist-info/RECORD,,
396
+ orionis-0.674.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
397
+ orionis-0.674.0.dist-info/METADATA,sha256=c1-I2N3TvDEaK4TO0fuyd4BnHLXWW0J1zJBtD3Fr-_g,4772
398
+ orionis-0.674.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
399
+ orionis-0.674.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
400
+ orionis-0.674.0.dist-info/RECORD,,