Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /langflow-ai_langflow /scripts /ci /update_pyproject_combined.py
| #!/usr/bin/env python | |
| # scripts/ci/update_pyproject_combined.py | |
| import sys | |
| from pathlib import Path | |
| from update_lf_base_dependency import update_lfx_dep_in_base | |
| from update_pyproject_version import update_pyproject_version | |
| from update_uv_dependency import update_uv_dep as update_version_uv_dep | |
| # Add the current directory to the path so we can import the other scripts | |
| current_dir = Path(__file__).resolve().parent | |
| sys.path.append(str(current_dir)) | |
| def update_projects_for_nightly(main_tag: str, base_tag: str, lfx_tag: str) -> None: | |
| """Apply a coordinated full/base/LFX nightly version chain.""" | |
| main_version = main_tag.removeprefix("v") | |
| base_version = base_tag.removeprefix("v") | |
| lfx_version = lfx_tag.removeprefix("v") | |
| # Lockstep invariant: full -> base must use dev versions published by this | |
| # run. pypi_nightly_tag.py gives both packages the same tag. | |
| # First handle base package updates (canonical name kept). | |
| update_pyproject_version("src/backend/base/pyproject.toml", base_version) | |
| # Update LFX dependency in langflow-base (exact canonical dev pin). | |
| update_lfx_dep_in_base("src/backend/base/pyproject.toml", lfx_version) | |
| # Then handle main package updates (canonical name kept). | |
| update_pyproject_version("pyproject.toml", main_version) | |
| # Main delegates directly to the product-aligned base distribution. | |
| update_version_uv_dep(base_version) | |
| def main(): | |
| """Universal update script that handles base and main in a single run. | |
| The packages keep their CANONICAL names (``langflow``, ``langflow-base``) -- they are NOT | |
| renamed to ``*-nightly``. This script only sets the nightly ``.devN`` versions and re-pins the | |
| inter-package dependencies to exact canonical dev versions. See ``src/bundles/NIGHTLY.md``. | |
| Usage: | |
| update_pyproject_combined.py main <main_tag> <base_tag> <lfx_tag> | |
| """ | |
| arg_count = 5 | |
| if len(sys.argv) != arg_count: | |
| print("Usage:") | |
| print(" update_pyproject_combined.py main <main_tag> <base_tag> <lfx_tag>") | |
| sys.exit(1) | |
| mode = sys.argv[1] | |
| if mode != "main": | |
| print("Only 'main' mode is supported") | |
| print("Usage: update_pyproject_combined.py main <main_tag> <base_tag> <lfx_tag>") | |
| sys.exit(1) | |
| update_projects_for_nightly(sys.argv[2], sys.argv[3], sys.argv[4]) | |
| if __name__ == "__main__": | |
| main() | |
Xet Storage Details
- Size:
- 2.38 kB
- Xet hash:
- 9ebe4c73d6fe96853067d279fba3724c7ba306238b1e977627caf8d954719a25
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.