Skip to content

Commit

Permalink
chore: add MANIFEST.in to subpackages
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Mar 1, 2024
1 parent e7e24ea commit 7dd001a
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-and-release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ jobs:
${{needs.fetch-versions.outputs.templates_VERSION}} \
${{ github.event.inputs.publish_on_pypi }}
- name: Copy tools
run: |
cp -r tools ${{ steps.set-variables.outputs.package_dir }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -103,7 +99,7 @@ jobs:
- name: Install GUI dependencies
if: matrix.package == 'gui'
run: |
pipenv install --dev --verbose
pipenv install --dev
- name: Generate GUI pyi file
if: matrix.package == 'gui'
Expand Down
5 changes: 5 additions & 0 deletions taipy/config/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tools *

# Package taipy-config
include *.pyi
include *.json
4 changes: 4 additions & 0 deletions taipy/core/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include tools *

# Package taipy-core
include *.json
2 changes: 2 additions & 0 deletions taipy/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def get_requirements():
# get requirements from the different setups in tools/packages (removing taipy packages)
reqs = set()
for pkg in (root_folder / "tools" / "packages").iterdir():
if "taipy-core" not in pkg:
continue
requirements_file = pkg / "setup.requirements.txt"
if requirements_file.exists():
reqs.update(requirements_file.read_text("UTF-8").splitlines())
Expand Down
2 changes: 2 additions & 0 deletions taipy/gui/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
recursive-include tools *

# Package taipy-gui
recursive-include webapp *
include version.json
Expand Down
2 changes: 2 additions & 0 deletions taipy/gui/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def get_requirements():
# get requirements from the different setups in tools/packages (removing taipy packages)
reqs = set()
for pkg in (root_folder / "tools" / "packages").iterdir():
if "taipy-gui" not in pkg:
continue
requirements_file = pkg / "setup.requirements.txt"
if requirements_file.exists():
reqs.update(requirements_file.read_text("UTF-8").splitlines())
Expand Down
4 changes: 4 additions & 0 deletions taipy/rest/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include tools *

# Package taipy-rest
include *.json
2 changes: 2 additions & 0 deletions taipy/rest/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def get_requirements():
# get requirements from the different setups in tools/packages (removing taipy packages)
reqs = set()
for pkg in (root_folder / "tools" / "packages").iterdir():
if "taipy-rest" not in pkg:
continue
requirements_file = pkg / "setup.requirements.txt"
if requirements_file.exists():
reqs.update(requirements_file.read_text("UTF-8").splitlines())
Expand Down
4 changes: 4 additions & 0 deletions taipy/templates/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include tools *

# Package taipy-templates
recursive-include .

0 comments on commit 7dd001a

Please sign in to comment.