Skip to content

Commit

Permalink
Update supported Python versions (#515)
Browse files Browse the repository at this point in the history
* Update pyproject.toml

* Simplify examples.yml

* Update bug.yml

* Update CI

* Update CI

* Add manual trigger for ci_release.yml
  • Loading branch information
PProfizi authored Oct 16, 2023
1 parent 392d0a8 commit 443d866
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ body:
multiple: false
options:
- 'Ansys 2024 R1'
- 'DPF Server 2024.1.pre0'
- 'Ansys 2023 R2'
- 'DPF Server 2023.2.pre1'
- 'DPF Server 2023.2.pre0'
Expand All @@ -85,6 +86,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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
os: ["windows-latest", "ubuntu-latest"]

steps:
Expand Down Expand Up @@ -195,6 +195,7 @@ jobs:
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: "241"
python_version: "3.10"
standalone_suffix: ${{ inputs.standalone_suffix || ''}}
event_name: ${{ github.event_name }}
secrets: inherit
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- "v*"
schedule:
- cron: "0 13 * * 0"
workflow_dispatch:
inputs:
standalone_branch_suffix:
description: 'Suffix of the branch on standalone'
required: false
default: '.pre0'

#┌───────────── minute (0 - 59)
#│ ┌───────────── hour (0 - 23)
Expand Down Expand Up @@ -57,8 +63,7 @@ jobs:
fail-fast: false
matrix:
ANSYS_VERSION: ["241"]
suffix: [".pre0"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
os: ["windows-latest", "ubuntu-latest"]

steps:
Expand All @@ -82,7 +87,7 @@ jobs:
install_extras: plotting
wheel: true
wheelhouse: true
standalone_suffix: ${{ matrix.suffix }}
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}

- name: "Prepare Testing Environment"
uses: ansys/pydpf-actions/[email protected]
Expand Down Expand Up @@ -185,14 +190,15 @@ jobs:
with:
ANSYS_VERSION: '241'
python_versions: '["3.10"]'
standalone_suffix: '.pre0'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
secrets: inherit

docs:
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: '241'
standalone_suffix: '.pre0'
python-version: "3.10"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
event_name: ${{ github.event_name }}
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.10"
ANSYS_VERSION:
required: false
type: string
Expand Down Expand Up @@ -37,7 +37,7 @@ on:
description: "Python interpreter"
required: true
type: string
default: "3.8"
default: "3.10"
ANSYS_VERSION:
description: "ANSYS version"
required: true
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: 'post.docs.pyansys.com'
PYTHON_MAIN_VERSION: '3.10'

jobs:

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "ansys-dpf-post"
version = "0.5.1.dev0"
description = "PyDPF-Post Python library."
readme = "README.md"
requires-python = ">=3.8,<4.0"
requires-python = ">=3.9,<4.0"
license = {file = "LICENSE"}
authors = [
{name = "ANSYS, Inc.", email = "[email protected]"},
Expand All @@ -27,10 +27,10 @@ classifiers = [
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Information Analysis",
]

Expand Down

0 comments on commit 443d866

Please sign in to comment.