Skip to content

Remove pytest-runner / setup.py test support#523

Merged
KevinRK29 merged 4 commits intodropbox:mainfrom
musicinmybrain:pytest-runner
May 6, 2026
Merged

Remove pytest-runner / setup.py test support#523
KevinRK29 merged 4 commits intodropbox:mainfrom
musicinmybrain:pytest-runner

Conversation

@musicinmybrain
Copy link
Copy Markdown
Contributor

Removes pytest-runner from setup_requires, and removes test_requires, which is deprecated and only useful with setup.py test.

The pytest-runner package has been deprecated upstream for some time, and the project is now archived:
https://github.com/pytest-dev/pytest-runner/tree/v6.0.1?tab=readme-ov-file#deprecation-notice

Furthermore, the "setup.py test" command was removed in setuptools 72: https://github.com/pypa/setuptools/blob/v75.8.0/NEWS.rst#v7200

This does not affect running the tests with pytest or tox.

Fixes #401.

This PR is similar to dropbox/stone#354.

Checklist

General Contributing

  • Have you read the Code of Conduct and signed the CLA?

Is This a Code Change?

  • Non-code related change (markdown/git settings etc)
  • SDK Code Change
  • Example/Test Code Change

Validation

  • Does tox pass? (no new regressions, anyway)
  • Do the tests pass?

@alyx-db
Copy link
Copy Markdown

alyx-db commented Jan 26, 2026

@musicinmybrain

Thanks for your submission! I'll pass this along to the team for review.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.57%. Comparing base (b848f4b) to head (adeb64b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #523      +/-   ##
==========================================
- Coverage   65.12%   64.57%   -0.55%     
==========================================
  Files          31       31              
  Lines       54897    54897              
  Branches     3902     3902              
==========================================
- Hits        35749    35452     -297     
- Misses      18989    19411     +422     
+ Partials      159       34     -125     
Flag Coverage Δ
integration ?
unit 64.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KevinRK29 KevinRK29 merged commit 8223031 into dropbox:main May 6, 2026
18 of 31 checks passed
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.

pytest-runner is deprecated

3 participants