Просмотр исходного кода

chore: remove .github folder on internal packages

Joao Andre 1 год назад
Родитель
Сommit
6cea2e7e2b
37 измененных файлов с 0 добавлено и 1903 удалено
  1. 0 15
      taipy/config/.github/ISSUE_TEMPLATE.md
  2. 0 40
      taipy/config/.github/ISSUE_TEMPLATE/bug_report.md
  3. 0 11
      taipy/config/.github/ISSUE_TEMPLATE/feature-improvement.md
  4. 0 21
      taipy/config/.github/ISSUE_TEMPLATE/new-feature.md
  5. 0 38
      taipy/config/.github/workflows/codeql-analysis.yml
  6. 0 34
      taipy/config/.github/workflows/coverage.yml
  7. 0 29
      taipy/config/.github/workflows/generate_pyi.yml
  8. 0 90
      taipy/config/.github/workflows/publish.yml
  9. 0 105
      taipy/config/.github/workflows/release-dev.yml
  10. 0 69
      taipy/config/.github/workflows/release.yml
  11. 0 29
      taipy/config/.github/workflows/setuptools.yml
  12. 0 37
      taipy/config/.github/workflows/tests.yml
  13. 0 15
      taipy/core/.github/ISSUE_TEMPLATE.md
  14. 0 40
      taipy/core/.github/ISSUE_TEMPLATE/bug_report.md
  15. 0 11
      taipy/core/.github/ISSUE_TEMPLATE/feature-improvement.md
  16. 0 21
      taipy/core/.github/ISSUE_TEMPLATE/new-feature.md
  17. 0 16
      taipy/core/.github/workflows/benchmark.yml
  18. 0 38
      taipy/core/.github/workflows/codeql-analysis.yml
  19. 0 34
      taipy/core/.github/workflows/coverage.yml
  20. 0 24
      taipy/core/.github/workflows/linter.yml
  21. 0 54
      taipy/core/.github/workflows/packaging.yml
  22. 0 90
      taipy/core/.github/workflows/publish.yml
  23. 0 141
      taipy/core/.github/workflows/release-dev.yml
  24. 0 69
      taipy/core/.github/workflows/release.yml
  25. 0 55
      taipy/core/.github/workflows/tests.yml
  26. 0 38
      taipy/rest/.github/workflows/codeql-analysis.yml
  27. 0 27
      taipy/rest/.github/workflows/coverage.yml
  28. 0 89
      taipy/rest/.github/workflows/publish.yml
  29. 0 141
      taipy/rest/.github/workflows/release-dev.yml
  30. 0 69
      taipy/rest/.github/workflows/release.yml
  31. 0 32
      taipy/rest/.github/workflows/setuptools.yml
  32. 0 52
      taipy/rest/.github/workflows/tests.yml
  33. 0 29
      taipy/templates/.github/workflows/packaging.yml
  34. 0 90
      taipy/templates/.github/workflows/publish.yml
  35. 0 105
      taipy/templates/.github/workflows/release-dev.yml
  36. 0 69
      taipy/templates/.github/workflows/release.yml
  37. 0 36
      taipy/templates/.github/workflows/tests.yml

+ 0 - 15
taipy/config/.github/ISSUE_TEMPLATE.md

@@ -1,15 +0,0 @@
-* Taipy version:
-* Python version:
-* Operating System:
-
-### Description
-
-Describe what you were trying to get done.
-Tell us what happened, what went wrong, and what you expected to happen.
-
-### What I Did
-
-```
-Paste the command(s) you ran and the output.
-If there was a crash, please include the traceback here.
-```

+ 0 - 40
taipy/config/.github/ISSUE_TEMPLATE/bug_report.md

@@ -1,40 +0,0 @@
----
-name: Bug report
-about: Bug reports help improve the product quality.
-title: BUG-
-labels: bug
-assignees: ''
-
----
-
-**Description**
-A complete and clear description of the problem.
-
-**How to reproduce**
-
-- Configuration files or code:
-    ```
-    from taipy import Config;
-
-
-    Config.configure_data_node(...)
-    ...
-    ```
-- A code fragment
-    ```
-    import taipy as tp;
-    tp.create_scenario(...)
-    ...
-    ```
-
-**Expected behavior**
-Description of what would be the expected outcome.
-
-**Screenshots**
-When available and relevant, screenshots better help show the problem.
-
-**Runtime environment**
-Please specify relevant indications.
- - Taipy version:
- - OS: [e.g. Linux, Windows] and version
-and any other relevant information.

+ 0 - 11
taipy/config/.github/ISSUE_TEMPLATE/feature-improvement.md

@@ -1,11 +0,0 @@
----
-name: Feature improvement
-about: Feature improvements add extra functionality to an existing feature.
-title: ''
-labels: enhancement
-assignees: ''
-
----
-
-**Description**
-What this improvement addresses (performance, API...).

+ 0 - 21
taipy/config/.github/ISSUE_TEMPLATE/new-feature.md

@@ -1,21 +0,0 @@
----
-name: New feature
-about: Suggest a new feature for the product
-title: ''
-labels: ''
-assignees: ''
-
----
-
-**What would that feature address**
-Description of the lacking functionality that this issue would address.
-Ex: It is not possible to do this or that...
-
-***Description of the ideal solution***
-What would be the best way to provide that functionality
-
-***Caveats***
-What impact could that feature have on the rest of the product, and should be taken special care of?
-
-***Other options***
-What else could we do (workaround, third-party...)?

+ 0 - 38
taipy/config/.github/workflows/codeql-analysis.yml

@@ -1,38 +0,0 @@
-name: "CodeQL"
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  schedule:
-    - cron: '22 15 * * 2'
-
-jobs:
-  analyze:
-    name: Analyze
-    runs-on: ubuntu-latest
-    permissions:
-      actions: read
-      contents: read
-      security-events: write
-
-    strategy:
-      fail-fast: false
-      matrix:
-        language: [ 'python' ]
-
-    steps:
-    - name: Checkout repository
-      uses: actions/checkout@v3
-
-    - name: Initialize CodeQL
-      uses: github/codeql-action/init@v2
-      with:
-        languages: ${{ matrix.language }}
-
-    - name: Autobuild
-      uses: github/codeql-action/autobuild@v2
-
-    - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v2

+ 0 - 34
taipy/config/.github/workflows/coverage.yml

@@ -1,34 +0,0 @@
-name: Coverage
-
-on:
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-jobs:
-  backend-coverage:
-    timeout-minutes: 20
-    strategy:
-      matrix:
-        python-versions: [3.9]
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Generate coverage report
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: |
-          pip install tox
-          tox -e coverage
-
-      - name: Code coverage
-        uses: orgoro/coverage@v2
-        with:
-          coverageFile: coverage.xml
-          token: ${{ secrets.GITHUB_TOKEN }}
-          thresholdAll: 0.85

+ 0 - 29
taipy/config/.github/workflows/generate_pyi.yml

@@ -1,29 +0,0 @@
-name: Generate config.pyi
-
-on:
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-jobs:
-  generate-pyi:
-    timeout-minutes: 20
-    strategy:
-      matrix:
-        python-versions: ['3.10']
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
-    permissions:
-      contents: write
-
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-      - name: Clone taipy-core
-        run: git clone --single-branch --branch ${{ github.base_ref }} https://github.com/Avaiga/taipy-core.git
-      - name: Generate config.pyi
-        run: python stubs/generate_pyi.py
-      - name: Remove taipy-core folder
-        run: rm -fr taipy-core/
-      - uses: stefanzweifel/git-auto-commit-action@v4

+ 0 - 90
taipy/config/.github/workflows/publish.yml

@@ -1,90 +0,0 @@
-name: Publish on Pypi
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The tag of the package to publish on Pypi (ex: 1.0.0, 1.0.0.dev0)"
-        required: true
-
-jobs:
-  test-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract Github Tag Version
-        id: vars
-        run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-            version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-            version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-            raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          if sys.argv[1] != sys.argv[2]:
-            raise ValueError(f\"Invalid tag version {sys.argv[2]} with package version {sys.argv[1]}\")
-          """ > /tmp/check.py
-          python /tmp/check.py "${{ github.event.inputs.version }}" "${{ steps.vars.outputs.tag }}"
-
-      - name: Download assets from github release tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Verify there is a release asset
-        run: |
-          if [ ! -f dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz ]; then
-            echo "No release asset found"
-            exit 1
-          fi
-
-  publish-to-pypi:
-    needs: [test-package]
-    timeout-minutes: 20
-    environment: publish
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-
-      - name: Download assets from tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Publish to PyPI
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_API_TOKEN }}
-
-  test-published-package:
-    needs: [publish-to-pypi]
-    timeout-minutes: 30
-    strategy:
-      matrix:
-        python-versions: ['3.8','3.9','3.10']
-        os: [ubuntu-latest,windows-latest,macos-latest]
-    runs-on: ${{ matrix.os }}
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install and test package
-        run: |
-          pip install --upgrade pip
-          pip install --no-cache-dir ${{ github.event.repository.name }}==${{ github.event.inputs.version }}

+ 0 - 105
taipy/config/.github/workflows/release-dev.yml

@@ -1,105 +0,0 @@
-name: Create Github Dev Release
-
-on:
-  workflow_dispatch:
-
-jobs:
-  release-dev-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-        with:
-          ssh-key: ${{secrets.DEPLOY_KEY}}
-
-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3.8
-
-      - name: Ensure package version has 'dev' suffix
-        run: |
-          echo """
-          import json, sys, os
-          SUFFIX = 'dev'
-          with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if SUFFIX not in version:
-              raise ValueError(f\"version {version} does not contain suffix {SUFFIX}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py
-
-      - name: Grab the version of the package
-        id: current-version
-        run: |
-          echo """
-          import json, os
-          with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          print(f'VERSION={version}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py >> $GITHUB_OUTPUT
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build package
-        run: python setup.py build_py && python -m build
-
-      - name: Install the package and test it
-        run: |
-          # Install package
-          echo "Installing package..."
-          pip install ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=HASH;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-          echo "Creating release ${{ steps.current-version.outputs.VERSION }}"
-          gh release create ${{ steps.current-version.outputs.VERSION }} ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz --target ${{ steps.extract_hash.outputs.HASH }} --prerelease --title ${{ steps.current-version.outputs.VERSION }} --notes "Dev Release ${{ steps.current-version.outputs.VERSION }}"
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Reset changes
-        run: |
-          git reset --hard HEAD
-          git clean -fdx
-
-      - name: Increase dev version
-        id: new-version
-        run: |
-          echo """
-          import json, os
-          with open(f'src{os.sep}taipy{os.sep}config{os.sep}version.json') as version_file:
-              version_o = json.load(version_file)
-              if version_o is None or 'dev' not in version_o['ext']:
-                  raise ValueError('Invalid version file. Version must contain dev suffix.')
-              prev_version = version_o['ext']
-              new_version = 'dev' + str(int(version_o['ext'].replace('dev', '')) + 1)
-              with open(f'src{os.sep}taipy{os.sep}config{os.sep}version.json') as r:
-                  text = r.read().replace(prev_version, new_version)
-              with open(f'src{os.sep}taipy{os.sep}config{os.sep}version.json', mode='w') as w:
-                  w.write(text)
-              with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-                  version_o = json.load(version_file)
-              version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-              if vext := version_o.get(\"ext\"):
-                  version = f'{version}.{vext}'
-              print(f'VERSION={version}')
-          """ > /tmp/increase_dev_version.py
-          python /tmp/increase_dev_version.py >> $GITHUB_OUTPUT
-
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        with:
-          commit_message: Update version to ${{ steps.new-version.outputs.VERSION }}

+ 0 - 69
taipy/config/.github/workflows/release.yml

@@ -1,69 +0,0 @@
-name: Create Github Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The release/package version to create (ex: 1.0.0)"
-        required: true
-
-jobs:
-  release-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract branch name
-        shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
-        id: extract_branch
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-              raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py "${{ github.event.inputs.version }}"
-
-      - name: Validate branch name
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}config{os.sep}version.json\") as version_file:
-              version = json.load(version_file)
-          if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]:
-              raise ValueError(f'Branch name mismatch: release/{version.get(\"major\")}.{version.get(\"minor\")} != {sys.argv[1]}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py "${{ steps.extract_branch.outputs.branch }}"
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build and test the package
-        run: |
-          python setup.py build_py && python -m build
-          pip install dist/*.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-            gh release create ${{ github.event.inputs.version }} ./dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --title ${{ github.event.inputs.version }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 29
taipy/config/.github/workflows/setuptools.yml

@@ -1,29 +0,0 @@
-name: Setuptools
-
-on:
-  push:
-    branches: [ develop ]
-  pull_request:
-    branches: [ develop ]
-  schedule:
-    - cron: "0 8 * * *"
-
-jobs:
-  standard-packages:
-    timeout-minutes: 10
-    strategy:
-      matrix:
-        python-versions: [ '3.8', '3.9', '3.10', '3.11' ]
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
-
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install Taipy
-        run: |
-          pip install .

+ 0 - 37
taipy/config/.github/workflows/tests.yml

@@ -1,37 +0,0 @@
-name: Python tests
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-jobs:
-  backend:
-    timeout-minutes: 20
-    strategy:
-      matrix:
-        python-versions: ['3.8', '3.9', '3.10', '3.11']
-        os: [ubuntu-latest, windows-latest, macos-latest]
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install Tox
-        run: pip install tox
-
-      - name: Run linter and all tests except Pyodbc's
-        if: matrix.python-versions == '3.10' && matrix.os == 'windows-latest'
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: tox -p all
-
-      - name: Run all tests
-        if: matrix.python-versions != '3.10' || matrix.os != 'windows-latest'
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: tox -e all-tests

+ 0 - 15
taipy/core/.github/ISSUE_TEMPLATE.md

@@ -1,15 +0,0 @@
-* Taipy version:
-* Python version:
-* Operating System:
-
-### Description
-
-Describe what you were trying to get done.
-Tell us what happened, what went wrong, and what you expected to happen.
-
-### What I Did
-
-```
-Paste the command(s) you ran and the output.
-If there was a crash, please include the traceback here.
-```

+ 0 - 40
taipy/core/.github/ISSUE_TEMPLATE/bug_report.md

@@ -1,40 +0,0 @@
----
-name: Bug report
-about: Bug reports help improve the product quality.
-title: BUG-
-labels: "\U0001F4A5Malfunction"
-assignees: ''
-
----
-
-**Description**
-A complete and clear description of the problem.
-
-**How to reproduce**
-
-- Configuration files or code:
-    ```
-    from taipy import Config;
-
-
-    Config.configure_data_node(...)
-    ...
-    ```
-- A code fragment
-    ```
-    import taipy as tp;
-    tp.create_scenario(...)
-    ...
-    ```
-
-**Expected behavior**
-Description of what would be the expected outcome.
-
-**Screenshots**
-When available and relevant, screenshots better help show the problem.
-
-**Runtime environment**
-Please specify relevant indications.
- - Taipy version:
- - OS: [e.g. Linux, Windows] and version
-and any other relevant information.

+ 0 - 11
taipy/core/.github/ISSUE_TEMPLATE/feature-improvement.md

@@ -1,11 +0,0 @@
----
-name: Feature improvement
-about: Feature improvements add extra functionality to an existing feature.
-title: ''
-labels: "\U0001F4C8 Improvement"
-assignees: ''
-
----
-
-**Description**
-What this improvement addresses (performance, API...).

+ 0 - 21
taipy/core/.github/ISSUE_TEMPLATE/new-feature.md

@@ -1,21 +0,0 @@
----
-name: New feature
-about: Suggest a new feature for the product
-title: ''
-labels: "✨New feature"
-assignees: ''
-
----
-
-**What would that feature address**
-Description of the lacking functionality that this issue would address.
-Ex: It is not possible to do this or that...
-
-***Description of the ideal solution***
-What would be the best way to provide that functionality
-
-***Caveats***
-What impact could that feature have on the rest of the product, and should be taken special care of?
-
-***Other options***
-What else could we do (workaround, third-party...)?

+ 0 - 16
taipy/core/.github/workflows/benchmark.yml

@@ -1,16 +0,0 @@
-name: Performance benchmarking
-
-on:
-  push:
-    branches: [ develop ]
-
-jobs:
-  benchmark:
-    runs-on: ubuntu-latest
-    steps:
-      - run: |
-          curl -X POST \
-          -H "Authorization: Bearer ${{secrets.TAIPY_INTEGRATION_TESTING_ACCESS_TOKEN}}" \
-          -H "Accept: application/vnd.github.v3+json" \
-          https://api.github.com/repos/Avaiga/taipy-integration-testing/actions/workflows/benchmark.yml/dispatches \
-          -d '{"ref": "develop"}'

+ 0 - 38
taipy/core/.github/workflows/codeql-analysis.yml

@@ -1,38 +0,0 @@
-name: "CodeQL"
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  schedule:
-    - cron: '22 15 * * 2'
-
-jobs:
-  analyze:
-    name: Analyze
-    runs-on: ubuntu-latest
-    permissions:
-      actions: read
-      contents: read
-      security-events: write
-
-    strategy:
-      fail-fast: false
-      matrix:
-        language: [ 'python' ]
-
-    steps:
-    - name: Checkout repository
-      uses: actions/checkout@v3
-
-    - name: Initialize CodeQL
-      uses: github/codeql-action/init@v2
-      with:
-        languages: ${{ matrix.language }}
-
-    - name: Autobuild
-      uses: github/codeql-action/autobuild@v2
-
-    - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v2

+ 0 - 34
taipy/core/.github/workflows/coverage.yml

@@ -1,34 +0,0 @@
-name: Coverage
-
-on:
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-jobs:
-  backend-coverage:
-    timeout-minutes: 20
-    strategy:
-      matrix:
-        python-versions: [3.9]
-        os: [ubuntu-latest]
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Pyodbc and Pymysql and Psycopg2 and Fastparquet
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: |
-          pip install tox
-          tox -e coverage
-
-      - name: Code coverage
-        uses: orgoro/coverage@v2
-        with:
-          coverageFile: coverage.xml
-          token: ${{ secrets.GITHUB_TOKEN }}
-          thresholdAll: 0.85

+ 0 - 24
taipy/core/.github/workflows/linter.yml

@@ -1,24 +0,0 @@
-name: Python linter and type checker
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-jobs:
-  linter:
-    timeout-minutes: 20
-    strategy:
-      fail-fast: false
-      matrix:
-        language: [ 'python' ]
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v1
-      - uses: ricardochaves/python-lint@v1.4.0
-        with:
-          use-pylint: false
-          extra-black-options: "--line-length=120"
-          extra-pycodestyle-options: "--max-line-length=120 --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203"
-          extra-mypy-options: "--ignore-missing-imports --implicit-optional"

+ 0 - 54
taipy/core/.github/workflows/packaging.yml

@@ -1,54 +0,0 @@
-name: Test package installation
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  schedule:
-    - cron: "0 8 * * *"
-
-jobs:
-  standard-packages:
-    timeout-minutes: 10
-    strategy:
-      matrix:
-        python-versions: [ '3.8', '3.9', '3.10', '3.11' ]
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
-
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Test packaging
-        run: |
-          pip install .
-          python -c "import taipy as tp; tp.Scenario"
-
-  optionals-packages:
-    timeout-minutes: 10
-    strategy:
-      matrix:
-        python-versions: [ '3.8', '3.9', '3.10', '3.11' ]
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
-
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Test packaging with optional package
-        run: |
-          # Extract optionals packages before installing them
-          grep -n 'setup(' setup.py | cut -d ":" -f 1 | xargs -I% bash -c "expr % - 1" | xargs -I% bash -c 'head -n% setup.py' > setup_packages.py
-          echo "[print(k) for k in extras_require.keys()]" >> setup_packages.py
-          python setup_packages.py | xargs -I% bash -c "pip install .[%]"
-
-          python -c "import taipy as tp; tp.Scenario"

+ 0 - 90
taipy/core/.github/workflows/publish.yml

@@ -1,90 +0,0 @@
-name: Publish on Pypi
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The tag of the package to publish on Pypi (ex: 1.0.0, 1.0.0.dev0)"
-        required: true
-
-jobs:
-  test-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract Github Tag Version
-        id: vars
-        run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-            version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-            version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-            raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          if sys.argv[1] != sys.argv[2]:
-            raise ValueError(f\"Invalid tag version {sys.argv[2]} with package version {sys.argv[1]}\")
-          """ > /tmp/check.py
-          python /tmp/check.py "${{ github.event.inputs.version }}" "${{ steps.vars.outputs.tag }}"
-
-      - name: Download assets from github release tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Verify there is a release asset
-        run: |
-          if [ ! -f dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz ]; then
-            echo "No release asset found"
-            exit 1
-          fi
-
-  publish-to-pypi:
-    needs: [test-package]
-    timeout-minutes: 20
-    environment: publish
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-
-      - name: Download assets from tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Publish to PyPI
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_API_TOKEN }}
-
-  test-published-package:
-    needs: [publish-to-pypi]
-    timeout-minutes: 30
-    strategy:
-      matrix:
-        python-versions: ['3.8','3.9','3.10', '3.11']
-        os: [ubuntu-latest,windows-latest,macos-latest]
-    runs-on: ${{ matrix.os }}
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install package
-        run: |
-          pip install --upgrade pip
-          pip install --no-cache-dir ${{ github.event.repository.name }}==${{ github.event.inputs.version }}

+ 0 - 141
taipy/core/.github/workflows/release-dev.yml

@@ -1,141 +0,0 @@
-name: Create Github Dev Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      taipy-config-version:
-        description: "The taipy-config version to use (ex: 2.3.0.dev0)"
-
-jobs:
-  release-dev-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-        with:
-          ssh-key: ${{secrets.DEPLOY_KEY}}
-
-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3.8
-
-      - name: Ensure package version has 'dev' suffix
-        run: |
-          echo """
-          import json, sys, os
-          SUFFIX = 'dev'
-          with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if SUFFIX not in version:
-              raise ValueError(f\"version {version} does not contain suffix {SUFFIX}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py
-
-      - name: Extract package version
-        id: current-version
-        run: |
-          echo """
-          import json, os
-          with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          print(f'VERSION={version}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py >> $GITHUB_OUTPUT
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Check dependencies are available
-        if: github.event.inputs.taipy-config-version != ''
-        run: |
-          curl https://pypi.org/simple/taipy-config/ | grep -o ">taipy-config-${{ github.event.inputs.taipy-config-version }}\.tar\.gz<"
-
-      - name: Update setup.py locally
-        if: github.event.inputs.taipy-config-version != ''
-        run: |
-          mv setup.py setup.taipy.py
-          echo """
-          import sys
-          with open('setup.taipy.py', mode='r') as setup_r, open('setup.py', mode='w') as setup_w:
-              in_requirements = False
-              looking = True
-              for line in setup_r:
-                  if looking:
-                      if line.lstrip().startswith('requirements') and line.rstrip().endswith('['):
-                          in_requirements = True
-                      elif in_requirements:
-                          if line.strip() == ']':
-                              looking = False
-                          else:
-                              if line.lstrip().startswith('\"taipy-config@git+https'):
-                                  start = line.find('\"taipy-config')
-                                  end = line.rstrip().find(',')
-                                  line = f'{line[:start]}\"taipy-config=={sys.argv[1]}\"{line[end:]}'
-                  setup_w.write(line)
-          """ > /tmp/write_setup_taipy.py
-          python /tmp/write_setup_taipy.py "${{ github.event.inputs.taipy-config-version }}"
-
-      - name: Build package
-        run: python setup.py build_py && python -m build
-
-      - name: Install the package and test it
-        run: |
-          # Install package
-          echo "Installing package..."
-          pip install ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz
-
-          # Run tests
-          python -c "import taipy as tp; tp.Scenario"
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-          echo "Creating release ${{ steps.current-version.outputs.VERSION }}"
-          gh release create ${{ steps.current-version.outputs.VERSION }} ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --prerelease --title ${{ steps.current-version.outputs.VERSION }} --notes "Dev Release ${{ steps.current-version.outputs.VERSION }}"
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Reset changes
-        run: |
-          git reset --hard HEAD
-          git clean -fdx
-
-      - name: Increase dev version
-        id: new-version
-        run: |
-          echo """
-          import json, os
-          with open(f'src{os.sep}taipy{os.sep}core{os.sep}version.json') as version_file:
-              version_o = json.load(version_file)
-              if version_o is None or 'dev' not in version_o['ext']:
-                  raise ValueError('Invalid version file. Version must contain dev suffix.')
-              prev_version = version_o['ext']
-              new_version = 'dev' + str(int(version_o['ext'].replace('dev', '')) + 1)
-              with open(f'src{os.sep}taipy{os.sep}core{os.sep}version.json') as r:
-                  text = r.read().replace(prev_version, new_version)
-              with open(f'src{os.sep}taipy{os.sep}core{os.sep}version.json', mode='w') as w:
-                  w.write(text)
-              with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-                  version_o = json.load(version_file)
-              version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-              if vext := version_o.get(\"ext\"):
-                  version = f'{version}.{vext}'
-              print(f'VERSION={version}')
-          """ > /tmp/increase_dev_version.py
-          python /tmp/increase_dev_version.py >> $GITHUB_OUTPUT
-
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        with:
-          commit_message: Update version to ${{ steps.new-version.outputs.VERSION }}

+ 0 - 69
taipy/core/.github/workflows/release.yml

@@ -1,69 +0,0 @@
-name: Create Github Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The release/package version to create (ex: 1.0.0)"
-        required: true
-
-jobs:
-  release-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract branch name
-        shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
-        id: extract_branch
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-              raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py "${{ github.event.inputs.version }}"
-
-      - name: Validate branch name
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}core{os.sep}version.json\") as version_file:
-              version = json.load(version_file)
-          if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]:
-              raise ValueError(f'Branch name mismatch: release/{version.get(\"major\")}.{version.get(\"minor\")} != {sys.argv[1]}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py "${{ steps.extract_branch.outputs.branch }}"
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build and install package
-        run: |
-          python setup.py build_py && python -m build
-          pip install dist/*.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-            gh release create ${{ github.event.inputs.version }} ./dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --title ${{ github.event.inputs.version }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 55
taipy/core/.github/workflows/tests.yml

@@ -1,55 +0,0 @@
-name: Python tests
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop , dev/*, release/* ]
-
-jobs:
-  backend:
-    timeout-minutes: 20
-    strategy:
-      matrix:
-        python-versions: ['3.8', '3.9', '3.10', '3.11']
-        os: [ubuntu-latest, windows-latest, macos-latest]
-      fail-fast: false
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install Tox
-        run: pip install tox
-
-      - name: Run linter and all tests except Pyodbc's, Pymysql's, Psycopg2's, and Fastparquet
-        if: matrix.python-versions == '3.10' && matrix.os == 'windows-latest'
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: tox -p all
-
-      - name: Ensure no usage of manager or repository classes without factory
-        if: matrix.python-versions == '3.10' && matrix.os == 'ubuntu-latest'
-        run: |
-          ! grep -rP '_ScenarioManager(?!Factory)' taipy --exclude="_scenario_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_DataManager(?!Factory)' taipy --exclude="_data_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_TaskManager(?!Factory)' taipy --exclude="_task_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_SequenceManager(?!Factory)' taipy --exclude="_sequence_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_JobManager(?!Factory)' taipy --exclude="_job_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_CycleManager(?!Factory)' taipy --exclude="_cycle_manager*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_ScenarioRepository(?!Factory)' taipy --exclude="_scenario_repository*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_DataRepository(?!Factory)' taipy --exclude="_data_repository*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_TaskRepository(?!Factory)' taipy --exclude="_task_repository*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_SequenceRepository(?!Factory)' taipy --exclude="_sequence_repository*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_JobRepository(?!Factory)' taipy --exclude="_job_repository*.py" --exclude-dir="__pycache__"
-          ! grep -rP '_CycleRepository(?!Factory)' taipy --exclude="_cycle_repository*.py" --exclude-dir="__pycache__"
-
-
-      - name: Run all tests
-        if: matrix.python-versions != '3.10' || matrix.os != 'windows-latest'
-        env:
-          TOX_PARALLEL_NO_SPINNER: 1
-        run: tox -e all-tests

+ 0 - 38
taipy/rest/.github/workflows/codeql-analysis.yml

@@ -1,38 +0,0 @@
-name: "CodeQL"
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  schedule:
-    - cron: '41 4 * * 0'
-
-jobs:
-  analyze:
-    name: Analyze
-    runs-on: ubuntu-latest
-    permissions:
-      actions: read
-      contents: read
-      security-events: write
-
-    strategy:
-      fail-fast: false
-      matrix:
-        language: [ 'python' ]
-
-    steps:
-    - name: Checkout repository
-      uses: actions/checkout@v3
-
-    - name: Initialize CodeQL
-      uses: github/codeql-action/init@v2
-      with:
-        languages: ${{ matrix.language }}
-
-    - name: Autobuild
-      uses: github/codeql-action/autobuild@v2
-
-    - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v2

+ 0 - 27
taipy/rest/.github/workflows/coverage.yml

@@ -1,27 +0,0 @@
-name: 'code-coverage'
-on:
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  workflow_dispatch:
-
-jobs:
-  backend-code-coverage:
-    timeout-minutes: 10
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - name: Set up Python 3.9
-        uses: actions/setup-python@v2
-        with:
-          python-version: 3.9
-
-      - name: Lint and Coverage
-        run: |
-          pip install tox
-          tox
-
-      - name: Code coverage
-        uses: orgoro/coverage@v2
-        with:
-          coverageFile: coverage.xml
-          token: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 89
taipy/rest/.github/workflows/publish.yml

@@ -1,89 +0,0 @@
-name: Publish on Pypi
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The tag of the package to publish on Pypi (ex: 1.0.0, 1.0.0.dev0)"
-        required: true
-
-jobs:
-  test-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract Github Tag Version
-        id: vars
-        run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-            version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-            version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-            raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          if sys.argv[1] != sys.argv[2]:
-            raise ValueError(f\"Invalid tag version {sys.argv[2]} with package version {sys.argv[1]}\")
-          """ > /tmp/check.py
-          python /tmp/check.py "${{ github.event.inputs.version }}" "${{ steps.vars.outputs.tag }}"
-
-      - name: Download assets from github release tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Verify there is a release asset
-        run: |
-          if [ ! -f dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz ]; then
-            echo "No release asset found"
-            exit 1
-          fi
-
-  publish-to-pypi:
-    needs: [test-package]
-    timeout-minutes: 20
-    environment: publish
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-
-      - name: Download assets from tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Publish to PyPI
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_API_TOKEN }}
-
-  test-published-package:
-    needs: [publish-to-pypi]
-    timeout-minutes: 5
-    strategy:
-      matrix:
-        python-versions: ['3.8','3.9','3.10']
-        os: [ubuntu-latest,windows-latest,macos-latest]
-    runs-on: ${{ matrix.os }}
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install and test package
-        run: |
-          pip install --no-cache-dir ${{ github.event.repository.name }}==${{ github.event.inputs.version }}

+ 0 - 141
taipy/rest/.github/workflows/release-dev.yml

@@ -1,141 +0,0 @@
-name: Create Github Dev Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      taipy-core-version:
-        description: "The taipy-core version to use (ex: 2.3.0.dev0)"
-
-jobs:
-  release-dev-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-        with:
-          ssh-key: ${{secrets.DEPLOY_KEY}}
-
-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3.8
-
-      - name: Ensure package version has 'dev' suffix
-        run: |
-          echo """
-          import json, sys, os
-          SUFFIX = 'dev'
-          with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if SUFFIX not in version:
-              raise ValueError(f\"version {version} does not contain suffix {SUFFIX}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py
-
-      - name: Extract package version
-        id: current-version
-        run: |
-          echo """
-          import json, os
-          with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          print(f'VERSION={version}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py >> $GITHUB_OUTPUT
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Check dependencies are available
-        if: github.event.inputs.taipy-core-version != ''
-        run: |
-          curl https://pypi.org/simple/taipy-core/ | grep -o ">taipy-core-${{ github.event.inputs.taipy-core-version }}\.tar\.gz<"
-
-      - name: Update setup.py locally
-        if: github.event.inputs.taipy-core-version != ''
-        run: |
-          mv setup.py setup.taipy.py
-          echo """
-          import sys
-          with open('setup.taipy.py', mode='r') as setup_r, open('setup.py', mode='w') as setup_w:
-              in_requirements = False
-              looking = True
-              for line in setup_r:
-                  if looking:
-                      if line.lstrip().startswith('install_requires') and line.rstrip().endswith('['):
-                          in_requirements = True
-                      elif in_requirements:
-                          if line.strip() == '],':
-                              looking = False
-                          else:
-                              if line.lstrip().startswith('\"taipy-core@git+https'):
-                                  start = line.find('\"taipy-core')
-                                  end = line.rstrip().find(',')
-                                  line = f'{line[:start]}\"taipy-core=={sys.argv[1]}\"{line[end:]}'
-                  setup_w.write(line)
-          """ > /tmp/write_setup_taipy.py
-          python /tmp/write_setup_taipy.py "${{ github.event.inputs.taipy-core-version }}"
-
-      - name: Build package
-        run: python setup.py build_py && python -m build
-
-      - name: Install the package and test it
-        run: |
-          # Install package
-          echo "Installing package..."
-          pip install ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz
-
-          # Run tests
-          python -c "import taipy as tp; tp.rest"
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-          echo "Creating release ${{ steps.current-version.outputs.VERSION }}"
-          gh release create ${{ steps.current-version.outputs.VERSION }} ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --prerelease --title ${{ steps.current-version.outputs.VERSION }} --notes "Dev Release ${{ steps.current-version.outputs.VERSION }}"
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Reset changes
-        run: |
-          git reset --hard HEAD
-          git clean -fdx
-
-      - name: Increase dev version
-        id: new-version
-        run: |
-          echo """
-          import json, os
-          with open(f'src{os.sep}taipy{os.sep}rest{os.sep}version.json') as version_file:
-              version_o = json.load(version_file)
-              if version_o is None or 'dev' not in version_o['ext']:
-                  raise ValueError('Invalid version file. Version must contain dev suffix.')
-              prev_version = version_o['ext']
-              new_version = 'dev' + str(int(version_o['ext'].replace('dev', '')) + 1)
-              with open(f'src{os.sep}taipy{os.sep}rest{os.sep}version.json') as r:
-                  text = r.read().replace(prev_version, new_version)
-              with open(f'src{os.sep}taipy{os.sep}rest{os.sep}version.json', mode='w') as w:
-                  w.write(text)
-              with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-                  version_o = json.load(version_file)
-              version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-              if vext := version_o.get(\"ext\"):
-                  version = f'{version}.{vext}'
-              print(f'VERSION={version}')
-          """ > /tmp/increase_dev_version.py
-          python /tmp/increase_dev_version.py >> $GITHUB_OUTPUT
-
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        with:
-          commit_message: Update version to ${{ steps.new-version.outputs.VERSION }}

+ 0 - 69
taipy/rest/.github/workflows/release.yml

@@ -1,69 +0,0 @@
-name: Create Github Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The release/package version to create (ex: 1.0.0)"
-        required: true
-
-jobs:
-  release-package:
-    timeout-minutes: 20
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract branch name
-        shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
-        id: extract_branch
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-              raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py "${{ github.event.inputs.version }}"
-
-      - name: Validate branch name
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}rest{os.sep}version.json\") as version_file:
-              version = json.load(version_file)
-          if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]:
-              raise ValueError(f'Branch name mismatch: release/{version.get(\"major\")}.{version.get(\"minor\")} != {sys.argv[1]}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py "${{ steps.extract_branch.outputs.branch }}"
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build and test the package
-        run: |
-          python setup.py build_py && python -m build
-          pip install dist/*.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-            gh release create ${{ github.event.inputs.version }} ./dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --title ${{ github.event.inputs.version }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 32
taipy/rest/.github/workflows/setuptools.yml

@@ -1,32 +0,0 @@
-name: Test package installation
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-  schedule:
-    - cron: "0 8 * * *"
-
-jobs:
-  standard-packages:
-    timeout-minutes: 10
-    strategy:
-      matrix:
-        python-versions: [ '3.8', '3.9', '3.10', '3.11']
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
-
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Test packaging
-        run: |
-          pip install .
-
-          python -c "import taipy as tp; tp.Scenario"
-          python -c "import taipy as tp; tp.rest"

+ 0 - 52
taipy/rest/.github/workflows/tests.yml

@@ -1,52 +0,0 @@
-name: test workflow
-
-on:
-  push:
-    branches: [ develop, dev/*, release/* ]
-  pull_request:
-    branches: [ develop, dev/*, release/* ]
-
-  workflow_dispatch:
-    inputs:
-      user-to-notify:
-        description: "Github username to notify"
-        required: false
-        default: ""
-
-jobs:
-  test:
-    timeout-minutes: 30
-    strategy:
-      matrix:
-        python-versions: ['3.8', '3.9', '3.10', '3.11']
-        os: [ubuntu-latest, windows-latest, macos-latest]
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Tests
-        run: |
-          pip install tox
-          tox -e tests
-
-      - name: Ensure no usage of manager classes without factory
-        if: matrix.python-versions == '3.10' && matrix.os == 'ubuntu-latest'
-        run: |
-          ! grep -rP '_ScenarioManager(?!Factory)' src
-          ! grep -rP '_DataManager(?!Factory)' src
-          ! grep -rP '_TaskManager(?!Factory)' src
-          ! grep -rP '_SequenceManager(?!Factory)' src
-          ! grep -rP '_JobManager(?!Factory)' src
-          ! grep -rP '_CycleManager(?!Factory)' src
-
-      - name: Notify user if failed
-        if: failure() && github.event_name == 'workflow_dispatch'
-        run: |
-          if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then
-            curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json"
-          fi
-        shell: bash

+ 0 - 29
taipy/templates/.github/workflows/packaging.yml

@@ -1,29 +0,0 @@
-name: Test package installation
-
-on:
-  push:
-    branches: [ develop ]
-  pull_request:
-    branches: [ develop ]
-  schedule:
-    - cron: "0 8 * * *"
-
-jobs:
-  standard-packages:
-    timeout-minutes: 10
-    strategy:
-      matrix:
-        python-versions: [ '3.8', '3.9', '3.10', '3.11' ]
-        os: [ ubuntu-latest, windows-latest, macos-latest ]
-
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Test packaging
-        run: |
-          pip install .

+ 0 - 90
taipy/templates/.github/workflows/publish.yml

@@ -1,90 +0,0 @@
-name: Publish on Pypi
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The tag of the package to publish on Pypi (ex: 1.0.0, 1.0.0.dev0)"
-        required: true
-
-jobs:
-  test-package:
-    timeout-minutes: 40
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract Github Tag Version
-        id: vars
-        run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-            version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-            version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-            raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          if sys.argv[1] != sys.argv[2]:
-            raise ValueError(f\"Invalid tag version {sys.argv[2]} with package version {sys.argv[1]}\")
-          """ > /tmp/check.py
-          python /tmp/check.py "${{ github.event.inputs.version }}" "${{ steps.vars.outputs.tag }}"
-
-      - name: Download assets from github release tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Verify there is a release asset
-        run: |
-          if [ ! -f dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz ]; then
-            echo "No release asset found"
-            exit 1
-          fi
-
-  publish-to-pypi:
-    needs: [test-package]
-    timeout-minutes: 20
-    environment: publish
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-
-      - name: Download assets from tag
-        run: |
-          gh release download ${{ github.event.inputs.version }} --dir dist
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Publish to PyPI
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_API_TOKEN }}
-
-  test-published-package:
-    needs: [publish-to-pypi]
-    timeout-minutes: 30
-    strategy:
-      matrix:
-        python-versions: ['3.8','3.9','3.10', '3.11']
-        os: [ubuntu-latest,windows-latest,macos-latest]
-    runs-on: ${{ matrix.os }}
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Install package
-        run: |
-          pip install --upgrade pip
-          pip install --no-cache-dir ${{ github.event.repository.name }}==${{ github.event.inputs.version }}

+ 0 - 105
taipy/templates/.github/workflows/release-dev.yml

@@ -1,105 +0,0 @@
-name: Create Github Dev Release
-
-on:
-  workflow_dispatch:
-
-jobs:
-  release-dev-package:
-    timeout-minutes: 40
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-        with:
-          ssh-key: ${{secrets.DEPLOY_KEY}}
-
-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3.8
-
-      - name: Ensure package version has 'dev' suffix
-        run: |
-          echo """
-          import json, sys, os
-          SUFFIX = 'dev'
-          with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if SUFFIX not in version:
-              raise ValueError(f\"version {version} does not contain suffix {SUFFIX}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py
-
-      - name: Extract package version
-        id: current-version
-        run: |
-          echo """
-          import json, os
-          with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          print(f'VERSION={version}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py >> $GITHUB_OUTPUT
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build package
-        run: python setup.py build_py && python -m build
-
-      - name: Install the package and test it
-        run: |
-          # Install package
-          echo "Installing package..."
-          pip install ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-          echo "Creating release ${{ steps.current-version.outputs.VERSION }}"
-          gh release create ${{ steps.current-version.outputs.VERSION }} ./dist/${{ github.event.repository.name }}-${{ steps.current-version.outputs.VERSION }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --prerelease --title ${{ steps.current-version.outputs.VERSION }} --notes "Dev Release ${{ steps.current-version.outputs.VERSION }}"
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-      - name: Reset changes
-        run: |
-          git reset --hard HEAD
-          git clean -fdx
-
-      - name: Increase dev version
-        id: new-version
-        run: |
-          echo """
-          import json, os
-          with open(f'src{os.sep}taipy{os.sep}templates{os.sep}version.json') as version_file:
-              version_o = json.load(version_file)
-              if version_o is None or 'dev' not in version_o['ext']:
-                  raise ValueError('Invalid version file. Version must contain dev suffix.')
-              prev_version = version_o['ext']
-              new_version = 'dev' + str(int(version_o['ext'].replace('dev', '')) + 1)
-              with open(f'src{os.sep}taipy{os.sep}templates{os.sep}version.json') as r:
-                  text = r.read().replace(prev_version, new_version)
-              with open(f'src{os.sep}taipy{os.sep}templates{os.sep}version.json', mode='w') as w:
-                  w.write(text)
-              with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-                  version_o = json.load(version_file)
-              version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-              if vext := version_o.get(\"ext\"):
-                  version = f'{version}.{vext}'
-              print(f'VERSION={version}')
-          """ > /tmp/increase_dev_version.py
-          python /tmp/increase_dev_version.py >> $GITHUB_OUTPUT
-
-      - uses: stefanzweifel/git-auto-commit-action@v4
-        with:
-          commit_message: Update version to ${{ steps.new-version.outputs.VERSION }}

+ 0 - 69
taipy/templates/.github/workflows/release.yml

@@ -1,69 +0,0 @@
-name: Create Github Release
-
-on:
-  workflow_dispatch:
-    inputs:
-      version:
-        description: "The release/package version to create (ex: 1.0.0)"
-        required: true
-
-jobs:
-  release-package:
-    timeout-minutes: 40
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v2
-        with:
-          python-version: 3.8
-
-      - name: Extract branch name
-        shell: bash
-        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
-        id: extract_branch
-
-      - name: Ensure package version is properly set
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-              version_o = json.load(version_file)
-          version = f'{version_o.get(\"major\")}.{version_o.get(\"minor\")}.{version_o.get(\"patch\")}'
-          if vext := version_o.get(\"ext\"):
-              version = f'{version}.{vext}'
-          if version != sys.argv[1]:
-              raise ValueError(f\"Invalid version {version} / {sys.argv[1]}\")
-          """ > /tmp/check1.py
-          python /tmp/check1.py "${{ github.event.inputs.version }}"
-
-      - name: Validate branch name
-        run: |
-          echo """
-          import json, sys, os
-          with open(f\"src{os.sep}taipy{os.sep}templates{os.sep}version.json\") as version_file:
-              version = json.load(version_file)
-          if f'release/{version.get(\"major\")}.{version.get(\"minor\")}' != sys.argv[1]:
-              raise ValueError(f'Branch name mismatch: release/{version.get(\"major\")}.{version.get(\"minor\")} != {sys.argv[1]}')
-          """ > /tmp/check2.py
-          python /tmp/check2.py "${{ steps.extract_branch.outputs.branch }}"
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          pip install build
-
-      - name: Build and install package
-        run: |
-          python setup.py build_py && python -m build
-          pip install dist/*.tar.gz
-
-      - name: Extract commit hash
-        shell: bash
-        run: echo "##[set-output name=hash;]$(echo $(git rev-parse HEAD))"
-        id: extract_hash
-
-      - name: Create/update release and tag
-        run: |
-            gh release create ${{ github.event.inputs.version }} ./dist/${{ github.event.repository.name }}-${{ github.event.inputs.version }}.tar.gz --target ${{ steps.extract_hash.outputs.hash }} --title ${{ github.event.inputs.version }}
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 0 - 36
taipy/templates/.github/workflows/tests.yml

@@ -1,36 +0,0 @@
-name: Python tests
-
-on:
-  push:
-    branches: [ develop ]
-  pull_request:
-    branches: [ develop ]
-
-jobs:
-  backend:
-    timeout-minutes: 40
-    strategy:
-      matrix:
-        python-versions: ['3.8', '3.9', '3.10', '3.11']
-        os: [ubuntu-latest, windows-latest, macos-latest]
-      fail-fast: false
-    runs-on: ${{ matrix.os }}
-
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-python@v4
-        with:
-          python-version: ${{ matrix.python-versions }}
-
-      - name: Tests
-        run: |
-          pip install tox
-          tox -e tests
-
-      - name: Notify user if failed
-        if: failure() && github.event_name == 'workflow_dispatch'
-        run: |
-          if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then
-            curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json"
-          fi
-        shell: bash