Skip to content

Commit 26c35ac

Browse files
committed
bump minimum python version to 3.9
1 parent 1dad397 commit 26c35ac

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
fail-fast: false
5858
matrix:
5959
python-version:
60-
["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
60+
["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
6161

6262
steps:
6363
- uses: actions/checkout@v5
@@ -74,4 +74,4 @@ jobs:
7474
${{ runner.os }}-uv-py${{ matrix.python-version }}-
7575
7676
- name: Run tests
77-
run: uv run --python "${{ matrix.python-version }}" pytest -rs --no-cov -p no:faulthandler
77+
run: uv run --python "${{ matrix.python-version }}" pytest -rs --no-cov

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export UID:=$(shell id -u)
22
export GID:=$(shell id -g)
33

4-
export PYTHON_TAGS = 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15
4+
export PYTHON_TAGS = 3.9 3.10 3.11 3.12 3.13 3.14 3.15
55

66
setup:
77
@uv run pre-commit install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ API](https://webservices.amazon.com/paapi5/documentation/quick-start/using-sdk.h
55
This module allows interacting with Amazon using the official API in an easier way.
66

77
[![PyPI](https://img.shields.io/pypi/v/python-amazon-paapi?color=%231182C2&label=PyPI)](https://pypi.org/project/python-amazon-paapi/)
8-
[![Python](https://img.shields.io/badge/Python->3.8-%23FFD140)](https://www.python.org/)
8+
[![Python](https://img.shields.io/badge/Python->3.9-%23FFD140)](https://www.python.org/)
99
[![License](https://img.shields.io/badge/License-MIT-%23e83633)](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE)
1010
[![Amazon API](https://img.shields.io/badge/Amazon%20API-5.0-%23FD9B15)](https://webservices.amazon.com/paapi5/documentation/)
1111
[![PyPI - Downloads](https://img.shields.io/pypi/dm/python-amazon-paapi?label=Installs)](https://pypi.org/project/python-amazon-paapi/)

amazon_paapi/helpers/requests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import inspect
6-
from typing import TYPE_CHECKING, Any, List, NoReturn, cast
6+
from typing import TYPE_CHECKING, Any, NoReturn, cast
77

88
from amazon_paapi.errors import (
99
AssociateValidationError,
@@ -66,7 +66,7 @@ def get_items_response(amazon_api: AmazonApi, request: GetItemsRequest) -> list[
6666
msg = "No items have been found"
6767
raise ItemsNotFound(msg)
6868

69-
return cast("List[Item]", response.items_result.items)
69+
return cast("list[Item]", response.items_result.items)
7070

7171

7272
def get_search_items_request(
@@ -168,7 +168,7 @@ def get_browse_nodes_response(
168168
msg = "No browse nodes have been found"
169169
raise ItemsNotFound(msg)
170170

171-
return cast("List[BrowseNode]", response.browse_nodes_result.browse_nodes)
171+
return cast("list[BrowseNode]", response.browse_nodes_result.browse_nodes)
172172

173173

174174
def _get_request_resources(resource_class: type[object]) -> list[str]:

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ name = "python-amazon-paapi"
33
version = "5.1.0"
44
description = "Amazon Product Advertising API 5.0 wrapper for Python"
55
readme = "README.md"
6-
requires-python = ">=3.8"
6+
requires-python = ">=3.9"
77
license = "MIT"
88
authors = [{ name = "Sergio Abad", email = "sergio.abad@bytelix.com" }]
99
keywords = ["amazon", "paapi", "product-advertising-api", "affiliate", "api"]
1010
classifiers = [
1111
"Programming Language :: Python",
1212
"Programming Language :: Python :: 3",
13-
"Programming Language :: Python :: 3.8",
1413
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
@@ -46,7 +45,7 @@ packages = ["amazon_paapi"]
4645
dev = ["pre-commit>=2.21.0", "pytest>=7.4.4", "pytest-cov>=4.1.0"]
4746

4847
[tool.ruff]
49-
target-version = "py38"
48+
target-version = "py39"
5049
cache-dir = ".cache/ruff"
5150

5251
[tool.ruff.lint]

0 commit comments

Comments
 (0)