Skip to content

Commit

Permalink
Merge pull request #289 from deronnax/remove-packaging-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Nov 14, 2024
2 parents efafd9c + c123be0 commit 3c86a5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Homepage = "https://github.com/Teemu/pytest-sugar"
python = ">=3.8.1,<4.0"
pytest = ">=6.2.0"
termcolor = ">=2.1.0"
packaging = ">=21.3"

[tool.poetry.dev-dependencies]
black = "^24.0"
Expand Down
8 changes: 2 additions & 6 deletions pytest_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,11 @@ def pytest_configure(config) -> None:

if config.pluginmanager.hasplugin("xdist"):
try:
import xdist # type: ignore
import xdist # type: ignore # noqa: F401
except ImportError:
pass
else:
from packaging import version

xdist_version = version.Version(xdist.__version__)
if xdist_version >= version.Version("1.14"):
config.pluginmanager.register(DeferredXdistPlugin())
config.pluginmanager.register(DeferredXdistPlugin())

if IS_SUGAR_ENABLED and not getattr(config, "slaveinput", None):
# Get the standard terminal reporter plugin and replace it with our
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_version(filename):
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=["pytest>=6.2.0", "termcolor>=2.1.0", "packaging>=21.3"],
install_requires=["pytest>=6.2.0", "termcolor>=2.1.0"],
extras_require={
"dev": [
"black",
Expand Down

0 comments on commit 3c86a5c

Please sign in to comment.