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

Remove packaging used for obsolete version check #289

Merged
merged 1 commit into from
Nov 14, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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