Skip to content

Commit e994751

Browse files
authored
feat: remove Python 3.8 support and add Python 3.12 (#351)
1 parent 9ce566b commit e994751

File tree

6 files changed

+17
-28
lines changed

6 files changed

+17
-28
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ jobs:
126126
fail-fast: false
127127
matrix:
128128
os: [windows-latest, ubuntu-latest]
129-
python-version: ['3.8', '3.9', '3.10', '3.11']
129+
python-version: ['3.9', '3.10', '3.11', '3.12']
130130
steps:
131131
- uses: ansys/actions/build-wheelhouse@v5
132132
with:
133133
library-name: ${{ env.PACKAGE_NAME }}
134-
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
135134
operating-system: ${{ matrix.os }}
136135
python-version: ${{ matrix.python-version }}
137136

@@ -238,4 +237,3 @@ jobs:
238237
with:
239238
cname: ${{ env.DOCUMENTATION_CNAME }}
240239
token: ${{ secrets.GITHUB_TOKEN }}
241-
python-version: ${{ env.MAIN_PYTHON_VERSION }}

doc/source/getting-started/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Both these modules are gRPC enabled and hence need to be run using server-client
1414

1515
Install the client
1616
------------------
17-
The ``ansys.dyna.core`` package supports Python 3.8 through
18-
Python 3.11 on Windows, Linux, and MacOS.
17+
The ``ansys.dyna.core`` package supports Python 3.9 through
18+
Python 3.12 on Windows, Linux, and MacOS.
1919

2020
You should consider installing PyDYNA in a virtual environment.
2121
For more information, see Python's
@@ -66,18 +66,18 @@ PyDYNA by downloading the wheelhouse archive for your corresponding machine
6666
architecture from the `Releases Page <https://github.com/pyansys/pydyna/releases>`_.
6767

6868
Each wheelhouse archive contains all the Python wheels necessary to install
69-
PyDYNA from scratch on Windows and Linux for Python 3.8 through 3.11. You can install
69+
PyDYNA from scratch on Windows and Linux for Python 3.9 through 3.12. You can install
7070
PyDYNA on an isolated system with a fresh Python installation or on a virtual environment.
7171

72-
For example, on Linux with Python 3.8, unzip the wheelhouse archive and install PyDYNA
72+
For example, on Linux with Python 3.9, unzip the wheelhouse archive and install PyDYNA
7373
with these commands:
7474

7575
.. code:: bash
7676
77-
unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.8.zip -d wheelhouse
77+
unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.9.zip -d wheelhouse
7878
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
7979
80-
If you're on Windows with Python 3.8, unzip the wheelhouse archive to a ``wheelhouse``
80+
If you're on Windows with Python 3.9, unzip the wheelhouse archive to a ``wheelhouse``
8181
directory and install PyDYNA using the preceding command.
8282

8383
Run PyDYNA Server locally

docker/pre/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pydyna-pre service Linux-based Dockerfile
22

3-
FROM python:3.8-slim-buster
3+
FROM python:3.9-slim-buster
44

55
# Define the working directory
66
WORKDIR /server

pyproject.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name = "ansys-dyna-core"
77
version = "0.4.dev0"
88
description = "Python interface to LS-DYNA Service"
99
readme = "README.rst"
10-
requires-python = ">=3.8,<4"
11-
license = {file = "LICENSE"}
12-
authors = [{name = "ANSYS, Inc.", email = "[email protected]"}]
13-
maintainers = [{name = "ANSYS, Inc.", email = "[email protected]"}]
10+
requires-python = ">=3.9,<4"
11+
license = { file = "LICENSE" }
12+
authors = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
13+
maintainers = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
1414
keywords = ["Ansys", "LS-DYNA", "gRPC"]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
@@ -19,16 +19,13 @@ classifiers = [
1919
"License :: OSI Approved :: MIT License",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2626
]
2727

28-
dependencies = [
29-
"ansys-dpf-core>=0.7.2",
30-
"ansys-api-dyna==0.3.5",
31-
]
28+
dependencies = ["ansys-dpf-core>=0.7.2", "ansys-api-dyna==0.3.5"]
3229

3330
[project.optional-dependencies]
3431
tests = [
@@ -99,6 +96,4 @@ show_missing = true
9996
[tool.pytest.ini_options]
10097
minversion = "7.1"
10198
addopts = "-ra --cov=ansys.dyna.core --cov-report html:.cov/html --cov-report xml:.cov/xml --cov-report term -vv"
102-
testpaths = [
103-
"tests",
104-
]
99+
testpaths = ["tests"]

src/ansys/dyna/core/pre/dynalogging.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,7 @@ def __init__(
241241
validate=True,
242242
defaults=None,
243243
):
244-
if sys.version_info[1] < 8:
245-
super().__init__(fmt, datefmt, style)
246-
else:
247-
# 3.8: The validate parameter was added
248-
super().__init__(fmt, datefmt, style, validate)
244+
super().__init__(fmt, datefmt, style, validate)
249245
self._style = PymapdlPercentStyle(fmt, defaults=defaults) # overwriting
250246

251247

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ isolated_build_env = build
99
[testenv]
1010
description = Checks for project testing with desired extras
1111
basepython =
12-
tests38: python3.8
1312
tests39: python3.9
1413
test310: python3.10
1514
test311: python3.11
15+
test312: python3.12
1616
{style,tests,doc}: python3
1717
passenv = *
1818
setenv =

0 commit comments

Comments
 (0)