-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate and redirect the imports of ``saltfactories.utils.{ports,pr…
…ocesses}`` Fixes #106 Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
- Loading branch information
Showing
7 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Instead of just removing `saltfactories.utils.ports` and `saltfactories.utils.processes`, redirect the imports to the right library and show a deprecation warning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# pylint: disable=wildcard-import,unused-wildcard-import | ||
from pytestshellutils.utils.ports import * | ||
|
||
from saltfactories.utils import warn_until | ||
|
||
warn_until( | ||
"2.0.0", | ||
"The 'ports' module is deprecated and will cease to exist after " | ||
"pytest-salt-factories {version}. Please import 'ports' from " | ||
"'pytestshellutils.utils' instead.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pytestshellutils.utils.ports import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# pylint: disable=wildcard-import,unused-wildcard-import | ||
from pytestshellutils.utils.processes import * | ||
|
||
from saltfactories.utils import warn_until | ||
|
||
warn_until( | ||
"2.0.0", | ||
"The 'processes' module is deprecated and will cease to exist after " | ||
"pytest-salt-factories {version}. Please import 'processes' from " | ||
"'pytestshellutils.utils' instead.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pytestshellutils.utils.processes import * |