ommx-python-mip-adapter 1.8.2__tar.gz → 1.8.4__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 (18) hide show
  1. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/PKG-INFO +2 -13
  2. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter/__init__.py +2 -0
  3. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter.egg-info/PKG-INFO +2 -13
  4. ommx_python_mip_adapter-1.8.4/ommx_python_mip_adapter.egg-info/requires.txt +2 -0
  5. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/pyproject.toml +10 -17
  6. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/tests/test_integration.py +1 -1
  7. ommx_python_mip_adapter-1.8.2/ommx_python_mip_adapter.egg-info/requires.txt +0 -14
  8. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/README.md +0 -0
  9. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter/adapter.py +0 -0
  10. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter/exception.py +0 -0
  11. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter/python_mip_to_ommx.py +0 -0
  12. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter.egg-info/SOURCES.txt +0 -0
  13. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter.egg-info/dependency_links.txt +0 -0
  14. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/ommx_python_mip_adapter.egg-info/top_level.txt +0 -0
  15. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/setup.cfg +0 -0
  16. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/tests/test_adapter.py +0 -0
  17. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/tests/test_constant_constraint.py +0 -0
  18. {ommx_python_mip_adapter-1.8.2 → ommx_python_mip_adapter-1.8.4}/tests/test_model_to_instance.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ommx_python_mip_adapter
3
- Version: 1.8.2
3
+ Version: 1.8.4
4
4
  Summary: An adapter for the Python-MIP from/to OMMX.
5
5
  Author-email: "Jij Inc." <info@j-ij.com>
6
6
  Project-URL: Repository, https://github.com/Jij-Inc/ommx
@@ -13,19 +13,8 @@ Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: License :: OSI Approved :: MIT License
14
14
  Requires-Python: >=3.9
15
15
  Description-Content-Type: text/markdown
16
- Requires-Dist: ommx<2.0.0,>=1.8.2
16
+ Requires-Dist: ommx<2.0.0,>=1.8.4
17
17
  Requires-Dist: mip<2.0.0,>=1.15.0
18
- Provides-Extra: dev
19
- Requires-Dist: markdown-code-runner; extra == "dev"
20
- Requires-Dist: numpy; extra == "dev"
21
- Requires-Dist: pyright; extra == "dev"
22
- Requires-Dist: pytest; extra == "dev"
23
- Requires-Dist: ruff<0.10.0,>=0.9.0; extra == "dev"
24
- Requires-Dist: sphinx; extra == "dev"
25
- Requires-Dist: sphinx-autoapi; extra == "dev"
26
- Requires-Dist: sphinx_fontawesome; extra == "dev"
27
- Requires-Dist: sphinx_rtd_theme; extra == "dev"
28
- Requires-Dist: tomlkit; extra == "dev"
29
18
 
30
19
  OMMX adapter for Python-MIP
31
20
  ============================
@@ -2,8 +2,10 @@ from .python_mip_to_ommx import (
2
2
  model_to_instance,
3
3
  )
4
4
  from .adapter import OMMXPythonMIPAdapter
5
+ from .exception import OMMXPythonMIPAdapterError
5
6
 
6
7
  __all__ = [
7
8
  "model_to_instance",
8
9
  "OMMXPythonMIPAdapter",
10
+ "OMMXPythonMIPAdapterError",
9
11
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ommx_python_mip_adapter
3
- Version: 1.8.2
3
+ Version: 1.8.4
4
4
  Summary: An adapter for the Python-MIP from/to OMMX.
5
5
  Author-email: "Jij Inc." <info@j-ij.com>
6
6
  Project-URL: Repository, https://github.com/Jij-Inc/ommx
@@ -13,19 +13,8 @@ Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: License :: OSI Approved :: MIT License
14
14
  Requires-Python: >=3.9
15
15
  Description-Content-Type: text/markdown
16
- Requires-Dist: ommx<2.0.0,>=1.8.2
16
+ Requires-Dist: ommx<2.0.0,>=1.8.4
17
17
  Requires-Dist: mip<2.0.0,>=1.15.0
18
- Provides-Extra: dev
19
- Requires-Dist: markdown-code-runner; extra == "dev"
20
- Requires-Dist: numpy; extra == "dev"
21
- Requires-Dist: pyright; extra == "dev"
22
- Requires-Dist: pytest; extra == "dev"
23
- Requires-Dist: ruff<0.10.0,>=0.9.0; extra == "dev"
24
- Requires-Dist: sphinx; extra == "dev"
25
- Requires-Dist: sphinx-autoapi; extra == "dev"
26
- Requires-Dist: sphinx_fontawesome; extra == "dev"
27
- Requires-Dist: sphinx_rtd_theme; extra == "dev"
28
- Requires-Dist: tomlkit; extra == "dev"
29
18
 
30
19
  OMMX adapter for Python-MIP
31
20
  ============================
@@ -0,0 +1,2 @@
1
+ ommx<2.0.0,>=1.8.4
2
+ mip<2.0.0,>=1.15.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ommx_python_mip_adapter"
7
- version = "1.8.2"
7
+ version = "1.8.4"
8
8
 
9
9
  description = "An adapter for the Python-MIP from/to OMMX."
10
10
  authors = [{ name = "Jij Inc.", email = "info@j-ij.com" }]
@@ -19,24 +19,17 @@ classifiers = [
19
19
  "License :: OSI Approved :: Apache Software License",
20
20
  "License :: OSI Approved :: MIT License",
21
21
  ]
22
- # FIXME: This project requires latest version of Python-MIP (will be 1.16.0?), which does not release yet.
23
- # https://github.com/coin-or/python-mip/issues/384
24
- dependencies = ["ommx >= 1.8.2, < 2.0.0","mip >= 1.15.0, < 2.0.0"]
22
+
23
+ # FIXME
24
+ # ======
25
+ # To support Python 3.12 and Apple silicon systems, this requires latest version of Python-MIP (will be 1.16.0?),
26
+ # which does not release yet. https://github.com/coin-or/python-mip/issues/384
27
+ # This project uses dev-dependency to use the latest version of Python-MIP not to include pre-release version in the release.
28
+ dependencies = ["ommx >= 1.8.4, < 2.0.0", "mip >= 1.15.0, < 2.0.0"]
25
29
 
26
30
  [project.urls]
27
31
  Repository = "https://github.com/Jij-Inc/ommx"
28
32
  Issues = "https://github.com/Jij-Inc/ommx/issues"
29
33
 
30
- [project.optional-dependencies]
31
- dev = [
32
- "markdown-code-runner",
33
- "numpy",
34
- "pyright",
35
- "pytest",
36
- "ruff >= 0.9.0, < 0.10.0",
37
- "sphinx",
38
- "sphinx-autoapi",
39
- "sphinx_fontawesome",
40
- "sphinx_rtd_theme",
41
- "tomlkit",
42
- ]
34
+ [dependency-groups]
35
+ dev = ["mip @ git+https://github.com/coin-or/python-mip.git"]
@@ -63,7 +63,7 @@ def test_integration_milp():
63
63
 
64
64
  def test_solution_optimality():
65
65
  x = DecisionVariable.integer(1, lower=0, upper=5)
66
- y = DecisionVariable.integer(1, lower=0, upper=5)
66
+ y = DecisionVariable.integer(2, lower=0, upper=5)
67
67
  ommx_instance = Instance.from_components(
68
68
  decision_variables=[x, y],
69
69
  objective=x + y,
@@ -1,14 +0,0 @@
1
- ommx<2.0.0,>=1.8.2
2
- mip<2.0.0,>=1.15.0
3
-
4
- [dev]
5
- markdown-code-runner
6
- numpy
7
- pyright
8
- pytest
9
- ruff<0.10.0,>=0.9.0
10
- sphinx
11
- sphinx-autoapi
12
- sphinx_fontawesome
13
- sphinx_rtd_theme
14
- tomlkit