diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 67a772164f..c2a87008f1 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index c8522494a7..a4f4b7cef0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/taipy/config/pyproject.toml b/taipy/config/pyproject.toml index d086192682..8a590fa89a 100644 --- a/taipy/config/pyproject.toml +++ b/taipy/config/pyproject.toml @@ -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"] diff --git a/tools/packages/taipy-config/MANIFEST.in b/tools/packages/taipy-config/MANIFEST.in index 7ab556c01f..7e490b4e09 100644 --- a/tools/packages/taipy-config/MANIFEST.in +++ b/tools/packages/taipy-config/MANIFEST.in @@ -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