Skip to content

Commit 5efbd34

Browse files
authored
Merge pull request #32 from chezou/py12
Support Python 3.12
2 parents 7a812e7 + 354c4a4 commit 5efbd34

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: .github/workflows/pythonapp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
python-version: ['3.8', '3.9', '3.10', '3.11']
9+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1010
os: [ubuntu-latest, windows-latest]
1111
runs-on: ${{ matrix.os }}
1212
steps:

Diff for: pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
2728
]
2829
requires-python = ">=3.8"
2930
dependencies = [

Diff for: tdworkflow/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
2-
3-
import pkg_resources
2+
from importlib.metadata import PackageNotFoundError, version
43

54
from . import (
65
attempt,
@@ -15,8 +14,8 @@
1514
)
1615

1716
try:
18-
__version__ = pkg_resources.get_distribution(__name__).version
19-
except pkg_resources.DistributionNotFound:
17+
__version__ = version("tdworkflow")
18+
except PackageNotFoundError:
2019
# package is not installed
2120
pass
2221

0 commit comments

Comments
 (0)