{"id":18613923,"url":"https://github.com/enthought/depsolver","last_synced_at":"2025-09-18T13:09:45.401Z","repository":{"id":7087091,"uuid":"8377598","full_name":"enthought/depsolver","owner":"enthought","description":"Default Repo description from terraform module","archived":false,"fork":false,"pushed_at":"2015-01-09T10:09:41.000Z","size":714,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-12-27T02:42:29.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enthought.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-23T15:56:37.000Z","updated_at":"2021-06-01T18:49:23.000Z","dependencies_parsed_at":"2022-08-27T22:01:34.712Z","dependency_job_id":null,"html_url":"https://github.com/enthought/depsolver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Fdepsolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Fdepsolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Fdepsolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enthought%2Fdepsolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enthought","download_url":"https://codeload.github.com/enthought/depsolver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406446,"owners_count":19633024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:24:21.102Z","updated_at":"2025-09-18T13:09:40.353Z","avatar_url":"https://github.com/enthought.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://secure.travis-ci.org/enthought/depsolver.png?branch=master\n    :target: https://travis-ci.org/enthought/depsolver\n\ndepsolver is a package dependency solver in python.\n\nExamples::\n\n    # Simple scenario: nothing installed, install numpy, 2 versions available\n    # in the repository\n    from depsolver import PackageInfo, Pool, Repository, Request, Requirement, Solver\n\n    numpy_1_6_1 = PackageInfo.from_string(\"numpy-1.6.1\")\n    numpy_1_7_0 = PackageInfo.from_string(\"numpy-1.7.0\")\n\n    repo = Repository([numpy_1_6_1, numpy_1_7_0])\n    installed_repo = Repository()\n    pool = Pool([repo, installed_repo])\n\n    # only one operation here: install numpy (most recent available version\n    # automatically picked up)\n    request = Request(pool)\n    request.install(Requirement.from_string(\"numpy\"))\n    for operation in Solver(pool, installed_repo).solve(request):\n        print operation\n\nA more complex scenario which currently fails with pip\n(https://github.com/pypa/pip/issues/174)::\n\n    #  - A requires B and C\n    #  - B requires D \u003c= 1.1\n    #  - C requires D \u003c= 0.9\n\n    a_1_0_0 = PackageInfo.from_string(\"A-1.0.0; depends (B, C)\")\n    b_1_0_0 = PackageInfo.from_string(\"B-1.0.0; depends (D \u003c= 1.1.0)\")\n    c_1_0_0 = PackageInfo.from_string(\"C-1.0.0; depends (D \u003c= 0.9.0)\")\n    d_1_1_0 = PackageInfo.from_string(\"D-1.1.0\")\n    d_0_9_0 = PackageInfo.from_string(\"D-0.9.0\")\n\n    repo = Repository([a_1_0_0, b_1_0_0, c_1_0_0, d_1_1_0, d_0_9_0])\n    installed_repo = Repository()\n    pool = Pool([repo, installed_repo])\n\n    # despolver resolves each dependency 'globally', and does not install\n    # D-1.1.0 as pip currently does\n    request = Request(pool)\n    request.install(Requirement.from_string(\"A\"))\n    for operation in Solver(pool, installed_repo).solve(request):\n        print operation\n\nIts main features:\n\n        - pure python. Both \u003e= 2.5 and \u003e= 3.2 are supported from a single\n          codebase.\n        - only depends on the six library\n        - use SAT solver to solve dependencies\n        - handle dependencies, provides, conflict and replaces\n        - supports multiple version formats (semver\n          `semantic versions RFC \u003chttp://www.semver.org\u003e`_ and debian formats\n          currently supported)\n        - reasonably well tested (\u003e 90 % coverage)\n\nIt is still experimental, and subject to arbitrary changes.\n\nThe design is strongly inspired from `PHP Composer packager\n\u003chttp://getcomposer.org\u003e`_, itself started as a port of libsolver.\n\nThanks to Enthought to let me open source this project !\n\nNote:\n\n     The work on depsolver is temporarily handed over to the enstaller\n     project (in enstaller.new_solver), to ease the integration with our\n     needs at Enthought. Once the implementation will be finished, we will\n     extract back the solver into depsolver. We expect a fully functional\n     solver for end of Q1 2015.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenthought%2Fdepsolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenthought%2Fdepsolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenthought%2Fdepsolver/lists"}