diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 5d106e6ee2..1c5a7ca160 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -85,6 +85,7 @@ body: - '3.9' - '3.10' - '3.11' + - '3.12' validations: required: true diff --git a/.github/ISSUE_TEMPLATE/examples.yml b/.github/ISSUE_TEMPLATE/examples.yml index f440f58c7d..beb9d6d4a8 100644 --- a/.github/ISSUE_TEMPLATE/examples.yml +++ b/.github/ISSUE_TEMPLATE/examples.yml @@ -27,49 +27,3 @@ body: as a .zip file. validations: required: true - - - type: dropdown - id: os-name - attributes: - label: '💻 Which operating system are you using?' - multiple: false - options: - - 'Windows' - - 'MacOS' - - 'Linux' - validations: - required: true - - - type: textarea - id: ansys-version - attributes: - label: '📀 Which ANSYS version are you using?' - placeholder: Indicate the ANSYS version of the products you are using. - - validations: - required: false - - - type: dropdown - id: python-version - attributes: - label: '🐍 Which Python version are you using?' - description: Run `python --version` to verify your Python version - multiple: false - options: - - '3.7' - - '3.8' - - '3.9' - - '3.10' - - '3.11' - validations: - required: true - - - type: textarea - id: installed-packages - attributes: - label: '📦 Installed packages' - description: Run `python -m pip freeze` to list installed packages - placeholder: Paste the output of `python -m pip freeze` here. - render: shell - validations: - required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3416db207f..a627f0ed23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ concurrency: env: DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' - MAIN_PYTHON_VERSION: '3.8' + MAIN_PYTHON_VERSION: '3.9' MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} @@ -82,7 +82,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8"]' + python_versions: '["3.9"]' wheel: true wheelhouse: false standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} @@ -92,7 +92,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8"]' + python_versions: '["3.9"]' wheel: true wheelhouse: false standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} @@ -112,7 +112,7 @@ jobs: uses: ./.github/workflows/examples_docker.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8"]' + python_versions: '["3.9"]' standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} secrets: inherit @@ -137,7 +137,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} doc-artifact-name: HTML-doc-ansys-dpf-core.zip decompress-artifact: true - + doc-index-dev: name: "Deploy dev index docs" runs-on: ubuntu-latest @@ -158,7 +158,7 @@ jobs: uses: ./.github/workflows/examples.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8"]' + python_versions: '["3.9"]' standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} secrets: inherit @@ -168,7 +168,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "232" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false standalone_suffix: '' secrets: inherit @@ -179,7 +179,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "231" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false secrets: inherit @@ -189,7 +189,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "222" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false secrets: inherit diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 2853699dc9..dda888b5ef 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -26,7 +26,7 @@ on: env: ANSYS_VERSION: 241 DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' - MAIN_PYTHON_VERSION: '3.8' + MAIN_PYTHON_VERSION: '3.9' jobs: debug: @@ -84,7 +84,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8", "3.9", "3.10"]' + python_versions: '["3.9", "3.10", "3.11"]' wheel: true wheelhouse: true standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} @@ -94,7 +94,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8", "3.9", "3.10"]' + python_versions: '["3.9", "3.10", "3.11"]' wheel: true wheelhouse: false standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} @@ -113,7 +113,7 @@ jobs: uses: ./.github/workflows/examples.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8", "3.9", "3.10"]' + python_versions: '["3.9", "3.10", "3.11"]' standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} secrets: inherit @@ -122,7 +122,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "232" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false secrets: inherit @@ -131,7 +131,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "231" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false secrets: inherit @@ -140,7 +140,7 @@ jobs: uses: ./.github/workflows/tests.yml with: ANSYS_VERSION: "222" - python_versions: '["3.8"]' + python_versions: '["3.9"]' DOCSTRING: false secrets: inherit @@ -187,7 +187,7 @@ jobs: uses: ./.github/workflows/examples_docker.yml with: ANSYS_VERSION: "241" - python_versions: '["3.8", "3.9", "3.10"]' + python_versions: '["3.9", "3.10", "3.11"]' standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} secrets: inherit diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7af112e414..9fcebbb5cd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,7 @@ on: python_version: required: false type: string - default: "3.8" + default: "3.9" ANSYS_VERSION: required: false type: string @@ -29,7 +29,7 @@ on: description: "Python interpreter" required: true type: string - default: "3.8" + default: "3.9" ANSYS_VERSION: description: "ANSYS version" required: true diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index a0dc1df79e..35d89222cd 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.8"]' + default: '["3.9"]' ANSYS_VERSION: required: false type: string @@ -24,7 +24,7 @@ on: description: "Python interpreters to test." required: true type: string - default: '["3.8"]' + default: '["3.9"]' ANSYS_VERSION: description: "ANSYS version to run." required: true diff --git a/.github/workflows/examples_docker.yml b/.github/workflows/examples_docker.yml index b20ac52b05..ba2ae27ca7 100644 --- a/.github/workflows/examples_docker.yml +++ b/.github/workflows/examples_docker.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.8"]' + default: '["3.9"]' ANSYS_VERSION: required: false type: string @@ -24,7 +24,7 @@ on: description: "Python interpreters to test." required: true type: string - default: '["3.8"]' + default: '["3.9"]' ANSYS_VERSION: description: "ANSYS version to run." required: true diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index b9005e1290..dd85345f44 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: ["windows-latest", "ubuntu-latest"] - python-version: ["3.8"] + python-version: ["3.9"] steps: - uses: actions/checkout@v3 @@ -71,7 +71,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v4.6.0 with: - python-version: "3.8" + python-version: ${{ matrix.python-version }} - name: "Install ansys-dpf-core build requirements" run: pip install -r requirements/requirements_build.txt diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index a42d04e76c..584b8e0aab 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -6,7 +6,6 @@ on: env: DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com' - PYTHON_MAIN_VERSION: '3.10' MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index 18f1aa138c..f6abacb706 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8"] + python-version: ["3.9"] os: ["ubuntu-latest"] steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7b0d49e636..1fcef2a0cc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ on: python_versions: required: false type: string - default: '["3.8"]' + default: '["3.9"]' ANSYS_VERSION: required: false type: string @@ -41,7 +41,7 @@ on: description: "Python interpreters to test." required: true type: string - default: '["3.8", "3.9", "3.10"]' + default: '["3.9", "3.10", "3.11"]' ANSYS_VERSION: description: "ANSYS version" required: true @@ -91,7 +91,7 @@ jobs: tests: name: "Tests" needs: setup - timeout-minutes: 30 + timeout-minutes: 35 runs-on: ${{ matrix.os }} strategy: fail-fast: false diff --git a/docs/source/user_guide/create_sites_for_python_operators.ps1 b/docs/source/user_guide/create_sites_for_python_operators.ps1 index 45f548c911..5c6fbb7358 100644 --- a/docs/source/user_guide/create_sites_for_python_operators.ps1 +++ b/docs/source/user_guide/create_sites_for_python_operators.ps1 @@ -5,6 +5,8 @@ Write-Host "-zippath" $zippath Write-Host "-pythonexe" $pythonexe Write-Host "-tempfolder" $tempfolder +# Expand shortcut in path +$tempfolder = (Get-Item -LiteralPath $tempfolder).FullName Write-Host "make venv" Start-Process $pythonexe -ArgumentList ("-m venv "+ $tempfolder+"\venv") -NoNewWindow -Wait @@ -21,11 +23,16 @@ if (Test-Path ($tempfolder + "/venv/Lib/site-packages/__pycache__")){ Remove-Item -Recurse -Force ($tempfolder + "/venv/Lib/site-packages/__pycache__") } $dirName=[System.IO.Path]::GetDirectoryName($zippath) +Write-Host "Create directory" echo $dirName if (-Not (Test-Path $dirName)){ New-Item $dirName -Type directory } +Write-Host "Compress archive" Compress-Archive ($tempfolder+"/venv/Lib/site-packages/*") -DestinationPath $zippath -Force +Write-Host "Deactivate venv" deactivate -Remove-Item -Recurse -Force ($tempfolder + "/venv") \ No newline at end of file +Write-Host "Remove venv" +Remove-Item -Recurse -Force ($tempfolder + "/venv") +Write-Host "Done creating site-packages for gltf plugin" \ No newline at end of file diff --git a/examples/08-python-operators/02-python_operators_with_dependencies.py b/examples/08-python-operators/02-python_operators_with_dependencies.py index b77f6a70fe..720de18daf 100644 --- a/examples/08-python-operators/02-python_operators_with_dependencies.py +++ b/examples/08-python-operators/02-python_operators_with_dependencies.py @@ -152,6 +152,7 @@ if process.stderr: raise RuntimeError( "Installing pygltf in a virtual environment failed with error:\n" + + f"return code = {process.returncode}\n" + process.stderr.decode() + "\n\n and log:\n" + process.stdout.decode() diff --git a/pyproject.toml b/pyproject.toml index 422ac4907a..92dcb3c5da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ name = "ansys-dpf-core" version = "0.9.1.dev0" description = "Data Processing Framework - Python Core " readme = "README.md" -requires-python = ">=3.8, <4" +requires-python = ">=3.9, <4" license = {file = "LICENSE"} authors = [ {name = "ANSYS, Inc.", email = "pyansys.core@ansys.com"},