OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
remove update pyproject name
Lucas Oliveira243fa1fb3817
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.ymlindex ba571c2ee..08b2773ac 100644--- a/.github/workflows/nightly-build.yml+++ b/.github/workflows/nightly-build.yml@@ -77,7 +77,7 @@ jobs:- name: Update pyproject.tomlrun: |- python3 scripts/ci/update_pyproject_combined.py main ${{ steps.ensure_unique_tag.outputs.nightly_version }}+ python3 scripts/ci/update_pyproject_version.py ${{ steps.ensure_unique_tag.outputs.nightly_version }}- name: Commit and push tagrun: |diff --git a/scripts/ci/update_pyproject_combined.py b/scripts/ci/update_pyproject_combined.pydeleted file mode 100644index 01949123f..000000000--- a/scripts/ci/update_pyproject_combined.py+++ /dev/null@@ -1,30 +0,0 @@-import sys-from pathlib import Path--# Add current dir to sys.path-current_dir = Path(__file__).resolve().parent-current_dir_str = str(current_dir)-if current_dir_str not in sys.path:- sys.path.append(current_dir_str)--from update_pyproject_name import update_pyproject_name-from update_pyproject_version import update_version--def main():- if len(sys.argv) != 3:- print("Usage: update_pyproject_combined.py main <main_tag>")- sys.exit(1)-- mode = sys.argv[1]- main_tag = sys.argv[2]-- if mode != "main":- print("Only 'main' mode is supported")- sys.exit(1)-- # Update name and version for openrag- update_pyproject_name("openrag-nightly")- update_version(main_tag)--if __name__ == "__main__":- main()diff --git a/scripts/ci/update_pyproject_name.py b/scripts/ci/update_pyproject_name.pydeleted file mode 100644index 20d46a261..000000000--- a/scripts/ci/update_pyproject_name.py+++ /dev/null@@ -1,29 +0,0 @@-import re-import sys-from pathlib import Path--def update_pyproject_name(new_name: str):- path = Path("pyproject.toml")- if not path.exists():- print("File pyproject.toml not found")- raise SystemExit(1)-- content = path.read_text()- new_content = re.sub(r'^name = "[^"]+"', f'name = "{new_name}"', content, flags=re.M)-- # Fail if the name pattern was not found / no substitution was made- if new_content == content:- print(- 'Error: Could not find a line matching `name = "..."` in pyproject.toml to update.',- file=sys.stderr,- )- sys.exit(1)-- path.write_text(new_content)- print(f"Updated name in pyproject.toml to {new_name}")--if __name__ == "__main__":- if len(sys.argv) != 2:- print("Usage: update_pyproject_name.py <new_name>")- sys.exit(1)- update_pyproject_name(sys.argv[1])