Skip to content

Commit

Permalink
Drop support for python 3.5, 3.6 and add support for 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ayalash committed Nov 3, 2023
1 parent 3b6f3ff commit 2f07848
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 8 additions & 2 deletions dessert/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import pkg_resources
import sys
if sys.version_info < (3, 8):
import pkg_resources
get_distribution = pkg_resources.get_distribution
else:
from importlib.metadata import distribution
get_distribution = distribution

__version__ = pkg_resources.get_distribution('dessert').version
__version__ = get_distribution('dessert').version
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ build-backend = "setuptools.build_meta"
name = "dessert"
description = "Assertion introspection via AST rewriting"
readme = "README.md"
requires-python = ">=3.5"
requires-python = ">=3.7"
license = { text = "MIT" }

classifiers = [
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"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 = ["munch", "py", "atomicwrites>=1.0", "attrs"]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,py38,py39,py310
envlist = py37,py38,py39,py310,py311,py312

[testenv]
commands = pytest
Expand Down

0 comments on commit 2f07848

Please sign in to comment.