Skip to content

Commit

Permalink
Add support for new eopkg manager
Browse files Browse the repository at this point in the history
Closes #1093
  • Loading branch information
kdeldycke committed Nov 15, 2024
1 parent 6caf061 commit 22d6686
Show file tree
Hide file tree
Showing 10 changed files with 360 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/labels-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"color": "#bfdadc",
"description": "emerge"
},
{
"name": "📦 manager: eopkg",
"color": "#bfdadc",
"description": "eopkg"
},
{
"name": "📦 manager: flatpak",
"color": "#bfdadc",
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
> [!IMPORTANT]
> This version is not released yet and is under active development.
- \[eopkg\] Add support for new `eopkg` manager. Closes {issue}`1093`.
- \[fwupd\] Add support for new `fwupd` manager. Closes {issue}`1289`.
- \[dnf5\] Add support for new `dnf5` manager. Refs {pr}`1423`.
- \[mpm\] Hide `--manager` and `--exclude` options from help output and silence deprecation warnings. Closes {issue}`1358`.
Expand Down
2 changes: 1 addition & 1 deletion docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ but [there might be a greater need for such tools](usecase.md) out there. Here i
| `dotnet` | || | | |
| `emacs` | || | | |
| `emerge` ||||||
| `eopkg` | | | | ||
| `eopkg` | | | | ||
| `etc-update` | || | | |
| `fisher` | || | | |
| `flatpak` ||| | ||
Expand Down
344 changes: 344 additions & 0 deletions meta_package_manager/managers/eopkg.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions meta_package_manager/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from .managers.composer import Composer
from .managers.dnf import DNF, DNF5, YUM
from .managers.emerge import Emerge
from .managers.eopkg import EOPKG
from .managers.flatpak import Flatpak
from .managers.fwupd import FWUPD
from .managers.gem import Gem
Expand Down Expand Up @@ -68,6 +69,7 @@
DNF,
DNF5,
Emerge,
EOPKG,
Flatpak,
FWUPD,
Gem,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ keywords = [
'dnf',
'dnf5',
'emerge',
'eopkg',
'flatpak',
'fwupd',
'gem',
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Meta Package Manager,composer,1
Meta Package Manager,dnf,1
Meta Package Manager,dnf5,1
Meta Package Manager,emerge,1
Meta Package Manager,eopkg,1
Meta Package Manager,flatpak,1
Meta Package Manager,fwupd,1
Meta Package Manager,gem,1
Expand Down Expand Up @@ -123,6 +124,7 @@ Meta Package Manager,zypper,1
| [`dnf`](https://github.com/rpm-software-management/dnf) | 4.0.0 | 🅱️ | 🐧 | || ||||||||||
| [`dnf5`](https://github.com/rpm-software-management/dnf5) | 5.0.0 | 🅱️ | 🐧 | || ||||||||||
| [`emerge`](https://wiki.gentoo.org/wiki/Portage#emerge) | 3.0.0 | 🅱️ | 🐧 | || ||||||| |||
| [`eopkg`](https://github.com/getsolus/eopkg/) | 3.2.0 | | 🐧 | | | ||||||||||
| [`flatpak`](https://flatpak.org) | 1.2.0 | 🅱️ | 🐧 | || ||||||| | ||
| [`fwupd`](https://fwupd.org) | 1.9.5 | | 🐧 | | | ||| |||| || |
| [`gem`](https://rubygems.org) | 2.5.0 | 🅱️ | 🐧 | 🍎 || 🪟 |||||||| ||
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def subcmd():
"dnf": "usd",
"dnf5": "usd",
"emerge": "dev-vcs/git",
"eopkg": "firefox",
"flatpak": "org.gnome.Dictionary",
"fwupd": "f95c9218acd12697af946874bfe4239587209232",
"gem": "markdown",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def test_manager_classes_order():

def test_manager_count():
"""Check all implemented package managers are accounted for, and unique."""
assert len(manager_classes) == 34
assert len(pool) == 34
assert len(manager_classes) == 35
assert len(pool) == 35
assert len(pool) == len(pool.all_manager_ids)
assert pool.all_manager_ids == tuple(sorted(set(pool)))

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22d6686

Please sign in to comment.