Skip to content

Commit 3c86a5c

Browse files
authored
Merge pull request #289 from deronnax/remove-packaging-dep
2 parents efafd9c + c123be0 commit 3c86a5c

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Homepage = "https://github.com/Teemu/pytest-sugar"
2525
python = ">=3.8.1,<4.0"
2626
pytest = ">=6.2.0"
2727
termcolor = ">=2.1.0"
28-
packaging = ">=21.3"
2928

3029
[tool.poetry.dev-dependencies]
3130
black = "^24.0"

pytest_sugar.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,11 @@ def pytest_configure(config) -> None:
183183

184184
if config.pluginmanager.hasplugin("xdist"):
185185
try:
186-
import xdist # type: ignore
186+
import xdist # type: ignore # noqa: F401
187187
except ImportError:
188188
pass
189189
else:
190-
from packaging import version
191-
192-
xdist_version = version.Version(xdist.__version__)
193-
if xdist_version >= version.Version("1.14"):
194-
config.pluginmanager.register(DeferredXdistPlugin())
190+
config.pluginmanager.register(DeferredXdistPlugin())
195191

196192
if IS_SUGAR_ENABLED and not getattr(config, "slaveinput", None):
197193
# Get the standard terminal reporter plugin and replace it with our

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_version(filename):
4141
zip_safe=False,
4242
include_package_data=True,
4343
platforms="any",
44-
install_requires=["pytest>=6.2.0", "termcolor>=2.1.0", "packaging>=21.3"],
44+
install_requires=["pytest>=6.2.0", "termcolor>=2.1.0"],
4545
extras_require={
4646
"dev": [
4747
"black",

0 commit comments

Comments
 (0)