From bd20fcbc89adfa97968e4d3a635205a6957257b4 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 27 Jul 2020 21:04:55 -0600 Subject: [PATCH] "Fix" tests, add production RootRule and rule rexports :( # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- src/python/pants/backend/python/rules/python_sources.py | 1 + src/python/pants/backend/python/typecheck/mypy/rules.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/pants/backend/python/rules/python_sources.py b/src/python/pants/backend/python/rules/python_sources.py index ddda6ae5dcf..8532f7ba4a5 100644 --- a/src/python/pants/backend/python/rules/python_sources.py +++ b/src/python/pants/backend/python/rules/python_sources.py @@ -142,5 +142,6 @@ def rules(): return [ *collect_rules(), *determine_source_files.rules(), + RootRule(StrippedPythonSourcesRequest), RootRule(UnstrippedPythonSourcesRequest), ] diff --git a/src/python/pants/backend/python/typecheck/mypy/rules.py b/src/python/pants/backend/python/typecheck/mypy/rules.py index 534fdd86357..eaaf36381bf 100644 --- a/src/python/pants/backend/python/typecheck/mypy/rules.py +++ b/src/python/pants/backend/python/typecheck/mypy/rules.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Tuple -from pants.backend.python.rules import download_pex_bin, pex +from pants.backend.python.rules import download_pex_bin, pex, python_sources from pants.backend.python.rules.pex import ( Pex, PexInterpreterConstraints, @@ -140,6 +140,7 @@ def rules(): *determine_source_files.rules(), *pants_bin.rules(), *pex.rules(), + *python_sources.rules(), *python_native_code.rules(), *strip_source_roots.rules(), *subprocess_environment.rules(),