Skip to content

Commit

Permalink
Merge pull request #32 from chezou/py12
Browse files Browse the repository at this point in the history
Support Python 3.12
  • Loading branch information
chezou committed Apr 20, 2024
2 parents 7a812e7 + 354c4a4 commit 5efbd34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.8"
dependencies = [
Expand Down
7 changes: 3 additions & 4 deletions tdworkflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging

import pkg_resources
from importlib.metadata import PackageNotFoundError, version

from . import (
attempt,
Expand All @@ -15,8 +14,8 @@
)

try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound:
__version__ = version("tdworkflow")
except PackageNotFoundError:
# package is not installed
pass

Expand Down

0 comments on commit 5efbd34

Please sign in to comment.