Skip to content

Commit

Permalink
chore: update pyproject.toml in packing action
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Aug 6, 2024
1 parent dcb0443 commit 55cfcaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions tools/release/setup_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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):
Expand Down

0 comments on commit 55cfcaa

Please sign in to comment.