Opened 6 years ago

Closed 6 years ago

#55602 closed defect (fixed)

py-pytest: broken since v3.3 upgrade; pluggy dependency missing

Reported by: cdeil (Christoph Deil) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-pytest

Description

I am getting this error; pytest is currently completely broken:

$ python -m pytest
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pytest.py", line 9, in <module>
    from _pytest.config import (
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py", line 15, in <module>
    import _pytest.hookspec  # the extension point definitions
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/hookspec.py", line 3, in <module>
    from pluggy import HookspecMarker
ModuleNotFoundError: No module named 'pluggy'

This is the version I have; as you can see, pluggy is not listed as a dependency:

$ port info py36-pytest
py36-pytest @3.3.1 (python, devel)

Description:          The py.test` testing tool makes it easy to write small tests, yet scales to support complex functional testing.
Homepage:             http://pytest.org

Build Dependencies:   py36-setuptools_scm
Library Dependencies: python36, py36-setuptools, py36-py, py36-six, py36-attrs

The changelog for the pytest v3.3 release does mention (in a not very prominent place) that the vendored pluggy was removed: https://docs.pytest.org/en/latest/changelog.html#id38

As you can see here, pytest 3.3 needs pluggy 0.5 or 0.6: https://github.com/pytest-dev/pytest/blob/08997279f40f9c972c116195cc4d83f33ef17b0e/setup.py#L56

pluggy is currently at version 0.4 in Macports, so that needs an update and then pluggy needs to be added as a dependency for pytest.

Change History (2)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: stromnov pedro.salgado@… removed
Owner: set to stromnov
Status: newassigned

comment:2 Changed 6 years ago by Andrew Stromnov <stromnov@…>

Resolution: fixed
Status: assignedclosed

In b68d3b8d0b4134a571c2647c86d0ed57104fd57c/macports-ports:

py-pytest: add py-pluggy dependency

Closes: #55602

Note: See TracTickets for help on using tickets.