Dependencies check fail

In my setup.py i have the following requirements:

install_requires=[
        "setuptools",
        # -*- Extra requirements: -*-
        "z3c.jbot",
        "plone.api>=1.8.4",
        "plone.app.dexterity",
        "plone.restapi",
        "Products.GenericSetup",
        "plone.base",
    ],
    extras_require={
        "test": [
            "plone.app.testing",
            "plone.testing>=5.0.0",
            "plone.app.robotframework[debug]",
            "plone.base",
            "plone.browserlayer",
            "robotsuite",
            "plone.api",
            "plone.app.dexterity",
            "plone.restapi",
        ],
    },

But the dependencies check (configured via plone/meta package) fail with:

Requirements that should be test requirements
=============================================
     plone.api
     plone.app.dexterity
     plone.restapi

The related section in my tox.ini:

[testenv:dependencies]
description = check if the package defines all its dependencies
skip_install = true
deps =
    build
    z3c.dependencychecker==2.11
commands =
    python -m build --sdist
    dependencychecker

Any hints?

All of them are both in extras_require but also on install_requires. z3c.dependencychecker thinks that you only need them for testing, so removing them from install_requires should be enough :crossed_fingers:t4:

You can always tell z3c.dependencychecker to ignore some packages if you still want to have them in both lists.

1 Like

Thanks!