Skip to content

Commit

Permalink
Add Python 3.13 support, drop 3.9 (#140)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
greschd and pyansys-ci-bot authored Dec 4, 2024
1 parent 4569d96 commit 45c9d6f
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 89 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

env:
MAIN_PYTHON_VERSION: "3.12"
MAIN_PYTHON_VERSION: "3.13"
PACKAGE_NAME: "ansys-tools-filetransfer"
DOCUMENTATION_CNAME: "filetransfer.tools.docs.pyansys.com"

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
exclude:
Expand All @@ -70,7 +70,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py39-plus]
args: [--py310-plus]

- repo: https://github.com/psf/black
rev: 24.10.0
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/140.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Python 3.13 support, drop 3.9
153 changes: 76 additions & 77 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ maintainers = ["ANSYS, Inc. <[email protected]>"]
readme = "README.rst"
repository = "https://github.com/ansys/ansys-tools-filetransfer"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.9",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
packages = [{ include = "ansys", from = "src" }]

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
python = ">=3.10,<4.0"
grpcio = ">=1.17"
ansys-api-tools-filetransfer = "^0.1.0"

Expand Down Expand Up @@ -67,7 +67,7 @@ source = ["ansys.tools.filetransfer"]
show_missing = true

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/tests"

[[tool.mypy.overrides]]
Expand Down
3 changes: 1 addition & 2 deletions src/ansys/tools/filetransfer/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import hashlib
import os
import stat
from typing import Optional

import grpc

Expand All @@ -49,7 +48,7 @@ class Client:
the FileTransfer Tool Server.
"""

def __init__(self, channel: grpc.Channel, max_message_length: Optional[int] = None):
def __init__(self, channel: grpc.Channel, max_message_length: int | None = None):
"""Initialize the client.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[tox]
description = Default tox environments list
envlist =
style,{py39,py310,py311,py312}{,-coverage},doc
style,{py310,py311,py312,py313}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
recreate = true

[gh-actions]
description = The tox environment to be executed in gh-actions for a given python version
python =
3.9: py39-coverage
3.10: py310-coverage
3.11: py311-coverage
3.12: py312-coverage
3.13: py313-coverage

[testenv]
description = Checks for project unit tests and coverage (if desired)
Expand Down

0 comments on commit 45c9d6f

Please sign in to comment.