piptools.repositories.base module¶
- class piptools.repositories.base.BaseRepository¶
Bases:
object- DEFAULT_INDEX_URL = 'https://pypi.org/simple'¶
- _abc_impl = <_abc._abc_data object>¶
- abstractmethod allow_all_wheels() Iterator[None]¶
Monkey patches pip.Wheel to allow wheels from all platforms and Python versions.
- abstract property command: InstallCommand¶
Return an install command.
- abstractmethod find_best_match(ireq: InstallRequirement, prereleases: bool | None) InstallRequirement¶
Returns a pinned InstallRequirement object that indicates the best match for the given InstallRequirement according to the external repository.
- abstract property finder: PackageFinder¶
Returns a package finder to interact with simple repository API (PEP 503)
- abstractmethod get_dependencies(ireq: InstallRequirement) set[InstallRequirement]¶
Given a pinned, URL, or editable InstallRequirement, returns a set of dependencies (also InstallRequirements, but not necessarily pinned). They indicate the secondary dependencies for the given requirement.
- abstractmethod get_hashes(ireq: InstallRequirement) set[str]¶
Given a pinned InstallRequirement, returns a set of hashes that represent all of the files for a given requirement. It is not acceptable for an editable or unpinned requirement to be passed to this function.
- abstract property session: PipSession¶
Returns a session to make requests