Skip to content

Commit 6571d17

Browse files
authored
Merge branch 'main' into test-uv
2 parents d595a4a + 536a780 commit 6571d17

File tree

10 files changed

+64
-72
lines changed

10 files changed

+64
-72
lines changed

.github/workflows/ci_cd.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: "Documentation style"
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: ansys/actions/doc-style@v8
27+
- uses: ansys/actions/doc-style@v9
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030

@@ -44,9 +44,9 @@ jobs:
4444
run: sudo apt install libegl1
4545

4646
- name: Setup headless display
47-
uses: pyvista/setup-headless-display-action@v3
47+
uses: pyvista/setup-headless-display-action@v4
4848

49-
- uses: ansys/actions/tests-pytest@v8
49+
- uses: ansys/actions/tests-pytest@v9
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252

@@ -56,7 +56,7 @@ jobs:
5656
needs: [doc-style]
5757
steps:
5858
- name: Build project documentation
59-
uses: ansys/actions/doc-build@v8
59+
uses: ansys/actions/doc-build@v9
6060
with:
6161
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6262
dependencies: "libegl1"
@@ -67,7 +67,7 @@ jobs:
6767
needs: [doc-build]
6868
if: github.ref == 'refs/heads/main'
6969
steps:
70-
- uses: ansys/actions/doc-deploy-dev@v8
70+
- uses: ansys/actions/doc-deploy-dev@v9
7171
with:
7272
cname: ${{ env.DOCUMENTATION_CNAME }}
7373
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -121,7 +121,7 @@ jobs:
121121
build-application-linux-debian:
122122
strategy:
123123
matrix:
124-
os: ["22.04", "20.04"]
124+
os: ["24.04", "22.04"]
125125
fail-fast: false
126126
name: "Build Application Linux - Ubuntu ${{ matrix.os }}"
127127
runs-on: ubuntu-${{ matrix.os }}
@@ -165,20 +165,6 @@ jobs:
165165
sudo apt install ruby -y
166166
sudo gem install fpm
167167
168-
- name: Ubuntu-20.04 dependencies
169-
if: matrix.os == '20.04'
170-
run: |
171-
sudo add-apt-repository ppa:okirby/qt6-backports -y
172-
sudo apt update
173-
sudo apt install qt6-base-dev -y
174-
175-
wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi8_3.4.2-4_amd64.deb
176-
sudo apt install ./libffi8_3.4.2-4_amd64.deb
177-
178-
wget http://archive.ubuntu.com/ubuntu/pool/main/w/wayland/libwayland-client0_1.20.0-1_amd64.deb
179-
sudo apt install ./libwayland-client0_1.20.0-1_amd64.deb
180-
181-
182168
- name: Create python-3.11 artifact
183169
run: |
184170
mkdir -p cd ${HOME}/.cache
@@ -450,6 +436,25 @@ jobs:
450436
name: Python-Installer-windows-signed
451437
path: signtool/installer/*Setup*.exe
452438

439+
automerge-prs:
440+
name: Automerge PRs (dependabot and pre-commit.ci only)
441+
runs-on: ubuntu-latest
442+
needs:
443+
- sign-application-windows
444+
- build-application-linux-debian
445+
- build-application-linux-non-debian
446+
- doc-build
447+
if: github.event_name == 'pull_request'
448+
permissions:
449+
contents: write
450+
pull-requests: write
451+
steps:
452+
- name: Automerge PRs
453+
uses: ansys/actions/hk-automerge-prs@v9
454+
with:
455+
approver: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
456+
approver-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
457+
453458
release:
454459
name: Release application
455460
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
@@ -471,7 +476,7 @@ jobs:
471476

472477
- uses: actions/download-artifact@v4
473478
with:
474-
name: Python-Installer-ubuntu_20.04
479+
name: Python-Installer-ubuntu_24.04
475480
path: installer
476481

477482
- uses: actions/download-artifact@v4
@@ -514,7 +519,7 @@ jobs:
514519
needs: [release, doc-build]
515520
steps:
516521
- name: Deploy the stable documentation
517-
uses: ansys/actions/doc-deploy-stable@v8
522+
uses: ansys/actions/doc-deploy-stable@v9
518523
with:
519524
cname: ${{ env.DOCUMENTATION_CNAME }}
520525
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ ci:
66

77
repos:
88
- repo: https://github.com/pycqa/isort
9-
rev: 5.13.2
9+
rev: 6.0.1
1010
hooks:
1111
- id: isort
1212
args:
1313
- --line-length=88
1414

1515
- repo: https://github.com/psf/black
16-
rev: 24.10.0
16+
rev: 25.1.0
1717
hooks:
1818
- id: black
1919
args:
@@ -26,12 +26,12 @@ repos:
2626
files: '\.py$'
2727

2828
- repo: https://github.com/PyCQA/flake8
29-
rev: 7.1.1
29+
rev: 7.2.0
3030
hooks:
3131
- id: flake8
3232

3333
- repo: https://github.com/codespell-project/codespell
34-
rev: v2.3.0
34+
rev: v2.4.1
3535
hooks:
3636
- id: codespell
3737
args: ["--toml", "pyproject.toml"]
@@ -54,12 +54,12 @@ repos:
5454

5555
# this validates our github workflow files
5656
- repo: https://github.com/python-jsonschema/check-jsonschema
57-
rev: 0.31.0
57+
rev: 0.33.0
5858
hooks:
5959
- id: check-github-workflows
6060

6161
- repo: https://github.com/ansys/pre-commit-hooks
62-
rev: v0.4.4
62+
rev: v0.5.2
6363
hooks:
6464
- id: add-license-headers
6565
args:

doc/source/installer.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ Two Python options for installation are available:
242242

243243
Regarding the available Python versions, users can select among the following ones:
244244

245-
* Python 3.8
246-
* Python 3.9
247245
* Python 3.10
248246
* Python 3.11
249247
* Python 3.12
@@ -264,8 +262,8 @@ Regarding the available Python versions, users can select among the following on
264262
#. Download Python Tarball and Untar:
265263

266264
i. The Python tar file will be downloaded from the Python FTP server (https://www.python.org/ftp/python)
267-
based on the version selected from the dropdown menu. Example: For Python version 3.8.11, the download link
268-
would be here(https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tar.xz).
265+
based on the version selected from the dropdown menu. Example: For Python version 3.12.0, the download link
266+
would be here(https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz).
269267

270268
ii. Decompress the downloaded file in the user’s cache directory.
271269

pyproject.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers = [
2525
"Topic :: Scientific/Engineering :: Information Analysis",
2626
"License :: OSI Approved :: MIT License",
2727
"Operating System :: Microsoft :: Windows",
28-
"Programming Language :: Python :: 3.9",
2928
"Programming Language :: Python :: 3.10",
3029
"Programming Language :: Python :: 3.11",
3130
"Programming Language :: Python :: 3.12",
@@ -35,31 +34,31 @@ dynamic = ["version"]
3534

3635
[project.optional-dependencies]
3736
tests = [
38-
"packaging==24.2",
39-
"PyGithub==2.5.0",
37+
"packaging==25.0",
38+
"PyGithub==2.6.1",
4039
"appdirs==1.4.4",
4140
"requests==2.32.3",
42-
"PySide6==6.8.1",
41+
"PySide6==6.9.0",
4342
"ansys-tools-path==0.7.1",
44-
"pytest==8.3.4",
45-
"pytest-cov==6.0.0",
43+
"pytest==8.3.5",
44+
"pytest-cov==6.1.1",
4645
"pytest-qt==4.4.0",
47-
"setuptools==75.8.0",
46+
"setuptools==80.0.0",
4847
]
4948
doc = [
50-
"Sphinx==8.1.3",
51-
"ansys-sphinx-theme==1.2.4",
49+
"Sphinx==8.2.3",
50+
"ansys-sphinx-theme==1.4.2",
5251
"sphinx-copybutton==0.5.2",
5352
"sphinx_design==0.6.1",
54-
"sphinx_toolbox==3.8.1",
53+
"sphinx_toolbox==3.9.0",
5554
]
5655
freeze = [
57-
"pyinstaller==6.11.1",
58-
"packaging==24.2",
59-
"PyGithub==2.5.0",
56+
"pyinstaller==6.13.0",
57+
"packaging==25.0",
58+
"PyGithub==2.6.1",
6059
"appdirs==1.4.4",
6160
"requests==2.32.3",
62-
"PySide6==6.8.1",
61+
"PySide6==6.9.0",
6362
"ansys-tools-path==0.7.1",
6463
]
6564

scripts/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
requests==2.32.3
2-
packaging==24.2
2+
packaging==25.0

scripts/update_python_versions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def get_minor_version_sublist_with_greater_patch(list: list[str], current_versio
7777
# Example:
7878
#
7979
# VANILLA_PYTHON_VERSIONS = {
80-
# "Python 3.8": "3.8.10",
81-
# "Python 3.9": "3.9.13",
8280
# "Python 3.10": "3.10.11",
8381
# "Python 3.11": "3.11.6",
8482
# "Python 3.12": "3.12.0",

src/ansys/tools/installer/constants.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@
221221
#
222222

223223
VANILLA_PYTHON_VERSIONS = {
224-
"Python 3.8": "3.8.10",
225-
"Python 3.9": "3.9.13",
226224
"Python 3.10": "3.10.11",
227225
"Python 3.11": "3.11.9",
228-
"Python 3.12": "3.12.8",
226+
"Python 3.12": "3.12.10",
229227
}
230228

231229
CONDA_PYTHON_VERSION = "24.1.2-0"

src/ansys/tools/installer/find_python.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ def _find_installed_python_linux():
170170
>>> installed_pythons
171171
{'/home/user/python/py311/bin/python': ('3.11.3', False),
172172
'/home/user/python/py311/bin/python3': ('3.11.3', False),
173-
'/usr/bin/python3.7': ('3.7.16', True),
174-
'/usr/bin/python3.8': ('3.8.16', True),
175-
'/usr/bin/python3.9': ('3.9.16', True)}
176173
177174
"""
178175
LOG.debug("Identifying all installed versions of python on Linux")

src/ansys/tools/installer/linux_functions.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def get_vanilla_url_and_filename(selected_version):
7878
7979
Examples
8080
--------
81-
>>> url, filename = get_vanilla_url_and_filename("3.8.11")
81+
>>> url, filename = get_vanilla_url_and_filename("3.12.0")
8282
>>> url
83-
'https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tar.xz'
83+
'https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz'
8484
>>> filename
85-
'Python-3.8.11.tar.xz'
85+
'Python-3.12.0.tar.xz'
8686
8787
"""
8888
url = f"https://www.python.org/ftp/python/{selected_version}/Python-{selected_version}.tar.xz"
@@ -160,9 +160,7 @@ def find_miniforge_linux(ansys_manager_installed_only=False):
160160
>>> installed_pythons
161161
{'/home/user/python/py311/bin/python': ('3.11.3', False),
162162
'/home/user/python/py311/bin/python3': ('3.11.3', False),
163-
'/usr/bin/python3.7': ('3.7.16', True),
164-
'/usr/bin/python3.8': ('3.8.16', True),
165-
'/usr/bin/python3.9': ('3.9.16', True)}
163+
'/usr/bin/python3.12': ('3.12.0', True),
166164
167165
"""
168166
paths = {}
@@ -199,7 +197,7 @@ def create_venv_linux(venv_dir, py_path):
199197
--------
200198
>>> create_venv_linux(
201199
... "/home/sha/.local/ansys/.ansys_python_venvs/myenv/bin",
202-
... "/home/sha/.local/ansys/python-3.8.10/bin/python3",
200+
... "/home/sha/.local/ansys/python-3.12.0/bin/python3",
203201
... )
204202
205203
"""
@@ -215,7 +213,7 @@ def create_venv_linux_conda(venv_dir, py_path):
215213
--------
216214
>>> create_venv_linux_conda(
217215
... "/home/sha/.local/ansys/.ansys_python_venvs/myenv/bin",
218-
... "/home/sha/.local/ansys/python-3.8.10/bin/python3",
216+
... "/home/sha/.local/ansys/python-3.12.0/bin/python3",
219217
... )
220218
221219
"""
@@ -234,7 +232,7 @@ def delete_venv_conda(miniforge_path, parent_path):
234232
--------
235233
>>> delete_venv_conda(
236234
... "/home/sha/.local/ansys/.ansys_python_venvs/myenv/bin",
237-
... "/home/sha/.local/ansys/python-3.8.10/bin/python3",
235+
... "/home/sha/.local/ansys/python-3.12.0/bin/python3",
238236
... )
239237
240238
"""
@@ -247,7 +245,7 @@ def run_linux_command(pypath, extra, venv=False):
247245
248246
Examples
249247
--------
250-
>>> run_linux_command("/home/sha/.local/ansys/python-3.8.10/bin/python3", "uv pip list")
248+
>>> run_linux_command("/home/sha/.local/ansys/python-3.12.0/bin/python3", "uv pip list")
251249
252250
"""
253251

@@ -278,7 +276,7 @@ def run_linux_command_conda(pypath, extra, venv=False):
278276
279277
Examples
280278
--------
281-
>>> run_linux_command_conda("/home/sha/.local/ansys/python-3.8.10/bin/python3", "uv pip list")
279+
>>> run_linux_command_conda("/home/sha/.local/ansys/python-3.12.0/bin/python3", "uv pip list")
282280
283281
"""
284282
venvParam = ""
@@ -327,9 +325,8 @@ def find_ansys_installed_python_linux():
327325
>>> installed_pythons
328326
{'/home/user/python/py311/bin/python': ('3.11.3', False),
329327
'/home/user/python/py311/bin/python3': ('3.11.3', False),
330-
'/usr/bin/python3.7': ('3.7.16', True),
331-
'/usr/bin/python3.8': ('3.8.16', True),
332-
'/usr/bin/python3.9': ('3.9.16', True)}
328+
'/usr/bin/python3.12.0': ('3.12.0', True),
329+
333330
334331
"""
335332
LOG.debug(

tests/test_linux_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828

2929
def test_get_vanilla_url_and_filename():
30-
url, filename = get_vanilla_url_and_filename("3.8.11")
31-
assert url == "https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tar.xz"
32-
assert filename == "Python-3.8.11.tar.xz"
30+
url, filename = get_vanilla_url_and_filename("3.12.0")
31+
assert url == "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz"
32+
assert filename == "Python-3.12.0.tar.xz"
3333

3434

3535
def test_get_conda_url_and_filename():

0 commit comments

Comments
 (0)