diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index be1104a276..561fecff50 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install ghp-import run: pip install ghp-import - name: Build documentation diff --git a/pants-plugins/mitol/docs/register.py b/pants-plugins/mitol/docs/register.py index 05369e2dcf..32c4bfc7cc 100644 --- a/pants-plugins/mitol/docs/register.py +++ b/pants-plugins/mitol/docs/register.py @@ -1,3 +1,6 @@ +import logging +from dataclasses import dataclass + from pants.backend.python.target_types import ConsoleScript from pants.backend.python.util_rules.interpreter_constraints import ( InterpreterConstraints, @@ -9,21 +12,17 @@ PexRequirements, ) from pants.core.util_rules.distdir import DistDir -from pants.engine.fs import Digest, Workspace, MergeDigests, PathGlobs -from pants.engine.process import FallibleProcessResult -from pants.engine.rules import Get, MultiGet, goal_rule, collect_rules, rule +from pants.engine.fs import Digest, MergeDigests, PathGlobs, Workspace from pants.engine.goal import Goal, GoalSubsystem +from pants.engine.process import FallibleProcessResult +from pants.engine.rules import Get, collect_rules, goal_rule from pants.engine.target import ( - Target, - Tags, COMMON_TARGET_FIELDS, - Targets, - Sources, - StringField, FieldSet, + StringField, + Target, + Targets, ) -from dataclasses import dataclass -import logging logger = logging.getLogger(__name__) @@ -35,6 +34,7 @@ class DocsGoalSubsystem(GoalSubsystem): class Docs(Goal): subsystem_cls = DocsGoalSubsystem + environment_behavior = None class SphinxSources(StringField): @@ -55,7 +55,6 @@ class SphinxDocs(Target): @goal_rule async def build_docs(targets: Targets, dist_dir: DistDir, workspace: Workspace) -> Docs: - pex = await Get( Pex, PexRequest( diff --git a/pants.toml b/pants.toml index 564a171981..d68722ca4f 100644 --- a/pants.toml +++ b/pants.toml @@ -5,7 +5,7 @@ backend_packages = [ # local plugins "mitol.docs" ] -pants_version = "2.8.1rc1" +pants_version = "2.17.1" pythonpath = ["%(buildroot)s/pants-plugins"] [anonymous-telemetry]