Skip to content

Commit

Permalink
Document installation of mpm with brew and with itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jun 16, 2022
1 parent abc600a commit 5239072
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This version is not released yet and is under active development.
- \[mpm,pip,pipx,pacman\] Add `remove` operation.
- \[mpm\] Add description in search results.
- \[mpm\] Always refilters search results manually to refine gross matchings.
- \[mpm\] Document Arch Linux installation. Refs {issue}`527`.
- \[mpm\] Document `brew` and Arch Linux installation. Refs {issue}`527`.
- \[mpm\] Group workflow jobs so new commits cancels in-progress execution triggered by previous commits.
- \[mpm\] Run tests on early Python 3.11 releases.

Expand Down
20 changes: 19 additions & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,32 @@ If you have difficulties to use `pip`, see
[`pip`'s own installation instructions](https://pip.pypa.io/en/stable/installation/).
````
````{tab-item} brew
An `mpm` formula has been contributed by [@Hasnep](https://github.com/Hasnep) and is [available at `hasnep/tap/meta-package-manager`](https://github.com/Hasnep/homebrew-tap/blob/main/Formula/meta-package-manager.rb):
```{code-block} shell-session
$ brew install hasnep/tap/meta-package-manager
```
````
````{tab-item} Arch Linux
`mpm` is [available on AUR](https://aur.archlinux.org/packages/meta-package-manager):
An `mpm` package has been contributed by [@autinerd](https://github.com/autinerd) and is [available on AUR](https://aur.archlinux.org/packages/meta-package-manager):
```{code-block} shell-session
$ yay -S meta-package-manager
```
````
````{tab-item} mpm
In a funny twist, `mpm` can be installed by itself:
```{code-block} shell-session
$ mpm --brew install meta-package-manager
$ mpm --pip install meta-package-manager
$ mpm --pipx install meta-package-manager
$ mpm --yay install meta-package-manager
```
````
`````

````{admonition} Danger: **Misleading package name**
Expand Down
10 changes: 7 additions & 3 deletions meta_package_manager/tests/test_cli_install_remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def subcmd():

class TestInstallRemove(CLISubCommandTests):
"""Install and remove operations are siblings and sensible, so we regroup them under
the same test suite."""
the same test suite.
Install mpm with itself when we can, so we can test externally contributed packaging.
See: https://github.com/kdeldycke/meta-package-manager/issues/527
"""

strict_selection_match = False
""" Install sub-command try each user-selected manager until it find one providing
Expand All @@ -48,7 +52,8 @@ def test_no_package_id(self, invoke, operation):
"apm": "markdown-pdf",
"apt": "wget",
"apt-mint": "exiftool",
"brew": "jpeginfo",
# https://github.com/Hasnep/homebrew-tap/blob/main/Formula/meta-package-manager.rb
"brew": "hasnep/tap/meta-package-manager",
"cargo": "colorous",
"cask": "pngyu",
"choco": "ccleaner",
Expand All @@ -67,7 +72,6 @@ def test_no_package_id(self, invoke, operation):
"steamcmd": "740",
"vscode": "tamasfe.even-better-toml",
"yarn": "markdown",
# Install mpm with itself:
# https://aur.archlinux.org/packages/meta-package-manager
"yay": "meta-package-manager",
"yum": "usd",
Expand Down

0 comments on commit 5239072

Please sign in to comment.