Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pip-tools version 6.13.0 to work with pip >= 23.1 #34

Merged
merged 1 commit into from Apr 17, 2023

Conversation

burnes
Copy link
Member

@burnes burnes commented Apr 17, 2023

Info

FYI: New issue in Python projects with latest PIP version, so we need to upgrade pip-tools.

Could you please merge and release this version @dobe?

PIP-Tools change log 6.13.0

Features:

  • Add support for self-referential extras
    (1791). Thanks q0w
  • Add support for pip==23.1 where removed FormatControl in WheelCache
    (1834). Thanks atugushev
  • Add support for pip==23.1 where refactored requirement options
    (1832). Thanks atugushev
  • Add support for pip==23.1 where deprecated --install-option has been removed
    (1828). Thanks atugushev

Bug Fixes:

  • Pass --cache-dir to --pip-args for backtracking resolver
    (1827). Thanks q0w

Other Changes:

  • Update examples in README (1835).
    Thanks lucaswerkmeister

Python error example

WARNING: the legacy dependency resolver is deprecated and will be removed in future versions of pip-tools. The default resolver will be changed to 'backtracking' in pip-tools 7.0.0. Specify --resolver=backtracking to silence this warning.
Traceback (most recent call last):
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/bin/pip-compile", line 8, in <module>
    sys.exit(cli())
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/scripts/compile.py", line 580, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/resolver.py", line 253, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/resolver.py", line 343, in _resolve_one_round
    their_constraints.extend(self._iter_dependencies(best_match))
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/resolver.py", line 456, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/repositories/local.py", line 87, in get_dependencies
    return self.repository.get_dependencies(ireq)
  File "/home/travis/build/lovelysystems/az.cmsui/tests/v/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 237, in get_dependencies
    wheel_cache = WheelCache(self._cache_dir, self.options.format_control)
TypeError: __init__() takes 2 positional arguments but 3 were given

@burnes burnes requested a review from dobe April 17, 2023 14:21
Copy link
Member

@dobe dobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls set version

@burnes burnes merged commit 2c3d9bd into master Apr 17, 2023
1 check passed
@burnes burnes deleted the burnes/upgrade-pip-tools branch April 17, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants