Quellcode durchsuchen

Merge pull request #1537 from Avaiga/fix/build-package

fix: include package_desc.md when building packages
João André vor 10 Monaten
Ursprung
Commit
cb88da56d0

+ 6 - 0
.github/workflows/build-and-release-single-package.yml

@@ -21,6 +21,9 @@ on:
 env:
   NODE_OPTIONS: --max-old-space-size=4096
 
+permissions:
+  contents: write
+
 jobs:
   fetch-versions:
     runs-on: ubuntu-latest
@@ -154,6 +157,9 @@ jobs:
         working-directory: ${{ steps.set-variables.outputs.package_dir }}
         run: |
           python setup.py build_py && python -m build
+
+      - name: Rename files
+        run: |
           for file in ./dist/*; do mv "$file" "${file//_/-}"; done
 
       - name: Create tag and release

+ 4 - 0
.github/workflows/build-and-release.yml

@@ -18,6 +18,9 @@ on:
 env:
   NODE_OPTIONS: --max-old-space-size=4096
 
+permissions:
+  contents: write
+
 jobs:
   fetch-versions:
     runs-on: ubuntu-latest
@@ -152,6 +155,7 @@ jobs:
         working-directory: ${{ steps.set-variables.outputs.package_dir }}
         run: |
           python setup.py build_py && python -m build
+          for file in ./dist/*; do mv "$file" "${file//_/-}"; done
 
       - name: Create tag and release
         working-directory: ${{ steps.set-variables.outputs.package_dir }}

+ 1 - 0
tools/packages/taipy-config/MANIFEST.in

@@ -2,3 +2,4 @@ include taipy/config/*.pyi
 include taipy/config/*.json
 include *.json
 include taipy/config/setup.requirements.txt
+include package_desc.md

+ 1 - 0
tools/packages/taipy-core/MANIFEST.in

@@ -2,3 +2,4 @@ include taipy/core/*.json
 include taipy/core/config/*.json
 include *.json
 include taipy/core/setup.requirements.txt
+include package_desc.md

+ 1 - 0
tools/packages/taipy-gui/MANIFEST.in

@@ -4,3 +4,4 @@ include taipy/gui/viselements.json
 include taipy/gui/*.pyi
 include *.json
 include taipy/gui/setup.requirements.txt
+include package_desc.md

+ 1 - 0
tools/packages/taipy-rest/MANIFEST.in

@@ -1,3 +1,4 @@
 include taipy/rest/*.json
 include *.json
 include taipy/rest/setup.requirements.txt
+include package_desc.md

+ 1 - 0
tools/packages/taipy-templates/MANIFEST.in

@@ -1,3 +1,4 @@
 recursive-include taipy/templates *
 include *.json
 include taipy/templates/setup.requirements.txt
+include package_desc.md

+ 1 - 1
tools/packages/taipy-templates/setup.py

@@ -58,7 +58,7 @@ setup(
     ],
     description="An open-source package holding Taipy application templates.",
     license="Apache License 2.0",
-    long_description=readme,
+    long_description=package_desc,
     long_description_content_type="text/markdown",
     keywords="taipy-templates",
     name="taipy-templates",

+ 1 - 0
tools/packages/taipy/MANIFEST.in

@@ -26,3 +26,4 @@ include taipy/rest/*.json
 recursive-include taipy/templates *
 
 include setup.requirements.txt
+include package_desc.md