Skip to content

Commit

Permalink
Merge pull request regro#2139 from ytausch/update_one_package
Browse files Browse the repository at this point in the history
Support Updating Single Package, Refactoring update_upstream_versions
  • Loading branch information
beckermr authored Feb 13, 2024
2 parents 9dd5b94 + 8cc0c4a commit e9ad40f
Show file tree
Hide file tree
Showing 5 changed files with 1,067 additions and 114 deletions.
16 changes: 14 additions & 2 deletions conda_forge_tick/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import time
from typing import Optional

import click
from click import IntRange
Expand Down Expand Up @@ -73,13 +74,24 @@ def make_graph(ctx: CliContext) -> None:
@main.command(name="update-upstream-versions")
@job_option
@n_jobs_option
@click.argument(
"package",
required=False,
)
@pass_context
def update_upstream_versions(ctx: CliContext, job: int, n_jobs: int) -> None:
def update_upstream_versions(
ctx: CliContext, job: int, n_jobs: int, package: Optional[str]
) -> None:
"""
Update the upstream versions of feedstocks in the graph.
If PACKAGE is given, only update that package, otherwise update all packages.
"""
from . import update_upstream_versions

check_job_param_relative(job, n_jobs)

update_upstream_versions.main(ctx, job=job, n_jobs=n_jobs)
update_upstream_versions.main(ctx, job=job, n_jobs=n_jobs, package=package)


@main.command(name="auto-tick")
Expand Down
4 changes: 0 additions & 4 deletions conda_forge_tick/update_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@

# from conda_forge_tick.profiler import profiling


if typing.TYPE_CHECKING:
from .cli import CLIArgs

logger = logging.getLogger("conda_forge_tick.update_prs")

NUM_GITHUB_THREADS = 2
Expand Down
Loading

0 comments on commit e9ad40f

Please sign in to comment.