Skip to content

Commit e242c75

Browse files
committed
update python versions
1 parent 7391eee commit e242c75

File tree

7 files changed

+22
-28
lines changed

7 files changed

+22
-28
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: windows-latest
3434
strategy:
3535
matrix:
36-
python-version: ['3.10', '3.11', '3.12']
36+
python-version: ['3.10', '3.11', '3.12', '3.13']
3737
fail-fast: false
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

doc/source/installer.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,10 @@ 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
248+
* Python 3.13
250249

251250
.. collapse:: Linux : Python installation
252251

@@ -264,8 +263,8 @@ Regarding the available Python versions, users can select among the following on
264263
#. Download Python Tarball and Untar:
265264

266265
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).
266+
based on the version selected from the dropdown menu. Example: For Python version 3.12.0, the download link
267+
would be here(https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz).
269268

270269
ii. Decompress the downloaded file in the user’s cache directory.
271270

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
66
name = "ansys-tools-installer"
77
description = "Python QT app or CLI for installing Python and PyAnsys."
88
readme = "README.rst"
9-
requires-python = ">=3.9,<4"
9+
requires-python = ">=3.10,<4"
1010
license = { file = "LICENSE" }
1111
authors = [{ name = "Ansys, Inc.", email = "[email protected]" }]
1212
maintainers = [{ name = "Ansys, Inc.", email = "[email protected]" }]
@@ -25,10 +25,10 @@ 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",
31+
"Programming Language :: Python :: 3.13",
3232
]
3333
dynamic = ["version"]
3434

scripts/update_python_versions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ 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",
83+
# "Python 3.13": "3.13.2",
8584
# }
8685
#
8786
# CONDA_PYTHON_VERSION = "23.1.0-4"

src/ansys/tools/installer/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,10 @@
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",
228226
"Python 3.12": "3.12.9",
227+
"Python 3.13": "3.13.2",
229228
}
230229

231230
CONDA_PYTHON_VERSION = "24.1.2-0"

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
"""
@@ -214,7 +212,7 @@ def create_venv_linux_conda(venv_dir, py_path):
214212
--------
215213
>>> create_venv_linux_conda(
216214
... "/home/sha/.local/ansys/.ansys_python_venvs/myenv/bin",
217-
... "/home/sha/.local/ansys/python-3.8.10/bin/python3",
215+
... "/home/sha/.local/ansys/python-3.12.0/bin/python3",
218216
... )
219217
220218
"""
@@ -233,7 +231,7 @@ def delete_venv_conda(miniforge_path, parent_path):
233231
--------
234232
>>> delete_venv_conda(
235233
... "/home/sha/.local/ansys/.ansys_python_venvs/myenv/bin",
236-
... "/home/sha/.local/ansys/python-3.8.10/bin/python3",
234+
... "/home/sha/.local/ansys/python-3.12.0/bin/python3",
237235
... )
238236
239237
"""
@@ -246,7 +244,7 @@ def run_linux_command(pypath, extra, venv=False):
246244
247245
Examples
248246
--------
249-
>>> run_linux_command("/home/sha/.local/ansys/python-3.8.10/bin/python3", "pip list")
247+
>>> run_linux_command("/home/sha/.local/ansys/python-3.12.0/bin/python3", "pip list")
250248
251249
"""
252250
prefix = f"{pypath}"
@@ -273,7 +271,7 @@ def run_linux_command_conda(pypath, extra, venv=False):
273271
274272
Examples
275273
--------
276-
>>> run_linux_command_conda("/home/sha/.local/ansys/python-3.8.10/bin/python3", "pip list")
274+
>>> run_linux_command_conda("/home/sha/.local/ansys/python-3.12.0/bin/python3", "pip list")
277275
278276
"""
279277
venvParam = ""
@@ -322,9 +320,8 @@ def find_ansys_installed_python_linux():
322320
>>> installed_pythons
323321
{'/home/user/python/py311/bin/python': ('3.11.3', False),
324322
'/home/user/python/py311/bin/python3': ('3.11.3', False),
325-
'/usr/bin/python3.7': ('3.7.16', True),
326-
'/usr/bin/python3.8': ('3.8.16', True),
327-
'/usr/bin/python3.9': ('3.9.16', True)}
323+
'/usr/bin/python3.12.0': ('3.12.0', True),
324+
328325
329326
"""
330327
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)