diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml index f2f5683523f5..3fb897b96d4d 100644 --- a/.github/header-checker-lint.yml +++ b/.github/header-checker-lint.yml @@ -1,6 +1,6 @@ {"allowedCopyrightHolders": ["Google LLC", "Google, Inc"], "allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"], - "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/requirements-composer.txt", "**/__init__.py"], + "ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/requirements-composer.txt", "**/__init__.py", "**/constraints.txt", "**/constraints-test.txt"], "sourceFileExtensions": [ "ts", "js", diff --git a/noxfile-template.py b/noxfile-template.py index 1b11728e6f53..8d8d188229ad 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -175,10 +175,14 @@ def blacken(session: nox.sessions.Session) -> None: def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: """Runs py.test for a particular project.""" if os.path.exists("requirements.txt"): - session.install("-r", "requirements.txt") + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + session.install("-r", "requirements.txt") if os.path.exists("requirements-test.txt"): - session.install("-r", "requirements-test.txt") + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + session.install("-r", "requirements-test.txt") if INSTALL_LIBRARY_FROM_SOURCE: session.install("-e", _get_repo_root()) diff --git a/renovate.json b/renovate.json index a78e567856d8..1ffa7996b02e 100644 --- a/renovate.json +++ b/renovate.json @@ -6,9 +6,8 @@ "rebaseWhen": "never", "masterIssue": true, "pip_requirements": { - "fileMatch": ["requirements-test.txt", "requirements-composer.txt"] + "fileMatch": ["requirements-test.txt", "requirements-composer.txt", "constraints.txt", "constraints-test.txt"] }, - "ignoreDeps":["cattrs"], "packageRules": [ { "packagePatterns": ["pytest"],