Skip to content

Commit

Permalink
chore: include version.json explicitly in MANIFEST.in
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Aug 28, 2024
1 parent 7a44f5c commit 759fc14
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ jobs:
- name: Copy tools
run: |
ls -lah
ls -lah taipy/config
cp -r tools ${{ steps.set-variables.outputs.package_dir }}
- name: Install dependencies
Expand All @@ -135,25 +137,33 @@ jobs:
- name: Copy files from tools
run: |
ls -lah taipy/config
cp -r tools/packages/taipy-${{matrix.package}}/. ${{ steps.set-variables.outputs.package_dir }}
ls -lah taipy/config
- name: Build Package Structure
working-directory: ${{ steps.set-variables.outputs.package_dir }}
run: |
ls -lah
python tools/release/build_package_structure.py ${{ matrix.package }}
ls -lah
- name: Copy Taipy Logger
if: matrix.package == 'config'
run: |
ls -lah taipy/config
cp -r taipy/logger/. ${{ steps.set-variables.outputs.package_dir }}/taipy/logger
- name: Copy _cli folder
run: |
ls -lah taipy/config
cp -r taipy/_cli/. ${{ steps.set-variables.outputs.package_dir }}/taipy/_cli
- name: Build package
working-directory: ${{ steps.set-variables.outputs.package_dir }}
run: |
pwd
ls -lah taipy/config
python -m build
for file in ./dist/*; do mv "$file" "${file//_/-}"; done
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ Download = "https://pypi.org/project/taipy/#files"
Tracker = "https://github.com/Avaiga/taipy/issues"
Security = "https://github.com/Avaiga/taipy?tab=security-ov-file#readme"

[tool.setuptools]
include-package-data = true

[tool.setuptools.package-data]
include = ["**/*.json", "**/*.pyi"]


[tool.ruff]
exclude = [
".git",
Expand Down
9 changes: 6 additions & 3 deletions taipy/config/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ dynamic = ["version", "dependencies"]
[project.optional-dependencies]
testing = ["pytest>=3.8"]

[tool.setuptools]
include-package-data = true

[tool.setuptools.package-data]
include = ["**/*.json", "**/*.pyi"]

[tool.setuptools.packages]
find = {include = ["taipy", "taipy.config", "taipy.config.*", "taipy.logger", "taipy.logger.*"]}

[project.urls]
homepage = "https://github.com/avaiga/taipy"

[tool.setuptools.data-files]
"version" = ["version.json"]
1 change: 1 addition & 0 deletions tools/packages/taipy-config/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include taipy/config/*.pyi
include taipy/config/*.json
include *.json
include version.json
include taipy/config/setup.requirements.txt
include package_desc.md

0 comments on commit 759fc14

Please sign in to comment.