Some checks failed
Auto-update / Auto-update (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Nightly Build / validate-inputs (push) Has been cancelled
Nightly Build / resolve-release-branch (push) Has been cancelled
Nightly Build / create-nightly-tag (push) Has been cancelled
Nightly Build / Run Frontend Tests - Linux (push) Has been cancelled
Nightly Build / Run Frontend Tests - Windows (push) Has been cancelled
Nightly Build / Run Backend Unit Tests (push) Has been cancelled
Nightly Build / Run Nightly Langflow Build (push) Has been cancelled
Nightly Build / Send Slack Notification (push) Has been cancelled
Store pytest durations / Run pytest and store durations (push) Has been cancelled
Update OpenAPI Spec / check-openapi-updates (push) Has been cancelled
* fix: Build and install the langflow-sdk for lfx (fixes nightly) (#12481) * fix: Build and install the langflow-sdk for lfx * Publish sdk as a nightly * Update ci.yml * Update python_test.yml * Update ci.yml * fix: Properly grep for the langflow version (#12486) * fix: Properly grep for the langflow version * Mount the sdk where needed * Skip the sdk * [autofix.ci] apply automated fixes * Update setup.py * fix(docker): Remove broken npm self-upgrade from Docker images (#12309) * fix: replace grep -oP with sed for Node.js version extraction in Docker builds (#12331) The grep -oP (PCRE regex) command fails in the python:3.12.12-slim-trixie Docker base image because PCRE support is not available in the slim variant. This replaces grep -oP with portable sed -nE in all 5 Dockerfiles and adds an empty version guard to fail fast with a clear error message instead of producing a broken download URL. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com> Co-authored-by: vjgit96 <vijay.katuri@ibm.com>
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
"""Script to update SDK version for nightly builds."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
from update_pyproject_name import update_pyproject_name
|
|
from update_pyproject_name import update_uv_dep as update_workspace_dep
|
|
from update_pyproject_version import update_pyproject_version
|
|
|
|
# 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_sdk_for_nightly(sdk_tag: str):
|
|
"""Update SDK package for nightly build."""
|
|
sdk_pyproject_path = "src/sdk/pyproject.toml"
|
|
|
|
update_pyproject_name(sdk_pyproject_path, "langflow-sdk-nightly")
|
|
|
|
version = sdk_tag.lstrip("v")
|
|
update_pyproject_version(sdk_pyproject_path, version)
|
|
|
|
update_workspace_dep("pyproject.toml", "langflow-sdk-nightly")
|
|
|
|
print(f"Updated SDK package to langflow-sdk-nightly version {version}")
|
|
|
|
|
|
def main():
|
|
expected_args = 2
|
|
if len(sys.argv) != expected_args:
|
|
print("Usage: update_sdk_version.py <sdk_tag>")
|
|
sys.exit(1)
|
|
|
|
sdk_tag = sys.argv[1]
|
|
update_sdk_for_nightly(sdk_tag)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|