From 6408e06f9f13d70bec8db487467fc88a9799c945 Mon Sep 17 00:00:00 2001 From: Floris-Jan Willemsen Date: Thu, 8 Jan 2026 14:13:27 +0100 Subject: [PATCH 1/4] Update README.rst From c2aee9780938c060e04ff156c274bdc6db01dd04 Mon Sep 17 00:00:00 2001 From: Floris-Jan Willemsen Date: Fri, 9 Jan 2026 09:10:19 +0100 Subject: [PATCH 2/4] Update README with conda installation instructions and badges --- README.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 9cab614..08c5571 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -|License| |Build Status| |Docs| |Python Versions| |Downloads| |Status| |Code Coverage| +|License| |Build Status| |Docs| |Python Versions| |Downloads| |CondaDownloads| |Status| |Code Coverage| .. image:: https://github.com/python-constraint/python-constraint/raw/main/docs/assets/logo/N-Queens_problem_Python.svg :align: center @@ -7,8 +7,9 @@ python-constraint ================= -| This software is now back to active development / maintainance status. -| IMPORTANT: the new version can be installed with `pip install python-constraint2`, as the original pip release will not be updated. +| ⚠️ IMPORTANT: this software must be installed with ``pip install python-constraint2``, as the original pip release will not be updated. +| A [Conda Forge version](https://github.com/conda-forge/python-constraint2-feedstock) is also available: ``conda install python-constraint2``. + | For an overview of recent changes, visit the `Changelog `_. | The complete documentation can be found `here `_. @@ -208,6 +209,9 @@ But it's probably better to `open an issue Date: Fri, 9 Jan 2026 09:19:28 +0100 Subject: [PATCH 3/4] Revise README with updated installation details Updated installation instructions for Conda and Mamba, and clarified the importance of using python-constraint2. --- README.rst | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 08c5571..a5a673a 100644 --- a/README.rst +++ b/README.rst @@ -8,21 +8,21 @@ python-constraint ================= | ⚠️ IMPORTANT: this software must be installed with ``pip install python-constraint2``, as the original pip release will not be updated. -| A [Conda Forge version](https://github.com/conda-forge/python-constraint2-feedstock) is also available: ``conda install python-constraint2``. - +| A `Conda Forge `_ / `Mamba `_ version is also available: ``conda install python-constraint2``. +| | For an overview of recent changes, visit the `Changelog `_. | The complete documentation can be found `here `_. - +| | New: writing constraints in the new string format is preferable over functions and lambdas. | 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. | For example, :code:`problem.addConstraint(["50 <= x * y < 100"])` is parsed to :code:`[MinProdConstraint(50, ["x", "y"]), MaxProdConstraint(100, ["x", "y"])]`. | Similarly, :code:`problem.addConstraint(["x / y == z"])` is parsed to :code:`[ExactProdConstraint("x", ["z", "y"])]`. | This feature is in beta and subject to possible change, please provide feedback. - +| .. contents:: :local: :depth: 1 - +| Introduction ------------ The :code:`python-constraint` module offers efficient solvers for `Constraint Satisfaction Problems (CSPs) `_ over finite domains in an accessible Python package. @@ -156,6 +156,15 @@ Download and install $ pip install python-constraint2 +Conda / Mamba: + +.. code-block:: shell + + $ conda config --add channels conda-forge + $ conda config --set channel_priority strict + $ conda install python-constraint2 + $ mamba install python-constraint2 + Testing ------- From 486fa62f321b1945cea5d57ed8a54662cdce7745 Mon Sep 17 00:00:00 2001 From: Floris-Jan Willemsen Date: Fri, 9 Jan 2026 09:22:29 +0100 Subject: [PATCH 4/4] Rearrange badges in README.rst --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a5a673a..1b24119 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,6 @@ -|License| |Build Status| |Docs| |Python Versions| |Downloads| |CondaDownloads| |Status| |Code Coverage| +|CondaDownloads| |Downloads| +|Python Versions| +|License| |Build Status| |Status| |Docs| |Code Coverage| .. image:: https://github.com/python-constraint/python-constraint/raw/main/docs/assets/logo/N-Queens_problem_Python.svg :align: center