Skip to main content

Prototype for SAT-based dependency handling. This is a work in progress, do not expect any API not to change at this point.

Installation

To install the python package, simple do as follows:

git clone --recursive https://github.com/enthought/sat-solver
cd sat-solver
pip install -e .

Example usage

TODO

Usage from the CLI

To try things out from the CLI, you need to write a scenario file (yaml format), see simplesat/tests/simple_numpy.yaml for a simple example.

To print the rules:

python scripts/print_rules.py simplesat/tests/simple_numpy.yaml

To print the operations:

python scripts/solve.py simplesat/tests/simple_numpy.yaml

Comparing with php’s composer

First, clone composer’s somewhere on your machine:

git clone https://github.com/composer/composer

Then, use the scripts/scenario_to_php.py script to write a php file that will print the composer’s solution for a given scenario:

python scripts/scenario_to_php.py \
    --composer-root <path to composer github checkout> \
    simplesat/tests/simple_numpy.yaml \
    scripts/print_operations.php.in

This will create a scripts/print_operations.php script you can simply execute w/ php:

php scripts/print_operations.php

Bibliography

On the use of SAT solvers for managing packages:

Release files for simplesat 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplesat 0.3.0
File Size Uploaded
simplesat-0.3.0.tar.gz 172.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simplesat 0.3.0
File Interpreter ABI Platform
simplesat-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 383.4 kB

Release files / simplesat-0.3.0.tar.gz

Download URL simplesat-0.3.0.tar.gz
Size 172.8 kB
Tags Source
SHA-256 checksum
How to use checksums
78a83f533af89a976f16dcfae4a2e40cf89895569f4f98e358fd8fcdba29c1ab
BLAKE2b-256 checksum
How to use checksums
c3d574b8161ddd8f3bfa6911cfb19dbf7ff332ec0f5bc22b8f6da4eba895c70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / simplesat-0.3.0-py2.py3-none-any.whl

Download URL simplesat-0.3.0-py2.py3-none-any.whl
Size 210.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9fa3fa2f690d85f2e64dfa1aa84e95aa08cb7611ba10c7ee14d9a1ea3c46abdd
BLAKE2b-256 checksum
How to use checksums
87e505705c2aeb30842abf1b993557defad48a9bcdd75e5f742b3f0404efd958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page