salabim 25.0.12__tar.gz → 25.0.13__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.
Files changed (26) hide show
  1. {salabim-25.0.12 → salabim-25.0.13}/PKG-INFO +1 -1
  2. {salabim-25.0.12 → salabim-25.0.13}/pyproject.toml +1 -1
  3. {salabim-25.0.12 → salabim-25.0.13}/salabim/salabim.py +17 -18
  4. {salabim-25.0.12 → salabim-25.0.13}/salabim.egg-info/PKG-INFO +1 -1
  5. {salabim-25.0.12 → salabim-25.0.13}/README.md +0 -0
  6. {salabim-25.0.12 → salabim-25.0.13}/salabim/DejaVuSansMono.ttf +0 -0
  7. {salabim-25.0.12 → salabim-25.0.13}/salabim/LICENSE.txt +0 -0
  8. {salabim-25.0.12 → salabim-25.0.13}/salabim/__init__.py +0 -0
  9. {salabim-25.0.12 → salabim-25.0.13}/salabim/calibri.ttf +0 -0
  10. {salabim-25.0.12 → salabim-25.0.13}/salabim/mplus-1m-regular.ttf +0 -0
  11. {salabim-25.0.12 → salabim-25.0.13}/salabim.egg-info/SOURCES.txt +0 -0
  12. {salabim-25.0.12 → salabim-25.0.13}/salabim.egg-info/dependency_links.txt +0 -0
  13. {salabim-25.0.12 → salabim-25.0.13}/salabim.egg-info/top_level.txt +0 -0
  14. {salabim-25.0.12 → salabim-25.0.13}/setup.cfg +0 -0
  15. {salabim-25.0.12 → salabim-25.0.13}/tests/test salabim.py +0 -0
  16. {salabim-25.0.12 → salabim-25.0.13}/tests/test_cap_now.py +0 -0
  17. {salabim-25.0.12 → salabim-25.0.13}/tests/test_componentgenerator.py +0 -0
  18. {salabim-25.0.12 → salabim-25.0.13}/tests/test_datetime.py +0 -0
  19. {salabim-25.0.12 → salabim-25.0.13}/tests/test_distributions.py +0 -0
  20. {salabim-25.0.12 → salabim-25.0.13}/tests/test_misc.py +0 -0
  21. {salabim-25.0.12 → salabim-25.0.13}/tests/test_monitor.py +0 -0
  22. {salabim-25.0.12 → salabim-25.0.13}/tests/test_process.py +0 -0
  23. {salabim-25.0.12 → salabim-25.0.13}/tests/test_queue.py +0 -0
  24. {salabim-25.0.12 → salabim-25.0.13}/tests/test_state.py +0 -0
  25. {salabim-25.0.12 → salabim-25.0.13}/tests/test_store.py +0 -0
  26. {salabim-25.0.12 → salabim-25.0.13}/tests/test_timeunit.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: salabim
3
- Version: 25.0.12
3
+ Version: 25.0.13
4
4
  Summary: salabim - discrete event simulation in Python
5
5
  Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
6
6
  Project-URL: Homepage, https://salabim.org
@@ -10,7 +10,7 @@ authors = [
10
10
  { name = "Ruud van der Ham", email = "rt.van.der.ham@gmail.com" },
11
11
  ]
12
12
  description = "salabim - discrete event simulation in Python"
13
- version = "25.0.12"
13
+ version = "25.0.13"
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.7"
16
16
  dependencies = []
@@ -1,13 +1,13 @@
1
- # _ _ _ ____ ____ ___ _ ____
2
- # ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | ___| / _ \ / ||___ \
3
- # / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) ||___ \ | | | | | | __) |
4
- # \__ \| (_| || || (_| || |_) || || | | | | | / __/ ___) | _ | |_| | _ | | / __/
5
- # |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____||____/ (_) \___/ (_)|_||_____|
1
+ # _ _ _ ____ ____ ___ _ _____
2
+ # ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | ___| / _ \ / ||___ /
3
+ # / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) ||___ \ | | | | | | |_ \
4
+ # \__ \| (_| || || (_| || |_) || || | | | | | / __/ ___) | _ | |_| | _ | | ___) |
5
+ # |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____||____/ (_) \___/ (_)|_||____/
6
6
  # discrete event simulation
7
7
  #
8
8
  # see www.salabim.org for more information, the documentation and license information
9
9
 
10
- __version__ = "25.0.12"
10
+ __version__ = "25.0.13"
11
11
  import heapq
12
12
  import random
13
13
  import time
@@ -54,7 +54,7 @@ Windows = sys.platform.startswith("win")
54
54
  MacOS = platform.system == "Darwin"
55
55
  PyPy = platform.python_implementation() == "PyPy"
56
56
  Chromebook = "penguin" in platform.uname()
57
- Xlwings = "xlwings" in sys.modules
57
+ pyodide = "pyodide" in sys.modules
58
58
 
59
59
  _color_name_to_ANSI = dict(
60
60
  dark_black="\033[0;30m",
@@ -122,7 +122,7 @@ if Pythonista:
122
122
  inf = float("inf")
123
123
  nan = float("nan")
124
124
 
125
- if Pythonista or Xlwings:
125
+ if Pythonista or pyodide:
126
126
  _yieldless = False
127
127
  else:
128
128
  _yieldless = True
@@ -163,8 +163,8 @@ def yieldless(value: bool = None) -> bool:
163
163
  if value:
164
164
  if Pythonista:
165
165
  raise ValueError("yiedless mode is not allowed under Pythonista")
166
- if Xlwings:
167
- raise ValueError("yiedless mode is not allowed under xlwings lite")
166
+ if pyodide:
167
+ raise ValueError("yiedless mode is not allowed under pyodide")
168
168
  _yieldless = value
169
169
  return _yieldless
170
170
 
@@ -7680,7 +7680,6 @@ Maybe this a non yieldless model. In that case:
7680
7680
  - run salabim_unyield.py"""
7681
7681
  )
7682
7682
  self.env._any_yield = True
7683
- self._process = p(**kwargs)
7684
7683
  self._process_isgenerator = True
7685
7684
  else:
7686
7685
  if not self.env._yieldless and not self.env._any_yield:
@@ -7699,7 +7698,7 @@ by adding:
7699
7698
 
7700
7699
  extra = "process=" + process_name
7701
7700
  if self.env._yieldless:
7702
- self._glet = greenlet.greenlet(self._process, parent=self.env._glet)
7701
+ self._glet = greenlet.greenlet(lambda: self._process(**kwargs), parent=self.env._glet) # ***
7703
7702
 
7704
7703
  if self.status.value != current:
7705
7704
  self._remove()
@@ -10605,11 +10604,11 @@ class Environment:
10605
10604
  self._zoom_factor = 1.1
10606
10605
 
10607
10606
  self.last_s0 = ""
10608
- if Xlwings:
10607
+ if pyodide:
10609
10608
  if blind_animation is None:
10610
10609
  blind_animation = True
10611
10610
  if not blind_animation:
10612
- raise ValueError("blind_animation may not be False under xlwings lite")
10611
+ raise ValueError("blind_animation may not be False under pyodide")
10613
10612
  else:
10614
10613
  if blind_animation is None:
10615
10614
  blind_animation = False
@@ -25161,7 +25160,7 @@ def _check_overlapping_parameters(obj, method_name0, method_name1, process=None)
25161
25160
 
25162
25161
  @functools.lru_cache()
25163
25162
  def _screen_dimensions():
25164
- if Xlwings:
25163
+ if pyodide:
25165
25164
  return 1024, 768
25166
25165
  if Pythonista:
25167
25166
  screen_width, screen_height = ui.get_screen_size()
@@ -27189,7 +27188,7 @@ def _std_fonts():
27189
27188
 
27190
27189
 
27191
27190
  def fonts():
27192
- if Xlwings:
27191
+ if pyodide:
27193
27192
  return []
27194
27193
  if not hasattr(fonts, "font_list"):
27195
27194
  fonts.font_list = []
@@ -27462,7 +27461,7 @@ def can_animate(try_only: bool = True) -> bool:
27462
27461
  except ImportError:
27463
27462
  ImageGrab = None
27464
27463
 
27465
- if not Pythonista and not Xlwings:
27464
+ if not Pythonista and not pyodide:
27466
27465
  from PIL import ImageTk
27467
27466
  except ImportError:
27468
27467
  if try_only:
@@ -27471,7 +27470,7 @@ def can_animate(try_only: bool = True) -> bool:
27471
27470
 
27472
27471
  g.dummy_image = Image.new("RGBA", (1, 1), (0, 0, 0, 0))
27473
27472
 
27474
- if not Pythonista and not Xlwings:
27473
+ if not Pythonista and not pyodide:
27475
27474
  try:
27476
27475
  import tkinter
27477
27476
  import tkinter.font
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: salabim
3
- Version: 25.0.12
3
+ Version: 25.0.13
4
4
  Summary: salabim - discrete event simulation in Python
5
5
  Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
6
6
  Project-URL: Homepage, https://salabim.org
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes