Skip to content

Commit

Permalink
Update Publish Documentation to newer versions of stuff so it runs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel authored Jan 24, 2024
1 parent 0f7cfd8 commit 2ccb445
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 10 additions & 11 deletions pants-plugins/mitol/docs/register.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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__)

Expand All @@ -35,6 +34,7 @@ class DocsGoalSubsystem(GoalSubsystem):

class Docs(Goal):
subsystem_cls = DocsGoalSubsystem
environment_behavior = None


class SphinxSources(StringField):
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2ccb445

Please sign in to comment.