Skip to content

Commit 2db41dd

Browse files
committed
Update version to 0.10.0
1 parent 334a036 commit 2db41dd

File tree

8 files changed

+680
-215
lines changed

8 files changed

+680
-215
lines changed

Diff for: CHANGELOG.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ this project adheres to `Semantic Versioning <https://semver.org/>`_.
99
Unreleased_
1010
------------
1111

12+
0.10.0_ - 2025-02-25
13+
-------------------
1214

1315
Added
1416
^^^^^
@@ -394,9 +396,10 @@ Initial release of MiniZinc Python. This release contains an initial
394396
functionality to use MiniZinc directly from Python using an interface to the
395397
``minizinc`` command line application. The exact functionality available in this
396398
release is best described in the `documentation
397-
<https://minizinc-python.readthedocs.io/en/0.1.0/>`_.
399+
<https://python.minizinc.dev/en/0.1.0/>`_.
398400

399401

402+
.. _0.10.0: https://github.com/MiniZinc/minizinc-python/compare/0.9.0...0.10.0
400403
.. _0.9.0: https://github.com/MiniZinc/minizinc-python/compare/0.8.0...0.9.0
401404
.. _0.8.0: https://github.com/MiniZinc/minizinc-python/compare/0.7.0...0.8.0
402405
.. _0.7.0: https://github.com/MiniZinc/minizinc-python/compare/0.6.0...0.7.0

Diff for: CITATION.cff

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ keywords:
3737
- Constraint Programming
3838
- Optimisation
3939
license: MPL-2.0
40-
version: 0.9.0
41-
date-released: '2023-04-04'
40+
version: 0.10.0
41+
date-released: '2025-02-25'

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<p align="center">
1111
The python package that allows you to access all of MiniZinc's functionalities directly from Python.
1212
<br />
13-
<a href="https://minizinc-python.readthedocs.io/en/latest/"><strong>Explore the docs »</strong></a>
13+
<a href="https://python.minizinc.dev/en/latest/"><strong>Explore the docs »</strong></a>
1414
<br />
1515
<br />
1616
<a href="https://github.com/MiniZinc/minizinc-python/issues">Report Bug</a>
@@ -61,7 +61,7 @@ python expects the `minizinc` executable to be available on the executable path,
6161
the `$PATH` environmental variable, or in a default installation location.
6262

6363
_For more information, please refer to the
64-
[Documentation](https://minizinc-python.readthedocs.io/en/latest/)_
64+
[Documentation](https://python.minizinc.dev/en/latest/)_
6565

6666

6767
### Usage
@@ -96,7 +96,7 @@ for i in range(len(result)):
9696
```
9797

9898
_For more examples, please refer to the
99-
[Documentation](https://minizinc-python.readthedocs.io/en/latest/)_
99+
[Documentation](https://python.minizinc.dev/en/latest/)_
100100

101101
<!-- TESTING INSTRUCTIONS -->
102102
## Testing

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "minizinc"
7-
version = "0.9.1"
7+
version = "0.10.0"
88
description = "Access MiniZinc directly from Python"
99
readme = "README.md"
1010
authors = [{ name = "Jip J. Dekker", email = "[email protected]" }]

Diff for: src/minizinc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .solver import Solver
1414
from .types import AnonEnum, ConstrEnum
1515

16-
__version__ = "0.9.1"
16+
__version__ = "0.10.0"
1717

1818
logger = logging.getLogger("minizinc")
1919

Diff for: src/minizinc/driver.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _run(
213213
str(arg) for arg in args
214214
]
215215
minizinc.logger.debug(
216-
f"CLIDriver:run -> command: \"{' '.join(cmd)}\""
216+
f'CLIDriver:run -> command: "{" ".join(cmd)}"'
217217
)
218218
output = subprocess.run(
219219
cmd,
@@ -231,7 +231,7 @@ def _run(
231231
"--allow-multiple-assignments",
232232
] + [str(arg) for arg in args]
233233
minizinc.logger.debug(
234-
f"CLIDriver:run -> command: \"{' '.join(cmd)}\""
234+
f'CLIDriver:run -> command: "{" ".join(cmd)}"'
235235
)
236236
output = subprocess.run(
237237
cmd,
@@ -275,7 +275,7 @@ async def _create_process(
275275
minizinc.logger.debug(
276276
f"CLIDriver:create_process -> program: {str(self._executable)} "
277277
f'args: "--allow-multiple-assignments '
278-
f"{' '.join(str(arg) for arg in args)}\""
278+
f'{" ".join(str(arg) for arg in args)}"'
279279
)
280280
proc = await create_subprocess_exec(
281281
str(self._executable),
@@ -290,7 +290,7 @@ async def _create_process(
290290
minizinc.logger.debug(
291291
f"CLIDriver:create_process -> program: {str(self._executable)} "
292292
f'args: "--solver {solver} --allow-multiple-assignments '
293-
f"{' '.join(str(arg) for arg in args)}\""
293+
f'{" ".join(str(arg) for arg in args)}"'
294294
)
295295
proc = await create_subprocess_exec(
296296
str(self._executable),

Diff for: src/minizinc/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _add_diversity_to_div_model(
218218

219219
# Add new objective: maximize diversity.
220220
div_combinator = ", ".join(
221-
[f'{var["coef"]} * dist_{var["name"]}[sol]' for var in vars]
221+
[f"{var['coef']} * dist_{var['name']}[sol]" for var in vars]
222222
)
223223
dist_total = f"{aggregator}([{combinator}([{div_combinator}]) | sol in 1..{len(prevsol)}])"
224224
inst.add_string(f"solve maximize {dist_total};\n")

Diff for: uv.lock

+664-202
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)