14
0
Commit Graph

16 Commits

Author SHA256 Message Date
ed7960aa19 - update to 1.1.0:
* Declare supported Python version support ">= 3.7" in dist
    meta  #129
  * Improve exception chaining when ResolutionImpossible raises
    during backjumping  #133
  * Switch from pyi files to modern annotations based type
    hinting  #135
  * In tests the commentjson test dependency with re.sub  #141
  * Deduplicate failure causes to save memory and reduce
    backtracking overhead  #143
  * New narrow_requirement_selection provider method giving
    option for providers to reduce the number of times sort key
    get_preference is called in long running backtrack  #145
  * Run tests against Python 3.12, 3.13, and use latest version
    of CI dependencies  #153
  * Update py2ndex script to use metadata files, skip 404, and
    support PEP 723  #156
  * Replace setuptools.cfg and mypy.ini with pyproject.toml  #157
  * Add tests type "unvisited" to functional Python tests to
    ensure backjumping is correctly skipping candidates  #158
  * Switch from flake8 to ruff for linting  #160
  * Enable automatic TYPE_CHECK guarding for imports only used
    for type hinting via ruff rules TCH and FA  #166
  * Fix example reporter_demo get_preference method which
    requires arg backtrack_causes #136
  * Clarify the docstrings for providers.py #138
  * Pin Black version for linting to prevent CI failures  #150
  * In unexpected situation where broken_state.mapping is empty,
    stop backtracking, and continue resolution (rather than
    throwing ResolutionImpossible)  #152

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=27
2024-11-20 17:20:20 +00:00
4b2b14c45c Accepting request 1195698 from home:pgajdos:python
- drop optional test dependency on python-commentjson

OBS-URL: https://build.opensuse.org/request/show/1195698
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=25
2024-08-30 09:19:49 +00:00
fe6a87fcee - update to 1.0.1:
* Fix calls to opaque objects and use provider interface calls
    instead.  `#126
  * Implement backjumping to significantly speed up the
    resolution process by skipping over irrelevant parts of the
    resolution search space.  `#113
  * A new reporter hook ``rejecting_candidate`` is added,
    replacing ``backtracking``.
  * The hook is called every time the resolver rejects a
    conflicting candidate before trying out the next one in line.
  * Some valid states that were previously rejected are now
    accepted. This affects states where multiple candidates for
    the same dependency conflict with each other.
    The ``information`` argument passed to
    ``AbstractProvider.get_preference`` may now contain empty
    iterators. This has always been allowed by the method
    definition but it was previously not possible in practice.
  * edges that lead to the detected conflicts.
  * Provide type stubs for most classes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=23
2023-12-08 13:40:03 +00:00
f7ff70bb89 Accepting request 1085374 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085374
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=21
2023-05-08 08:17:31 +00:00
9dcf61b5df Add link to upstream issue in changelog about the reason to ignore some tests.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=19
2023-01-18 09:49:17 +00:00
557e87afda Accepting request 1059284 from home:Simmphonie:branches:devel:languages:python
- ignore some faulty tests

OBS-URL: https://build.opensuse.org/request/show/1059284
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=18
2023-01-18 09:46:42 +00:00
b8216878f0 - add comment on why we need to stay with < 0.9.0 (bsc#1206225)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=16
2022-12-15 21:05:02 +00:00
0f245113ed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=15 2022-12-15 20:42:41 +00:00
79080f5423 Accepting request 1042749 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.9.0 
  * Features
    A new reporter hook rejecting_candidate is added, replacing backtracking.
    The hook is called every time the resolver rejects a conflicting candidate before trying out the next one in line. #101
  * Bug Fixes
    Some valid states that were previously rejected are now accepted. This affects states where multiple candidates for
    the same dependency conflict with each other. The information argument passed to AbstractProvider.get_preference may
    now contain empty iterators. This has always been allowed by the method definition but it was previously not possible in practice. #91

OBS-URL: https://build.opensuse.org/request/show/1042749
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=14
2022-12-14 10:07:04 +00:00
OBS User buildservice-autocommit
0786cf491f Updating link to change in openSUSE:Factory/python-resolvelib revision 10
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=06a3673fd8c8f242c5ccbe076fb5bb09
2022-12-08 12:48:26 +00:00
a197ef419a Accepting request 1039894 from home:yarunachalam:branches:devel:languages:python
- Update to v0.9.0 
  Features
  * A new reporter hook rejecting_candidate is added, replacing backtracking. The hook is called every time the resolver
    rejects a conflicting candidate before trying out the next one in line. #101
  Bug Fixes
  * Some valid states that were previously rejected are now accepted. This affects states where multiple candidates for the
    same dependency conflict with each other. The information argument passed to AbstractProvider.get_preference may now contain
    empty iterators. This has always been allowed by the method definition but it was previously not possible in practice. #91

OBS-URL: https://build.opensuse.org/request/show/1039894
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=10
2022-12-03 22:34:11 +00:00
8ad5ddbf30 - update to 0.8.1:
* A new reporter hook ``resolving_conflicts`` is added. The resolver triggers
  * this hook when it detects conflicts in the dependency tree, and before it
  * attempts to fix them. The hook accepts one single argument ``causes``, which
  * is a list of ``(requirement, parent)`` 2-tuples that represents all the
  * edges that lead to the detected conflicts.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=8
2022-07-17 08:26:53 +00:00
f3c20d0415 - update to 0.8.0:
* Add ``backtrack_causes`` to ``get_preference``, which contains information
    about the requirements involved in the most recent backtrack. This allows
    the provider to utilise this information to tweak the ordering as well as
    for recording/reporting conflicts.
  * When merging a candidate's dependencies, make sure the merge target is
    up-to-date within the loop, so the merge does not lose information when a
    candidate returns multiple dependency specifications under one identifier
    (e.g. specifyiung two dependencies ``a>1`` and ``a<2``, instead of one single
    ``a>1,<2`` dependency).  `#80 <https://github.com/sarugaku/resolvelib/issues/80>`_
  * Redesign ``get_preference()`` to include resolution state on dependencies
    other than the currently working one, to allow the provider to better take
    account of the global resolver knowledge and determine the best strategy. The
    provider now can, for example, correctly calculate how far a dependency is
    from the root node in the graph.  `#74 <https://github.com/sarugaku/resolvelib/issues/74>`_
  * A new argument ``incompatibilities`` is now passed to the ``find_matches()``
    hook, which the provider must use to exclude matches from the return value.
  * Redesign ``find_matches()`` to include resolution state on dependencies other
    than the currently working one, to handle usages that need to return candidates
    based on non-local states. One such example is PEP 508 direct URLs specified
    on a package, which need to be available to the same package specified with
    extras (which would have a different identifier).
  * The resolver no longer relies on implicit candidate equality to detect
    incompatibilities. This is done by an additional ``find_matches()`` argument;
    see the *Features* section to learn more.
  * Provide type stubs for most classes. 
  * Fix a state management bug that causes the resolver to enter an infinite loop
    in certain backtracking cases.
  * Fix a performance regression if ``find_matches()`` returns a non-built-in sequence instance.
  * ``find_matches()`` now may return a ``Callable[[], Iterator[Candidate]]`` to

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=7
2021-11-07 18:30:29 +00:00
Tomáš Chvátal
dbbbc231a3 Accepting request 794545 from home:mcalabkova:branches:devel:languages:python
- Update to 0.3.0
  * Provide both the requirements and their parents as exceptiondata for the
    ``ResolutionImpossible`` exception, via a ``causes`` attribute that replaces
    the previous ``requirements`` attribute.
  * Make resolver backtrack when none of the candidates requested for a package
    are able to resolve due to them requesting unworkable requirements, or a
    package has no candidates at all. Previously the resolver would give up on the
    spot.
  * Ensure the result returned by the resolver only contains candidates that are
    actually needed. This is done by tracing the graph after resolution completes,
    snipping nodes that don’t have a route to the root.

OBS-URL: https://build.opensuse.org/request/show/794545
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=5
2020-04-16 10:26:01 +00:00
Tomáš Chvátal
e46b344976 Accepting request 685605 from home:jengelh:branches:devel:languages:python
- Use noun phrase in descriptions.

OBS-URL: https://build.opensuse.org/request/show/685605
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=3
2019-03-17 15:30:33 +00:00
Tomáš Chvátal
8a2a817353 Accepting request 682365 from home:jayvdb:coala:python3-bears
- Initial spec for v0.2.2

OBS-URL: https://build.opensuse.org/request/show/682365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=1
2019-03-07 12:49:53 +00:00