Skip to content

Commit

Permalink
MAINT: drop Python 3.7 & 3.8 support due to EOL (#9)
Browse files Browse the repository at this point in the history
* MAINT: modernize Python syntax to Python 3.9
  • Loading branch information
redeboer authored Oct 11, 2024
1 parent 6458bcc commit ba4e366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
"Topic :: Documentation",
Expand All @@ -35,7 +33,7 @@ keywords = [
license = {text = "BSD 3-Clause License"}
maintainers = [{email = "[email protected]"}]
name = "sphinx-pybtex-etal-style"
requires-python = ">=3.7"
requires-python = ">=3.9"

[project.optional-dependencies]
dev = ["sphinx-pybtex-etal-style[sty]"]
Expand Down Expand Up @@ -127,7 +125,7 @@ typeCheckingMode = "strict"
preview = true
show-fixes = true
src = ["src"]
target-version = "py37"
target-version = "py39"

[tool.ruff.format]
docstring-code-format = true
Expand Down
7 changes: 1 addition & 6 deletions src/sphinx_pybtex_etal_style/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# pyright: reportMissingTypeStubs=false
from __future__ import annotations

import sys
from typing import TYPE_CHECKING, ClassVar
from typing import TYPE_CHECKING, ClassVar, Literal

from pybtex.richtext import Tag, Text
from pybtex.style.formatting.unsrt import Style as UnsrtStyle
Expand All @@ -22,10 +21,6 @@

if TYPE_CHECKING:
from pybtex.database import Entry
if sys.version_info < (3, 8):
from typing_extensions import Literal
else:
from typing import Literal


ISBNResolvers = Literal["bookfinder", "isbnsearch"]
Expand Down

0 comments on commit ba4e366

Please sign in to comment.