You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use flexible version constraints for test dependencies to ensure compatibility with security updates while maintaining stability
Consider using compatible release specifiers (^) or greater-than-or-equal (>=) for test dependencies like pytest and flake8 to allow for patch and minor version updates that include bug fixes and security patches.
Why: Using flexible version constraints for test dependencies is a good security practice as it allows for automatic updates of patch and minor versions that include bug fixes and security patches, while still maintaining compatibility through upper bounds.
It looks like pytest-rerunfailures==14.0 will be fine for CI using py3.8
ERROR: Ignored the following versions that require a different python version: 0.28.0 Requires-Python >=3.9; 15.0 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement pytest-rerunfailures==15.0 (from versions: 0.3, 0.5, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.1.0, 2.2, 3.0, 3.1, 4.0, 4.1, 4.2, 5.0, 6.0, 7.0, 8.0, 9.0, 9.1, 9.1.1, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1, 11.1.1, 11.1.2, 12.0, 13.0, 14.0)
ERROR: No matching distribution found for pytest-rerunfailures==15.0
Hi @VietND96 , Thank you for pointing this out! I have updated the dependency to use pytest-rerunfailures==14.0, which is compatible with Python 3.8 and suitable for the CI environment. Please let me know if any additional changes are required. Thanks again for your feedback!
Thank you @yvsvarma! I merged your PR 2 CI failed on macOS runners are not related to this change.
Thank you @VietND96, for your time and efforts in reviewing this! 🙏🏻
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
requirements.txt:Justification
Verification
pytest:PR Type
Enhancement
Description
pytest==8.3.4,pytest-trio==0.8.0,pytest-rerunfailures==15.0flake8==7.1.1trio==0.27.0,requests==2.32.3Changes walkthrough 📝
requirements.txt
Pin Python test and development dependenciesexamples/python/requirements.txt
- pytest
(7.3.0), trio (0.22.0), pytest-trio (0.8.0)
- pytest-rerunfailures
(10.2), flake8 (6.1.0), requests (2.32.3)