Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/generate-test-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ cd "$(dirname "$0")"

export UV_PROJECT_ENVIRONMENT=toxgen.venv

uv run --python 3.14t --group toxgen --with-editable .. python populate_tox/populate_tox.py
uv run --python 3.14t --group toxgen --with-editable .. python populate_tox/populate_tox.py "$@"
uv run --python 3.14t --group toxgen --with-editable .. python split_tox_gh_actions/split_tox_gh_actions.py
19 changes: 12 additions & 7 deletions scripts/populate_tox/populate_tox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,13 +1210,13 @@ def get_releases_to_test(integration, package) -> list[Version] | None:
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument(
"--skip-version-update",
"--skip",
nargs="*",
default=[],
help="Integrations to skip version updates for.",
)
parser.add_argument(
"--only-update",
"--only",
nargs="*",
default=[],
help="Only update versions for these integrations (all others will be skipped).",
Expand Down Expand Up @@ -1283,12 +1283,17 @@ def main() -> dict[str, list]:
}

args = parse_args()
if args.skip_version_update and args.only_update:
print("--skip-version-update and --only-update are mutually exclusive.")
if args.skip and args.only:
print("--skip and --only are mutually exclusive.")
sys.exit(1)

only_update = set(args.only_update)
skip_version_updates = set(args.skip_version_update)
only_update = set(args.only)
if only_update:
print(f"Only updating {' '.join(only_update)}.")

skip_update = set(args.skip)
if skip_update:
print(f"Skipping updates for {' '.join(skip_update)}.")

# Process packages
packages = defaultdict(list)
Expand All @@ -1303,7 +1308,7 @@ def main() -> dict[str, list]:
package, extra = _get_package_name(integration)

test_releases = None
skip = integration in skip_version_updates or (
skip = integration in skip_update or (
only_update and integration not in only_update
)
if skip:
Expand Down
Loading