Skip to content

Commit

Permalink
Add missing reference to Nobara distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Dec 24, 2024
1 parent 536d3d0 commit 83e12d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 4 additions & 5 deletions extra_platforms/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,15 @@ def is_midnightbsd() -> bool:
"""Return `True` only if current platform is MidnightBSD."""
return sys.platform.startswith("midnightbsd") or distro.id() == "midnightbsd"

@cache
def is_nobara() -> bool:
"""Return `True` only if current platform is Nobara Linux."""
return distro.id() == "nobara"

@cache
def is_netbsd() -> bool:
"""Return `True` only if current platform is NetBSD."""
return sys.platform.startswith("netbsd") or distro.id() == "netbsd"

@cache
def is_nobara() -> bool:
"""Return `True` only if current platform is Nobara Linux."""
return distro.id() == "nobara"

@cache
def is_openbsd() -> bool:
Expand Down
2 changes: 2 additions & 0 deletions extra_platforms/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def __bool__(self) -> bool:
"skip_mandriva", # noqa: F405, F822
"skip_midnightbsd", # noqa: F405, F822
"skip_netbsd", # noqa: F405, F822
"skip_nobara", # noqa: F405, F822
"skip_openbsd", # noqa: F405, F822
"skip_opensuse", # noqa: F405, F822
"skip_oracle", # noqa: F405, F822
Expand Down Expand Up @@ -179,6 +180,7 @@ def __bool__(self) -> bool:
"unless_mandriva", # noqa: F405, F822
"unless_midnightbsd", # noqa: F405, F822
"unless_netbsd", # noqa: F405, F822
"unless_nobara", # noqa: F405, F822
"unless_openbsd", # noqa: F405, F822
"unless_opensuse", # noqa: F405, F822
"unless_oracle", # noqa: F405, F822
Expand Down

0 comments on commit 83e12d6

Please sign in to comment.