Skip to content

Commit 42b5793

Browse files
committed
fix: bump python sdk dependencies to resolve security alerts and drop python 3.8 (#47)
BREAKING CHANGE: minimum supported Python version is now 3.9; Python 3.8 is no longer supported.
1 parent 476d3d6 commit 42b5793

7 files changed

Lines changed: 14 additions & 12 deletions

File tree

hostinger_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
""" # noqa: E501
1313

1414

15-
__version__ = "0.0.24"
15+
__version__ = "1.0.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.billing_catalog_api import BillingCatalogApi

hostinger_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
self.default_headers[header_name] = header_value
8989
self.cookie = cookie
9090
# Set default User-Agent.
91-
self.user_agent = 'hostinger_api-python/0.0.24'
91+
self.user_agent = 'hostinger_api-python/1.0.0'
9292
self.client_side_validation = configuration.client_side_validation
9393

9494
def __enter__(self):

hostinger_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def to_debug_report(self) -> str:
508508
"OS: {env}\n"\
509509
"Python Version: {pyversion}\n"\
510510
"Version of the API: 0.21.0\n"\
511-
"SDK Package Version: 0.0.24".\
511+
"SDK Package Version: 1.0.0".\
512512
format(env=sys.platform, pyversion=sys.version)
513513

514514
def get_host_settings(self) -> List[HostSetting]:

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hostinger_api"
3-
version = "0.0.24"
3+
version = "1.0.0"
44
description = "Hostinger API"
55
authors = ["Hostinger <devs@hostinger.com>"]
66
license = "MIT"
@@ -10,17 +10,18 @@ keywords = ["hostinger", "openapi", "python", "sdk", "rest", "api"]
1010
include = ["hostinger_api/py.typed"]
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.8"
13+
python = "^3.9"
1414

15-
urllib3 = ">= 1.25.3, < 3.0.0"
15+
urllib3 = ">= 2.7.0, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pydantic = ">= 2"
1818
typing-extensions = ">= 4.7.1"
1919

2020
[tool.poetry.dev-dependencies]
21-
pytest = ">= 7.2.1"
21+
pytest = ">= 9.0.3"
2222
pytest-cov = ">= 2.8.1"
2323
tox = ">= 3.9.0"
24+
filelock = ">= 3.20.3"
2425
flake8 = ">= 4.0.0"
2526
types-python-dateutil = ">= 2.8.19.14"
2627
mypy = ">= 1.5"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
urllib3 >= 1.25.3, < 3.0.0
1+
urllib3 >= 2.7.0, < 3.0.0
22
python_dateutil >= 2.8.2
33
pydantic >= 2
44
typing-extensions >= 4.7.1

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def read(filename):
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "hostinger_api"
25-
VERSION = "0.0.24"
26-
PYTHON_REQUIRES = ">= 3.8"
25+
VERSION = "1.0.0"
26+
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
28-
"urllib3 >= 1.25.3, < 3.0.0",
28+
"urllib3 >= 2.7.0, < 3.0.0",
2929
"python-dateutil >= 2.8.2",
3030
"pydantic >= 2",
3131
"typing-extensions >= 4.7.1",

test-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
pytest >= 7.2.1
1+
pytest >= 9.0.3
22
pytest-cov >= 2.8.1
33
tox >= 3.9.0
4+
filelock >= 3.20.3
45
flake8 >= 4.0.0
56
types-python-dateutil >= 2.8.19.14
67
mypy >= 1.5

0 commit comments

Comments
 (0)