Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use from conan.tools.system.package_manager import for system package manager helpers #10467

Merged
merged 1 commit into from Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion conan/tools/system/__init__.py
@@ -1 +0,0 @@
from conan.tools.system.package_manager import Apt, Yum, Dnf, Brew, Pkg, PkgUtil, Chocolatey, PacMan, Zypper
10 changes: 5 additions & 5 deletions conans/test/functional/tools/system/package_manager_test.py
Expand Up @@ -14,7 +14,7 @@ def test_apt_check():
client = TestClient()
client.save({"conanfile.py": textwrap.dedent("""
from conans import ConanFile
from conan.tools.system import Apt
from conan.tools.system.package_manager import Apt
class MyPkg(ConanFile):
settings = "arch", "os"
def system_requirements(self):
Expand All @@ -35,7 +35,7 @@ def test_build_require():
client = TestClient()
client.save({"tool_require.py": textwrap.dedent("""
from conans import ConanFile
from conan.tools.system import Apt
from conan.tools.system.package_manager import Apt
class MyPkg(ConanFile):
settings = "arch", "os"
def system_requirements(self):
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_brew_check():
client = TestClient()
client.save({"conanfile.py": textwrap.dedent("""
from conans import ConanFile
from conan.tools.system import Brew
from conan.tools.system.package_manager import Brew
class MyPkg(ConanFile):
settings = "arch"
def system_requirements(self):
Expand All @@ -82,7 +82,7 @@ def test_brew_install_check_mode():
client = TestClient()
client.save({"conanfile.py": textwrap.dedent("""
from conans import ConanFile
from conan.tools.system import Brew
from conan.tools.system.package_manager import Brew
class MyPkg(ConanFile):
settings = "arch"
def system_requirements(self):
Expand All @@ -101,7 +101,7 @@ def test_brew_install_install_mode():
client = TestClient()
client.save({"conanfile.py": textwrap.dedent("""
from conans import ConanFile
from conan.tools.system import Brew
from conan.tools.system.package_manager import Brew
class MyPkg(ConanFile):
settings = "arch"
def system_requirements(self):
Expand Down