Skip to content

fix(setup): remove deprecated tests_require parameter#203

Open
BlocksecPHD wants to merge 3 commits intopytest-dev:masterfrom
BlocksecPHD:fix/remove-tests-require-198
Open

fix(setup): remove deprecated tests_require parameter#203
BlocksecPHD wants to merge 3 commits intopytest-dev:masterfrom
BlocksecPHD:fix/remove-tests-require-198

Conversation

@BlocksecPHD
Copy link
Copy Markdown

Summary

Fixes #198

The parameter was deprecated in setuptools and removed in recent versions. This fix:

  1. Removes the variable and parameter from
  2. Fixes which was incorrectly set to (nested empty list) instead of the actual test dependencies from

Changes

  • Removed deprecated line
  • Changed to read from
  • Removed from setup() call

Testing

All 35 tests pass:

============================= test session starts ==============================
35 passed, 1 skipped

No setuptools deprecation warnings are produced when running pip install -e ..

Funan Zhou and others added 3 commits March 31, 2026 07:04
The tests_require parameter was deprecated in setuptools and removed.
This fix removes the tests_require variable and parameter from setup.py.

Additionally fixes extras_require['tests'] which was incorrectly set to
[tests_require] (nested empty list) instead of the actual test dependencies
from requirements/test.txt.

Closes pytest-dev#198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setuptools' tests_require deprecation

1 participant