Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(python): use constraints files to check dependency lower bounds #869

Merged
merged 10 commits into from
Mar 23, 2021

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Dec 3, 2020

Use a constraints file when installing dependencies for system and unit tests nox sessions.

https://pip.pypa.io/en/stable/user_guide/#constraints-files

Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their syntax and contents is nearly identical to Requirements Files. There is one key difference: Including a package in a constraints file does not trigger installation of the package.

testing
├── constraints-3.10.txt
├── constraints-3.11.txt
├── constraints-3.6.txt
├── constraints-3.7.txt
├── constraints-3.8.txt
└── constraints-3.9.txt

Going forward, one constraints file (currently 3.6) will be populated with every library requirement and extra listed in the setup.py. The constraints file will pin each requirement to the lower bound. This ensures that library maintainers will see test failures if they forget to update a lower bound on a dependency.

See googleapis/python-bigquery#263 for an example

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 3, 2020
@busunkim96 busunkim96 marked this pull request as ready for review December 3, 2020 22:02
@busunkim96 busunkim96 requested a review from a team as a code owner December 3, 2020 22:02
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jun 4, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Jul 6, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Aug 15, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Aug 15, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 14, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 20, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 31, 2023
Add constraints file to test lower bounds. These files will not be used until the noxfile is changed in googleapis/synthtool#869.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: noxfile support for constraints
4 participants