tests.test_cli_upgrade module¶
mpm upgrade CLI tests.
Danger
All tests here must be marked as destructive unless the --dry-run parameter is
passed.
- tests.test_cli_upgrade.failing_installed_query(monkeypatch)[source]¶
Break
FakeManager.installed, like a misconfiguredpnpmbreaks its own.
- tests.test_cli_upgrade.check_selection(result, selected=('am', 'antidote', 'antigen', 'antigravity-cli-plugins', 'apk', 'app-manager', 'apt', 'apt-mint', 'aptitude', 'asdf', 'aura', 'basalt', 'bin', 'bob', 'bpkg', 'brew', 'bun', 'cargo', 'choosenim', 'claude-code-plugins', 'clib', 'composer', 'conda', 'cpan', 'cran', 'deb-get', 'dkp-pacman', 'dnf', 'dnf5', 'dotnet', 'elan', 'emacs', 'emerge', 'eopkg', 'fisher', 'flatpak', 'fwupd', 'gcloud', 'gem', 'getnf', 'gext', 'gh-ext', 'ghcup', 'go', 'guix', 'gup', 'haxelib', 'hyprpm', 'jpm', 'julia', 'juliaup', 'krew', 'lazy', 'luarocks', 'lure', 'mamba', 'mason', 'micro', 'microdnf', 'micromamba', 'miktex', 'mise', 'nala', 'nimble', 'nix', 'npm', 'octave', 'oh-my-fish', 'ollama', 'opam', 'opkg', 'pacman', 'pacstall', 'pamac', 'paru', 'pear', 'pearl', 'pi', 'pikaur', 'pip', 'pipx', 'pipxu', 'pixi', 'pkcon', 'pkgit', 'pkgm', 'platformio-core', 'pmerge', 'pnpm', 'protonplus', 'pwsh-gallery', 'pyenv', 'raco', 'roswell', 'rpm-ostree', 'rustup', 'sdkman', 'sheldon', 'skills', 'snap', 'soar', 'spack', 'steamcmd', 'stew', 'tlmgr', 'topgrade', 'trizen', 'uv', 'uvx', 'vagrant', 'vcpkg', 'vim-pack', 'vscode', 'vscodium', 'whalebrew', 'xbps', 'yarn', 'yarn-berry', 'yay', 'yazi', 'yum', 'zef', 'zerobrew', 'zeroinstall', 'zim', 'zinit', 'zplug', 'zvm', 'zypper'), reference_set=('am', 'antidote', 'antigen', 'antigravity-cli-plugins', 'apk', 'app-manager', 'apt', 'apt-mint', 'aptitude', 'asdf', 'aura', 'basalt', 'bin', 'bob', 'bpkg', 'brew', 'bun', 'cargo', 'choosenim', 'claude-code-plugins', 'clib', 'composer', 'conda', 'cpan', 'cran', 'deb-get', 'dkp-pacman', 'dnf', 'dnf5', 'dotnet', 'elan', 'emacs', 'emerge', 'eopkg', 'fisher', 'flatpak', 'fwupd', 'gcloud', 'gem', 'getnf', 'gext', 'gh-ext', 'ghcup', 'go', 'guix', 'gup', 'haxelib', 'hyprpm', 'jpm', 'julia', 'juliaup', 'krew', 'lazy', 'luarocks', 'lure', 'mamba', 'mason', 'micro', 'microdnf', 'micromamba', 'miktex', 'mise', 'nala', 'nimble', 'nix', 'npm', 'octave', 'oh-my-fish', 'ollama', 'opam', 'opkg', 'pacman', 'pacstall', 'pamac', 'paru', 'pear', 'pearl', 'pi', 'pikaur', 'pip', 'pipx', 'pipxu', 'pixi', 'pkcon', 'pkgit', 'pkgm', 'platformio-core', 'pmerge', 'pnpm', 'protonplus', 'pwsh-gallery', 'pyenv', 'raco', 'roswell', 'rpm-ostree', 'rustup', 'sdkman', 'sheldon', 'skills', 'snap', 'soar', 'spack', 'steamcmd', 'stew', 'tlmgr', 'topgrade', 'trizen', 'uv', 'uvx', 'vagrant', 'vcpkg', 'vim-pack', 'vscode', 'vscodium', 'whalebrew', 'xbps', 'yarn', 'yarn-berry', 'yay', 'yazi', 'yum', 'zef', 'zerobrew', 'zeroinstall', 'zim', 'zinit', 'zplug', 'zvm', 'zypper'), strict_selection_match=True, *, signals=<function evaluate_signals>)¶
Selection assertions reading this subcommand’s own signals.
- tests.test_cli_upgrade.test_single_manager_dry_run_upgrade_all(invoke, manager_id, all_option)[source]¶
- tests.test_cli_upgrade.test_installed_ids_tolerates_a_failing_cli(fake_pool, failing_installed_query, caplog)[source]¶
A manager whose
installedCLI fails reports no IDs instead of raising.
- tests.test_cli_upgrade.test_sourcing_survives_a_failing_manager(invoke, fake_pool, failing_installed_query, subcommand)[source]¶
- tests.test_cli_upgrade.test_dry_run_names_plan_to_resolve_a_package(invoke, changing_fake_pool, queries_through_a_cli, subcommand)[source]¶
--dry-runalso simulates the listing that ties a package to its manager.
- tests.test_cli_upgrade.test_plan_resolves_a_package_dry_run_cannot(invoke, changing_fake_pool, queries_through_a_cli, subcommand)[source]¶
The control:
--planruns the listing, so the same package resolves.
- tests.test_cli_upgrade.test_installed_inventory_reads_none_on_a_failing_cli(fake_pool, failing_installed_query)[source]¶
A listing whose CLI raises is no answer, never an empty inventory.
- tests.test_cli_upgrade.test_installed_inventory_distrusts_an_accumulated_error(fake_pool, monkeypatch)[source]¶
A listing that logged an error instead of raising is no answer either.
- tests.test_cli_upgrade.test_installed_inventory_drops_the_memoized_views(fake_pool)[source]¶
A fresh reading evicts the views memoized before an upgrade.
- tests.test_cli_upgrade.test_upgrade_all_takes_the_listing_it_is_handed(monkeypatch)[source]¶
A full upgrade handed
outdated_idsnever lists the outdated packages.
- tests.test_cli_upgrade.test_upgrade_outcomes_undated_hold()[source]¶
A release held fail-closed has no date to report.
- tests.test_cli_upgrade.test_upgrade_outcomes_unanswered_prompt(after, unanswered, held, status)[source]¶
A package left outdated by an unanswered password prompt names it.
- tests.test_cli_upgrade.test_upgrade_outcomes_direction(before, after, announced, status)[source]¶
A move reads as a downgrade only when its direction is certain.
- tests.test_cli_upgrade.test_upgrade_outcome_glyphs_cover_every_outcome()[source]¶
Every outcome leads its table cell with a glyph of its own.
- tests.test_cli_upgrade.test_upgrade_outcomes_without_an_outdated_listing()[source]¶
A manager that cannot list its outdated packages still reports what moved.
- tests.test_cli_upgrade.test_upgrade_all_reports_what_moved(invoke, changing_fake_pool)[source]¶
The trail line counts the outcomes and the table names each package.
- tests.test_cli_upgrade.failing_upgrade(detail)[source]¶
An upgrade that moves nothing and fails with
detailas its cause.
- tests.test_cli_upgrade.test_failed_upgrade_all_names_its_cause(invoke, changing_fake_pool, monkeypatch, detail, trail, status)[source]¶
A failed full upgrade names its cause on each package it left outdated.
The cause comes from its error. The
✘line counts it like any other outcome, and does not repeat it after the count. A failure with no known cause leaves its packagesstill outdated.
- tests.test_cli_upgrade.test_failed_upgrade_all_without_an_outdated_listing_names_its_cause(invoke, changing_fake_pool, monkeypatch)[source]¶
With no package to count it on, the cause closes the
✘line.
- class tests.test_cli_upgrade.BlockedFakeManager[source]¶
Bases:
ChangingFakeManagerA manager whose host blocks its full upgrade, like Omarchy blocks pacman’s.
Initialize
cli_errorslist.- property upgrade_all_skip_reason¶
Why
upgrade --allmust leave this manager alone here, orNone.For a host that blocks the full upgrade of an available manager and accepts its other operations, like Omarchy with
Pacman.mpmthen logs the returned sentences afterSkipped:and runs none of the manager’s commands. Its trail line is⊘ … (blocked by host), which the finisher leaves out of its count.A host-probing property, like
cli_path: the documentation generators must never read it.
- cli_names: tuple[str, ...] = ('blockedfakemanager',)¶
List of CLI names the package manager is known as.
This list of recognized CLI names is ordered by priority. That way we can influence the search of the right binary.
- ..hint::
This was helpful in the case of the Python transition from 2.x to 3.x, where multiple versions of the same executable were named
pythonorpython3.
By default, this property’s value is derived from the manager’s ID (see the
MetaPackageManager.__init__method above).
- documentation_url: str | None = None¶
Entry point of the project’s own documentation, or
Nonewhen it has none.The manual, the documentation site, or the man page of the CLI
mpmdrives: whichever page a user reads to learn the commands this manager wraps. Listed betweenhomepage_urlandrepository_urlin the links of the manager’s page, so a reader reaching for the tool’s reference finds it in the box of facts rather than in the prose below it.Left unset where a link would state a fact twice or invent one: a tool documenting itself in its repository alone, whose README
repository_urlalready reaches. A page about the ecosystem rather than the tool does not qualify either.Where a project’s only site is its manual, that address belongs here and
homepage_urlstays unset: the slot names what the page is, and a reader reaching for the reference looks under the documentation link.Never inherited, like every other link: the AUR helpers extending
pacmaneach document themselves.
- homepage_url: str | None = None¶
Home page of the project, only used in documentation for reference.
Left unset when the home page is the project’s repository, which
repository_urlnames on its own, and when it is the project’s manual, whichdocumentation_urlnames. Never inherited, like the other links.
- id: str = 'blockedfakemanager'¶
Package manager’s ID.
Derived by defaults from the lower-cased class name in which underscores
_are replaced by dashes-.This ID must be unique among all package manager definitions and lower-case, as they’re used as feature flags for the mpm CLI.
- name: str = 'BlockedFakeManager'¶
Return package manager’s common name.
Default value is based on class name.
- repository_url: str | None = None¶
Repository holding the project’s code, or
Nonewhen it has no public one.Linked from the manager’s documentation page. Also what the weekly metrics sample reads:
docs/docs_update.pywrites it into the[tool.repomatic.metrics] subjectsofpyproject.tomlwhen its forge answers the sampler, through a mirror for a forge that does not.Never inherited, for the same reason as
wikipedia_url: the AUR helpers extendingpacmaneach live in a repository of their own.
- virtual: bool = False¶
Should we expose the package manager to the user?
Virtual package manager are just skeleton classes used to factorize code among managers of the same family.
- wikipedia_url: str | None = None¶
English Wikipedia article about the project, or
Nonewhen it has none.Listed last in the links of the manager’s documentation page. The article covers the project that home page names, or is a redirect Wikipedia keeps under the project’s name, landing on the part of a broader article that describes it:
Cargo_(software)opens the Cargo section of the Rust article. An article that merely mentions the project does not count, nor does one about a related subject:lazyis a Neovim plugin manager, and the Neovim article is not about it.Never inherited: the metaclass resets it to
Noneon any class not declaring its own. A subclass often wraps a distinct project, like the six AUR helpers extendingpacman, and would otherwise present pacman’s article as its own. Documentation-only, likehomepage_url.
- tests.test_cli_upgrade.test_upgrade_all_skips_a_manager_its_host_blocks(invoke, patch_pool_with, monkeypatch)[source]¶
A manager with a skip reason runs no upgrade, and its trail line is
⊘.The finisher counts the other managers alone and gives the number of skips after the count. The exit stays
0.
- tests.test_cli_upgrade.test_upgrade_all_selects_the_cooldown_columns(invoke, changing_fake_pool)[source]¶
--columnsreaches the cooldown columns of a report carrying no date.
- tests.test_cli_upgrade.test_upgrade_packages_reports_what_moved(invoke, changing_fake_pool)[source]¶
Upgrading named packages reports each one moved or left behind.
- tests.test_cli_upgrade.test_upgrade_all_report_serialized(invoke, changing_fake_pool)[source]¶
The serialized report keeps the shape of the other package listings.
- tests.test_cli_upgrade.test_upgrade_all_simulation_skips_the_report(invoke, changing_fake_pool, mode)[source]¶
A simulated upgrade moves nothing, so no diff is taken and none printed.
- class tests.test_cli_upgrade.ProbedFakeManager[source]¶
Bases:
ChangingFakeManagerVariant the cooldown gates package by package, through the release-date probe.
The latest release of the pinned package is one day old, and every other one a month older.
Initialize
cli_errorslist.- pinned_release¶
When the latest release of the pinned package was published.
- release_date(package_id)[source]¶
Publication timestamp of the latest release of a package.
The probe behind the synthesized per-package cooldown gate (see
cooldown_hold()): a manager without a nativecooldown_env_varthat implements this method becomes gateable, package by package.The contract binds the timestamp’s provenance, not just its shape:
Returns a timezone-aware
datetime, orNonewhen the registry answers but carries no date (the gate then fails closed under the defaultenforceposture).The timestamp must be server-set: stamped by the registry, store or build service at publication. A client-set or package-embedded date (a git commit date, an archive metadata field the author writes) is forgeable by exactly the attacker the cooldown exists to stop, and must never back this probe.
The date is the one of the latest available release, the version the manager would resolve absent a pin. Implementations should read it through the manager’s own CLI, so the probe sees the same registry, mirrors and authentication as the install it guards.
Optional. Will be simply skipped by mpm if not implemented.
- cli_names: tuple[str, ...] = ('probedfakemanager',)¶
List of CLI names the package manager is known as.
This list of recognized CLI names is ordered by priority. That way we can influence the search of the right binary.
- ..hint::
This was helpful in the case of the Python transition from 2.x to 3.x, where multiple versions of the same executable were named
pythonorpython3.
By default, this property’s value is derived from the manager’s ID (see the
MetaPackageManager.__init__method above).
- documentation_url: str | None = None¶
Entry point of the project’s own documentation, or
Nonewhen it has none.The manual, the documentation site, or the man page of the CLI
mpmdrives: whichever page a user reads to learn the commands this manager wraps. Listed betweenhomepage_urlandrepository_urlin the links of the manager’s page, so a reader reaching for the tool’s reference finds it in the box of facts rather than in the prose below it.Left unset where a link would state a fact twice or invent one: a tool documenting itself in its repository alone, whose README
repository_urlalready reaches. A page about the ecosystem rather than the tool does not qualify either.Where a project’s only site is its manual, that address belongs here and
homepage_urlstays unset: the slot names what the page is, and a reader reaching for the reference looks under the documentation link.Never inherited, like every other link: the AUR helpers extending
pacmaneach document themselves.
- homepage_url: str | None = None¶
Home page of the project, only used in documentation for reference.
Left unset when the home page is the project’s repository, which
repository_urlnames on its own, and when it is the project’s manual, whichdocumentation_urlnames. Never inherited, like the other links.
- id: str = 'probedfakemanager'¶
Package manager’s ID.
Derived by defaults from the lower-cased class name in which underscores
_are replaced by dashes-.This ID must be unique among all package manager definitions and lower-case, as they’re used as feature flags for the mpm CLI.
- name: str = 'ProbedFakeManager'¶
Return package manager’s common name.
Default value is based on class name.
- repository_url: str | None = None¶
Repository holding the project’s code, or
Nonewhen it has no public one.Linked from the manager’s documentation page. Also what the weekly metrics sample reads:
docs/docs_update.pywrites it into the[tool.repomatic.metrics] subjectsofpyproject.tomlwhen its forge answers the sampler, through a mirror for a forge that does not.Never inherited, for the same reason as
wikipedia_url: the AUR helpers extendingpacmaneach live in a repository of their own.
- virtual: bool = False¶
Should we expose the package manager to the user?
Virtual package manager are just skeleton classes used to factorize code among managers of the same family.
- wikipedia_url: str | None = None¶
English Wikipedia article about the project, or
Nonewhen it has none.Listed last in the links of the manager’s documentation page. The article covers the project that home page names, or is a redirect Wikipedia keeps under the project’s name, landing on the part of a broader article that describes it:
Cargo_(software)opens the Cargo section of the Rust article. An article that merely mentions the project does not count, nor does one about a related subject:lazyis a Neovim plugin manager, and the Neovim article is not about it.Never inherited: the metaclass resets it to
Noneon any class not declaring its own. A subclass often wraps a distinct project, like the six AUR helpers extendingpacman, and would otherwise present pacman’s article as its own. Documentation-only, likehomepage_url.
- tests.test_cli_upgrade.probed_fake_pool(patch_pool_with)[source]¶
Yield a fake manager whose pinned package a week of cooldown holds back.
It is a
ProbedFakeManager.
- tests.test_cli_upgrade.test_upgrade_all_dates_a_held_package(invoke, probed_fake_pool)[source]¶
A held package reports its publication and when it clears the window.
- tests.test_cli_upgrade.test_upgrade_all_dates_a_held_package_serialized(invoke, probed_fake_pool)[source]¶
The serialized report carries both dates as timestamps.
- tests.test_cli_upgrade.test_upgrade_probes_each_release_once(invoke, probed_fake_pool, packages)[source]¶
The report reads the verdict the upgrade reached.
It probes no package a second time.
- tests.test_cli_upgrade.test_cooldown_verdicts_last_one_invocation(invoke, probed_fake_pool)[source]¶
Each invocation probes a release again.
A verdict never outlives the invocation that reached it.
- tests.test_cli_upgrade.test_upgrade_all_skips_a_manager_the_cooldown_cannot_gate(invoke, patch_pool_with)[source]¶
A manager that cannot enforce an active cooldown runs no upgrade.
Its trail line is
⊘, and the finisher leaves it out of the count. A skip is no failure, so the exit stays0.
- tests.test_cli_upgrade.test_upgrade_skips_a_package_the_cooldown_cannot_gate(invoke, changing_fake_pool)[source]¶
A manager that cannot enforce an active cooldown upgrades no package.
The package gets a
⊘line, and a batch that skipped every package closes on⊘too. The exit stays0.
- class tests.test_cli_upgrade.ListedFakeManager(store)[source]¶
Bases:
ChangingFakeManagerVariant that lists and upgrades its packages the way a real manager does.
The
installedlisting is what a command printed: the content ofstore, refreshed from the inventory before each call. The command line stays the same from one listing to the next, and only its output changes.Each upgrade command ends on the manager’s ID, which the interpreter ignores. Two of these managers then tell their commands apart, like
brewandcaskdo with--formulaand--cask: a lane replays the command a peer already ran, and a replayed command changes nothing.Initialize
cli_errorslist.- store¶
The file the
installedcommand prints.
- property installed¶
List packages currently installed on the system.
Optional. Will be simply skipped by mpm if not implemented.
- upgrade_all_cli()[source]¶
Static upgrade CLIs declare the upgrade capabilities.
Never invoked by
meta_package_manager.bar_plugin_renderer.BarPluginRenderer.add_upgrade_cli(), which routes menu actions throughmpmitself, but their presence is what makesmeta_package_manager.capabilities.implements()report theupgradeandupgrade_alloperations as supported, so the fake manager’s menu lines carry an action.
- cli_names: tuple[str, ...] = ('listedfakemanager',)¶
List of CLI names the package manager is known as.
This list of recognized CLI names is ordered by priority. That way we can influence the search of the right binary.
- ..hint::
This was helpful in the case of the Python transition from 2.x to 3.x, where multiple versions of the same executable were named
pythonorpython3.
By default, this property’s value is derived from the manager’s ID (see the
MetaPackageManager.__init__method above).
- documentation_url: str | None = None¶
Entry point of the project’s own documentation, or
Nonewhen it has none.The manual, the documentation site, or the man page of the CLI
mpmdrives: whichever page a user reads to learn the commands this manager wraps. Listed betweenhomepage_urlandrepository_urlin the links of the manager’s page, so a reader reaching for the tool’s reference finds it in the box of facts rather than in the prose below it.Left unset where a link would state a fact twice or invent one: a tool documenting itself in its repository alone, whose README
repository_urlalready reaches. A page about the ecosystem rather than the tool does not qualify either.Where a project’s only site is its manual, that address belongs here and
homepage_urlstays unset: the slot names what the page is, and a reader reaching for the reference looks under the documentation link.Never inherited, like every other link: the AUR helpers extending
pacmaneach document themselves.
- homepage_url: str | None = None¶
Home page of the project, only used in documentation for reference.
Left unset when the home page is the project’s repository, which
repository_urlnames on its own, and when it is the project’s manual, whichdocumentation_urlnames. Never inherited, like the other links.
- id: str = 'listedfakemanager'¶
Package manager’s ID.
Derived by defaults from the lower-cased class name in which underscores
_are replaced by dashes-.This ID must be unique among all package manager definitions and lower-case, as they’re used as feature flags for the mpm CLI.
- name: str = 'ListedFakeManager'¶
Return package manager’s common name.
Default value is based on class name.
- repository_url: str | None = None¶
Repository holding the project’s code, or
Nonewhen it has no public one.Linked from the manager’s documentation page. Also what the weekly metrics sample reads:
docs/docs_update.pywrites it into the[tool.repomatic.metrics] subjectsofpyproject.tomlwhen its forge answers the sampler, through a mirror for a forge that does not.Never inherited, for the same reason as
wikipedia_url: the AUR helpers extendingpacmaneach live in a repository of their own.
- upgrade_one_cli(package_id, version=None)[source]¶
Returns the complete CLI to upgrade one package and one only.
Allows a specific
versionto be provided.
- virtual: bool = False¶
Should we expose the package manager to the user?
Virtual package manager are just skeleton classes used to factorize code among managers of the same family.
- wikipedia_url: str | None = None¶
English Wikipedia article about the project, or
Nonewhen it has none.Listed last in the links of the manager’s documentation page. The article covers the project that home page names, or is a redirect Wikipedia keeps under the project’s name, landing on the part of a broader article that describes it:
Cargo_(software)opens the Cargo section of the Rust article. An article that merely mentions the project does not count, nor does one about a related subject:lazyis a Neovim plugin manager, and the Neovim article is not about it.Never inherited: the metaclass resets it to
Noneon any class not declaring its own. A subclass often wraps a distinct project, like the six AUR helpers extendingpacman, and would otherwise present pacman’s article as its own. Documentation-only, likehomepage_url.
- class tests.test_cli_upgrade.ListedPeerFakeManager(store)[source]¶
Bases:
ListedFakeManagerA second manager, for the lock family the first one cannot form alone.
Initialize
cli_errorslist.- cli_names: tuple[str, ...] = ('listedpeerfakemanager',)¶
List of CLI names the package manager is known as.
This list of recognized CLI names is ordered by priority. That way we can influence the search of the right binary.
- ..hint::
This was helpful in the case of the Python transition from 2.x to 3.x, where multiple versions of the same executable were named
pythonorpython3.
By default, this property’s value is derived from the manager’s ID (see the
MetaPackageManager.__init__method above).
- documentation_url: str | None = None¶
Entry point of the project’s own documentation, or
Nonewhen it has none.The manual, the documentation site, or the man page of the CLI
mpmdrives: whichever page a user reads to learn the commands this manager wraps. Listed betweenhomepage_urlandrepository_urlin the links of the manager’s page, so a reader reaching for the tool’s reference finds it in the box of facts rather than in the prose below it.Left unset where a link would state a fact twice or invent one: a tool documenting itself in its repository alone, whose README
repository_urlalready reaches. A page about the ecosystem rather than the tool does not qualify either.Where a project’s only site is its manual, that address belongs here and
homepage_urlstays unset: the slot names what the page is, and a reader reaching for the reference looks under the documentation link.Never inherited, like every other link: the AUR helpers extending
pacmaneach document themselves.
- homepage_url: str | None = None¶
Home page of the project, only used in documentation for reference.
Left unset when the home page is the project’s repository, which
repository_urlnames on its own, and when it is the project’s manual, whichdocumentation_urlnames. Never inherited, like the other links.
- id: str = 'listedpeerfakemanager'¶
Package manager’s ID.
Derived by defaults from the lower-cased class name in which underscores
_are replaced by dashes-.This ID must be unique among all package manager definitions and lower-case, as they’re used as feature flags for the mpm CLI.
- name: str = 'ListedPeerFakeManager'¶
Return package manager’s common name.
Default value is based on class name.
- repository_url: str | None = None¶
Repository holding the project’s code, or
Nonewhen it has no public one.Linked from the manager’s documentation page. Also what the weekly metrics sample reads:
docs/docs_update.pywrites it into the[tool.repomatic.metrics] subjectsofpyproject.tomlwhen its forge answers the sampler, through a mirror for a forge that does not.Never inherited, for the same reason as
wikipedia_url: the AUR helpers extendingpacmaneach live in a repository of their own.
- virtual: bool = False¶
Should we expose the package manager to the user?
Virtual package manager are just skeleton classes used to factorize code among managers of the same family.
- wikipedia_url: str | None = None¶
English Wikipedia article about the project, or
Nonewhen it has none.Listed last in the links of the manager’s documentation page. The article covers the project that home page names, or is a redirect Wikipedia keeps under the project’s name, landing on the part of a broader article that describes it:
Cargo_(software)opens the Cargo section of the Rust article. An article that merely mentions the project does not count, nor does one about a related subject:lazyis a Neovim plugin manager, and the Neovim article is not about it.Never inherited: the metaclass resets it to
Noneon any class not declaring its own. A subclass often wraps a distinct project, like the six AUR helpers extendingpacman, and would otherwise present pacman’s article as its own. Documentation-only, likehomepage_url.