python-constraint2 2.4.0__tar.gz → 2.6.0__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 (28) hide show
  1. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/PKG-INFO +27 -10
  2. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/README.rst +21 -4
  3. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/constraints.c +11340 -11349
  4. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/constraints.py +27 -19
  5. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/domain.c +1335 -1212
  6. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/parser.c +3930 -4138
  7. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/parser.py +16 -31
  8. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/problem.c +2826 -2823
  9. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/problem.py +5 -6
  10. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/solvers.c +3124 -3155
  11. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/pyproject.toml +13 -12
  12. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_constraint.py +18 -0
  13. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_util_benchmark.py +6 -1
  14. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/LICENSE +0 -0
  15. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/__init__.py +0 -0
  16. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/domain.py +0 -0
  17. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/constraint/solvers.py +0 -0
  18. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/cythonize_build.py +0 -0
  19. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/__init__.py +0 -0
  20. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/benchmarks.py +0 -0
  21. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/setup_teardown.py +0 -0
  22. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_compilation.py +0 -0
  23. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_doctests.py +0 -0
  24. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_parser.py +0 -0
  25. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_problem.py +0 -0
  26. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_solvers.py +0 -0
  27. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_some_not_in_set.py +0 -0
  28. {python_constraint2-2.4.0 → python_constraint2-2.6.0}/tests/test_toml_file.py +0 -0
@@ -1,14 +1,15 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: python-constraint2
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: python-constraint is a module for efficiently solving CSPs (Constraint Solving Problems) over finite domains.
5
- License: BSD-2-Clause
5
+ License-Expression: BSD-2-Clause
6
+ License-File: LICENSE
6
7
  Keywords: CSP,constraint solving problems,problem solver,SMT,satisfiability modulo theory,SAT
7
8
  Author: Floris-Jan Willemsen
8
9
  Author-email: fjwillemsen97@gmail.com
9
10
  Maintainer: Floris-Jan Willemsen
10
11
  Maintainer-email: fjwillemsen97@gmail.com
11
- Requires-Python: >= 3.9
12
+ Requires-Python: >= 3.11
12
13
  Classifier: Environment :: Console
13
14
  Classifier: Development Status :: 5 - Production/Stable
14
15
  Classifier: Intended Audience :: Developers
@@ -19,11 +20,10 @@ Classifier: Programming Language :: C
19
20
  Classifier: Programming Language :: Cython
20
21
  Classifier: Topic :: Scientific/Engineering
21
22
  Classifier: Topic :: Software Development
22
- Classifier: Programming Language :: Python :: 3.9
23
- Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
27
  Project-URL: Changelog, https://github.com/python-constraint/python-constraint/blob/main/CHANGELOG.md
28
28
  Project-URL: Documentation, http://python-constraint.github.io/python-constraint/
29
29
  Project-URL: Homepage, http://python-constraint.github.io/python-constraint/
@@ -31,7 +31,9 @@ Project-URL: Issues, https://github.com/python-constraint/python-constraint/issu
31
31
  Project-URL: Repository, https://github.com/python-constraint/python-constraint
32
32
  Description-Content-Type: text/x-rst
33
33
 
34
- |License| |Build Status| |Docs| |Python Versions| |Downloads| |Status| |Code Coverage|
34
+ |CondaDownloads| |Downloads|
35
+ |Python Versions|
36
+ |License| |Build Status| |Status| |Docs| |Code Coverage|
35
37
 
36
38
  .. image:: https://github.com/python-constraint/python-constraint/raw/main/docs/assets/logo/N-Queens_problem_Python.svg
37
39
  :align: center
@@ -40,13 +42,16 @@ Description-Content-Type: text/x-rst
40
42
  python-constraint
41
43
  =================
42
44
 
43
- | This software is now back to active development / maintainance status.
44
- | IMPORTANT: the new version can be installed with `pip install python-constraint2`, as the original pip release will not be updated.
45
+ | ⚠️ IMPORTANT: this software must be installed with ``pip install python-constraint2``, as the original pip release will not be updated.
46
+ | A `Conda Forge <https://anaconda.org/channels/conda-forge/packages/python-constraint2/overview>`_ / `Mamba <https://github.com/conda-forge/python-constraint2-feedstock>`_ version is also available: ``conda install python-constraint2``.
47
+ |
48
+
45
49
  | For an overview of recent changes, visit the `Changelog <https://github.com/python-constraint/python-constraint/blob/main/CHANGELOG.md>`_.
46
50
  | The complete documentation can be found `here <http://python-constraint.github.io/python-constraint/>`_.
51
+ |
47
52
 
48
53
  | New: writing constraints in the new string format is preferable over functions and lambdas.
49
- | These strings, even as compound statements, are automatically parsed to faster built-in constraints, are more concise, and do not require constraint solving familiarity by the user to be efficient.
54
+ | These strings, even as compound statements, are automatically parsed to faster built-in constraints, are more concise, and do not require constraint solving familiarity by the user to be efficient.
50
55
  | For example, :code:`problem.addConstraint(["50 <= x * y < 100"])` is parsed to :code:`[MinProdConstraint(50, ["x", "y"]), MaxProdConstraint(100, ["x", "y"])]`.
51
56
  | Similarly, :code:`problem.addConstraint(["x / y == z"])` is parsed to :code:`[ExactProdConstraint("x", ["z", "y"])]`.
52
57
  | This feature is in beta and subject to possible change, please provide feedback.
@@ -188,6 +193,15 @@ Download and install
188
193
 
189
194
  $ pip install python-constraint2
190
195
 
196
+ Conda / Mamba:
197
+
198
+ .. code-block:: shell
199
+
200
+ $ conda config --add channels conda-forge
201
+ $ conda config --set channel_priority strict
202
+ $ conda install python-constraint2
203
+ $ mamba install python-constraint2
204
+
191
205
  Testing
192
206
  -------
193
207
 
@@ -241,6 +255,9 @@ But it's probably better to `open an issue <https://github.com/python-constraint
241
255
  .. |Downloads| image:: https://img.shields.io/pypi/dm/python-constraint2
242
256
  :alt: PyPI - Downloads
243
257
 
258
+ .. |CondaDownloads| image:: https://img.shields.io/conda/d/conda-forge/python-constraint2.svg
259
+ :alt: Conda - Downloads
260
+
244
261
  .. |Status| image:: https://img.shields.io/pypi/status/python-constraint2
245
262
  :alt: PyPI - Status
246
263
 
@@ -1,4 +1,6 @@
1
- |License| |Build Status| |Docs| |Python Versions| |Downloads| |Status| |Code Coverage|
1
+ |CondaDownloads| |Downloads|
2
+ |Python Versions|
3
+ |License| |Build Status| |Status| |Docs| |Code Coverage|
2
4
 
3
5
  .. image:: https://github.com/python-constraint/python-constraint/raw/main/docs/assets/logo/N-Queens_problem_Python.svg
4
6
  :align: center
@@ -7,13 +9,16 @@
7
9
  python-constraint
8
10
  =================
9
11
 
10
- | This software is now back to active development / maintainance status.
11
- | IMPORTANT: the new version can be installed with `pip install python-constraint2`, as the original pip release will not be updated.
12
+ | ⚠️ IMPORTANT: this software must be installed with ``pip install python-constraint2``, as the original pip release will not be updated.
13
+ | A `Conda Forge <https://anaconda.org/channels/conda-forge/packages/python-constraint2/overview>`_ / `Mamba <https://github.com/conda-forge/python-constraint2-feedstock>`_ version is also available: ``conda install python-constraint2``.
14
+ |
15
+
12
16
  | For an overview of recent changes, visit the `Changelog <https://github.com/python-constraint/python-constraint/blob/main/CHANGELOG.md>`_.
13
17
  | The complete documentation can be found `here <http://python-constraint.github.io/python-constraint/>`_.
18
+ |
14
19
 
15
20
  | New: writing constraints in the new string format is preferable over functions and lambdas.
16
- | These strings, even as compound statements, are automatically parsed to faster built-in constraints, are more concise, and do not require constraint solving familiarity by the user to be efficient.
21
+ | These strings, even as compound statements, are automatically parsed to faster built-in constraints, are more concise, and do not require constraint solving familiarity by the user to be efficient.
17
22
  | For example, :code:`problem.addConstraint(["50 <= x * y < 100"])` is parsed to :code:`[MinProdConstraint(50, ["x", "y"]), MaxProdConstraint(100, ["x", "y"])]`.
18
23
  | Similarly, :code:`problem.addConstraint(["x / y == z"])` is parsed to :code:`[ExactProdConstraint("x", ["z", "y"])]`.
19
24
  | This feature is in beta and subject to possible change, please provide feedback.
@@ -155,6 +160,15 @@ Download and install
155
160
 
156
161
  $ pip install python-constraint2
157
162
 
163
+ Conda / Mamba:
164
+
165
+ .. code-block:: shell
166
+
167
+ $ conda config --add channels conda-forge
168
+ $ conda config --set channel_priority strict
169
+ $ conda install python-constraint2
170
+ $ mamba install python-constraint2
171
+
158
172
  Testing
159
173
  -------
160
174
 
@@ -208,6 +222,9 @@ But it's probably better to `open an issue <https://github.com/python-constraint
208
222
  .. |Downloads| image:: https://img.shields.io/pypi/dm/python-constraint2
209
223
  :alt: PyPI - Downloads
210
224
 
225
+ .. |CondaDownloads| image:: https://img.shields.io/conda/d/conda-forge/python-constraint2.svg
226
+ :alt: Conda - Downloads
227
+
211
228
  .. |Status| image:: https://img.shields.io/pypi/status/python-constraint2
212
229
  :alt: PyPI - Status
213
230