Skip to content

Commit

Permalink
Merge pull request #10 from getslash/support-py312
Browse files Browse the repository at this point in the history
Updated supported python versions: add 3.12 & remove 3.7
  • Loading branch information
ayalash authored Sep 7, 2024
2 parents e2d2137 + 70914ba commit 87cb26c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Slash-Step ChangeLog

Next Version
------------
* Update supported python version: add 3.12 & remove 3.7

Version 1.1.0 (Released 2021-09-07)
-----------------------------------
* Use GitHub Actions CI (instead of Travis Ci)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ build-backend = "hatchling.build"
name = "slash-step"
description = "A more granular sub STEP for slash tests"
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = { text = "BSD 3-Clause License" }

classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"Logbook>=1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions slash_step/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import pkg_resources
from ._compat import get_distribution

__version__ = pkg_resources.get_distribution('slash-step').version
__version__ = get_distribution("slash-step").version
14 changes: 14 additions & 0 deletions slash_step/_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys

if sys.version_info < (3, 8):
# pylint: disable=unused-import
import pkg_resources

get_distribution = pkg_resources.get_distribution
PackageNotFoundError = pkg_resources.DistributionNotFound
else:
# pylint: disable=unused-import
import importlib.metadata

get_distribution = importlib.metadata.distribution
PackageNotFoundError = importlib.metadata.PackageNotFoundError

0 comments on commit 87cb26c

Please sign in to comment.