Skip to content

Commit

Permalink
Breaking: Drop support for Python 3.8 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog authored Dec 11, 2024
1 parent 5943f4a commit a92266c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
-
uses: actions/checkout@v4
-
name: Set up Python 3.10
name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
-
name: Install Hatch
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']

steps:
-
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
-
uses: actions/checkout@v4
-
name: Set up Python 3.10
name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
-
name: Install Hatch
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Breaking Change

- Dropped support for Python 3.8 ([#36](https://github.com/stumpylog/tika-client/pull/36))

### Fixed

- Tests failed when run with Tika v3 ([#28](https://github.com/stumpylog/tika-client/pull/28))
Expand Down
18 changes: 7 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license = "MPL-2.0"
authors = [
{ name = "Trenton H", email = "rda0128ou@mozmail.com" },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
Expand All @@ -25,7 +25,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -36,8 +35,7 @@ classifiers = [
]
dynamic = [ "version" ]
dependencies = [
"httpx~=0.24; python_version<'3.9'",
"httpx~=0.27; python_version>='3.9'",
"httpx~=0.28",
"typing-extensions; python_version<'3.11'",
]

Expand Down Expand Up @@ -74,17 +72,15 @@ randomize = true
dependencies = [
"coverage-enable-subprocess == 1.0",
"coverage[toml] ~= 7.6",
"pytest < 8.0; python_version < '3.9'",
"pytest ~= 8.3; python_version >= '3.9'",
"pytest ~= 8.3",
"pytest-mock ~= 3.14",
"pytest-randomly ~= 3.15",
"pytest-rerunfailures ~= 14.0",
"pytest-xdist[psutil] ~= 3.6",
]
extra-dependencies = [
"pytest-sugar",
"pytest-httpx == 0.30.0; python_version >= '3.9'",
"pytest-httpx ~= 0.22; python_version < '3.9'",
"pytest-httpx ~= 0.33",
"python-magic",
"pytest-docker ~= 3.1",
]
Expand All @@ -109,7 +105,7 @@ cov-report = [
]

[[tool.hatch.envs.hatch-test.matrix]]
python = [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.9", "pypy3.10" ]
python = [ "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.9", "pypy3.10" ]

#
# Custom Environments
Expand Down Expand Up @@ -144,7 +140,7 @@ update = [ "pre-commit autoupdate" ]
#

[tool.ruff]
target-version = "py38"
target-version = "py39"
line-length = 120

# https://docs.astral.sh/ruff/settings/
Expand Down Expand Up @@ -239,7 +235,7 @@ lint.isort.known-first-party = [ "tika_client" ]
max_supported_python = "3.13"

[tool.pytest.ini_options]
minversion = "7.0"
minversion = "8.0"
testpaths = [ "tests" ]

[tool.coverage.run]
Expand Down
2 changes: 1 addition & 1 deletion src/tika_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from tika_client.data_models import TikaKey
from tika_client.data_models import XmpKey

__all__ = ["TikaClient", "TikaKey", "XmpKey", "DublinCoreKey"]
__all__ = ["DublinCoreKey", "TikaClient", "TikaKey", "XmpKey"]
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from collections.abc import Generator
from pathlib import Path
from typing import Generator

import pytest
from pytest_docker.plugin import Services
Expand Down

0 comments on commit a92266c

Please sign in to comment.