From 55cfcaae4c7624faa9d9aa9cd98da32e1f326230 Mon Sep 17 00:00:00 2001 From: Joao Andre Date: Mon, 5 Aug 2024 20:14:43 -0300 Subject: [PATCH] chore: update pyproject.toml in packing action --- .github/workflows/packaging.yml | 12 ++++++++++++ tools/release/setup_project.py | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 7042afd080..8b4a8756c7 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -31,12 +31,24 @@ jobs: with: python-version: ${{ matrix.python-versions }} + - name: Install Dependencies + run: | + pip install toml + - name: Build frontends run: | python tools/frontend/bundle_build.py + - name: Update pyproject.toml + run: | + python tools/release/setup_project.py taipy/config + python tools/release/setup_project.py taipy/core + python tools/release/setup_project.py taipy/gui + python tools/release/setup_project.py . + - name: Install Taipy without dependencies run: | + pip install taipy/config taipy/core taipy/gui pip install . - name: Remove local folder diff --git a/tools/release/setup_project.py b/tools/release/setup_project.py index 3522d4db26..a8afcaadbc 100644 --- a/tools/release/setup_project.py +++ b/tools/release/setup_project.py @@ -20,7 +20,7 @@ import toml # type: ignore -def get_requirements(pkg: str): +def get_requirements(pkg: str, env: str = "dev") -> list: # get requirements from the different setups in tools/packages (removing taipy packages) reqs = set() pkg_name = pkg if pkg == "taipy" else f"taipy-{pkg}" @@ -29,7 +29,9 @@ def get_requirements(pkg: str): requirements_file = os.path.join(package_path, "setup.requirements.txt") if os.path.exists(requirements_file): reqs.update(Path(requirements_file).read_text("UTF-8").splitlines()) - return [r for r in reqs if r and not r.startswith("taipy")] + if env == "dev": + return [r for r in reqs if r and not r.startswith("taipy")] + return list(reqs) def update_pyproject(version_path: str, pyproject_path: str):