[MacPorts] #55602: py-pytest: broken since v3.3 upgrade; pluggy dependency missing
MacPorts
noreply at macports.org
Thu Dec 28 18:56:58 UTC 2017
#55602: py-pytest: broken since v3.3 upgrade; pluggy dependency missing
--------------------+-----------------------
Reporter: cdeil | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py-pytest
--------------------+-----------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/55602>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list