gamspy 1.18.0__tar.gz → 1.18.1__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 (96) hide show
  1. {gamspy-1.18.0 → gamspy-1.18.1}/PKG-INFO +1 -1
  2. {gamspy-1.18.0 → gamspy-1.18.1}/pyproject.toml +1 -1
  3. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/install.py +2 -2
  4. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/uninstall.py +11 -4
  5. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_miro.py +0 -8
  6. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/PKG-INFO +1 -1
  7. {gamspy-1.18.0 → gamspy-1.18.1}/tests/test_gamspy.py +1 -1
  8. {gamspy-1.18.0 → gamspy-1.18.1}/LICENSE +0 -0
  9. {gamspy-1.18.0 → gamspy-1.18.1}/README.md +0 -0
  10. {gamspy-1.18.0 → gamspy-1.18.1}/README_PYPI.md +0 -0
  11. {gamspy-1.18.0 → gamspy-1.18.1}/setup.cfg +0 -0
  12. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/__init__.py +0 -0
  13. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/__main__.py +0 -0
  14. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/__init__.py +0 -0
  15. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/condition.py +0 -0
  16. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/domain.py +0 -0
  17. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/expression.py +0 -0
  18. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/number.py +0 -0
  19. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/operable.py +0 -0
  20. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_algebra/operation.py +0 -0
  21. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/__init__.py +0 -0
  22. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/backend.py +0 -0
  23. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/engine.py +0 -0
  24. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/local.py +0 -0
  25. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_backend/neos.py +0 -0
  26. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/__init__.py +0 -0
  27. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/cli.py +0 -0
  28. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/gdx.py +0 -0
  29. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/list.py +0 -0
  30. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/probe.py +0 -0
  31. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/retrieve.py +0 -0
  32. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/run.py +0 -0
  33. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/show.py +0 -0
  34. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_cli/util.py +0 -0
  35. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_communication.py +0 -0
  36. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_config.py +0 -0
  37. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_container.py +0 -0
  38. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_convert.py +0 -0
  39. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_database.py +0 -0
  40. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_extrinsic.py +0 -0
  41. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_model.py +0 -0
  42. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_model_instance.py +0 -0
  43. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_options.py +0 -0
  44. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_serialization.py +0 -0
  45. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/__init__.py +0 -0
  46. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/alias.py +0 -0
  47. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/equation.py +0 -0
  48. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/__init__.py +0 -0
  49. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_equation.py +0 -0
  50. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_parameter.py +0 -0
  51. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_set.py +0 -0
  52. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_symbol.py +0 -0
  53. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/implicits/implicit_variable.py +0 -0
  54. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/parameter.py +0 -0
  55. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/set.py +0 -0
  56. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/symbol.py +0 -0
  57. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/universe_alias.py +0 -0
  58. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_symbols/variable.py +0 -0
  59. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_types.py +0 -0
  60. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_validation.py +0 -0
  61. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/_workspace.py +0 -0
  62. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/exceptions.py +0 -0
  63. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/__init__.py +0 -0
  64. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/__init__.py +0 -0
  65. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/decision_tree_struct.py +0 -0
  66. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/gradient_boosting.py +0 -0
  67. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/random_forest.py +0 -0
  68. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/ml/regression_tree.py +0 -0
  69. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/__init__.py +0 -0
  70. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/avgpool2d.py +0 -0
  71. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/conv1d.py +0 -0
  72. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/conv2d.py +0 -0
  73. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/linear.py +0 -0
  74. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/maxpool2d.py +0 -0
  75. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/minpool2d.py +0 -0
  76. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/mpool2d.py +0 -0
  77. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/nn/torch_sequential.py +0 -0
  78. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/piecewise.py +0 -0
  79. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/result.py +0 -0
  80. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/shape.py +0 -0
  81. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/formulations/utils.py +0 -0
  82. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/__init__.py +0 -0
  83. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/activation.py +0 -0
  84. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/log_power.py +0 -0
  85. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/matrix.py +0 -0
  86. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/misc.py +0 -0
  87. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/probability.py +0 -0
  88. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/math/trigonometric.py +0 -0
  89. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/py.typed +0 -0
  90. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/utils.py +0 -0
  91. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy/version.py +0 -0
  92. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/SOURCES.txt +0 -0
  93. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/dependency_links.txt +0 -0
  94. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/entry_points.txt +0 -0
  95. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/requires.txt +0 -0
  96. {gamspy-1.18.0 → gamspy-1.18.1}/src/gamspy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamspy
3
- Version: 1.18.0
3
+ Version: 1.18.1
4
4
  Summary: Python-based algebraic modeling interface to GAMS
5
5
  Author-email: GAMS Development Corporation <support@gams.com>
6
6
  Project-URL: homepage, https://gams.com/sales/gamspy_facts/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gamspy"
7
- version = "1.18.0"
7
+ version = "1.18.1"
8
8
  authors = [
9
9
  { name = "GAMS Development Corporation", email = "support@gams.com" },
10
10
  ]
@@ -224,6 +224,8 @@ def solver(
224
224
  install_all_solvers: bool = typer.Option(
225
225
  False,
226
226
  "--install-all-solvers",
227
+ "--all",
228
+ "-a",
227
229
  help="Installs all available add-on solvers.",
228
230
  ),
229
231
  existing_solvers: bool = typer.Option(
@@ -279,8 +281,6 @@ def solver(
279
281
  command = [
280
282
  "uv",
281
283
  "pip",
282
- "--python-preference",
283
- "only-system",
284
284
  "install",
285
285
  f"gamspy-{solver_name}=={solver_version}",
286
286
  "--force-reinstall",
@@ -51,7 +51,11 @@ def solver(
51
51
  ),
52
52
  ] = None,
53
53
  uninstall_all_solvers: bool = typer.Option(
54
- False, "--uninstall-all-solvers", help="Uninstalls all add-on solvers."
54
+ False,
55
+ "--uninstall-all-solvers",
56
+ "--all",
57
+ "-a",
58
+ help="Uninstalls all add-on solvers.",
55
59
  ),
56
60
  skip_pip_uninstall: bool = typer.Option(
57
61
  False,
@@ -95,8 +99,6 @@ def solver(
95
99
  command = [
96
100
  "uv",
97
101
  "pip",
98
- "--python-preference",
99
- "only-system",
100
102
  "uninstall",
101
103
  f"gamspy-{solver_name}",
102
104
  ]
@@ -110,7 +112,12 @@ def solver(
110
112
  "-y",
111
113
  ]
112
114
  try:
113
- _ = subprocess.run(command, check=True)
115
+ _ = subprocess.run(
116
+ command,
117
+ check=True,
118
+ encoding="utf-8",
119
+ stderr=subprocess.PIPE,
120
+ )
114
121
  except subprocess.CalledProcessError as e:
115
122
  raise GamspyException(
116
123
  f"Could not uninstall gamspy-{solver_name}: {e.output}"
@@ -80,14 +80,6 @@ class MiroJSONEncoder:
80
80
  self,
81
81
  container: Container,
82
82
  ):
83
- if (
84
- len(container._miro_input_symbols) == 0
85
- and len(container._miro_output_symbols) == 0
86
- ):
87
- raise ValidationError(
88
- "There must be at least one miro input/output symbol in the model"
89
- )
90
-
91
83
  self.container = container
92
84
  self.model_title = "GAMSPy App"
93
85
  self.input_symbols = container._miro_input_symbols
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamspy
3
- Version: 1.18.0
3
+ Version: 1.18.1
4
4
  Summary: Python-based algebraic modeling interface to GAMS
5
5
  Author-email: GAMS Development Corporation <support@gams.com>
6
6
  Project-URL: homepage, https://gams.com/sales/gamspy_facts/
@@ -17,7 +17,7 @@ from gamspy.exceptions import GamspyException, ValidationError
17
17
 
18
18
  @pytest.mark.unit
19
19
  def test_version():
20
- assert gp.__version__ == "1.18.0"
20
+ assert gp.__version__ == "1.18.1"
21
21
 
22
22
 
23
23
  @pytest.mark.unit
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
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
File without changes
File without changes
File without changes
File without changes