Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supported Python versions #1210

Merged
merged 11 commits into from
Oct 16, 2023
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ body:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
validations:
required: true

Expand Down
46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 || '' }}
Expand All @@ -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 || '' }}
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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' }}
Expand All @@ -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' }}
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_version:
required: false
type: string
default: "3.8"
default: "3.9"
ANSYS_VERSION:
required: false
type: string
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.8"]'
default: '["3.9"]'
ANSYS_VERSION:
required: false
type: string
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.8"]'
default: '["3.9"]'
ANSYS_VERSION:
required: false
type: string
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pydpf-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
python-version: ["3.9"]
os: ["ubuntu-latest"]

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_versions:
required: false
type: string
default: '["3.8"]'
default: '["3.9"]'
ANSYS_VERSION:
required: false
type: string
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
tests:
name: "Tests"
needs: setup
timeout-minutes: 30
timeout-minutes: 35
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
9 changes: 8 additions & 1 deletion docs/source/user_guide/create_sites_for_python_operators.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Write-Host "Remove venv"
Remove-Item -Recurse -Force ($tempfolder + "/venv")
Write-Host "Done creating site-packages for gltf plugin"
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
Loading