Skip to content

The pytest-runner dependency and "setup.py test" are obsolete #55

@musicinmybrain

Description

@musicinmybrain

This project depends on pytest-runner,

setup_requires =
setuptools_scm
pytest-runner

but it has been deprecated upstream for some time, and the project is now archived.

Furthermore, pytest-runner,

# ------------- Others -------------
# In order to be able to execute 'python setup.py test'
# from https://docs.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner
[aliases]
test = pytest

and the use of (also-deprecated) tests_require are all to support python setup.py test, but that usage has been deprecated for about five years, and is removed since setuptools 72.

See also #50 (comment).

Please consider removing pytest-runner, tests_require, etc. and using something like a tests extra or dependency group to specify test dependencies.

I’m aware that this project hasn’t been actively developed lately, but I’m working on a PR to remove the pytest-runner dependency from Fedora’s python-pytest-steps package – with a targeted patch that doesn’t fully migrate all use cases and is not adequate to offer as a PR here – and I’m opening this issue both to provide information and so that we have something to track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions