Skip to content

Commit 6eba688

Browse files
authored
Merge pull request #155 from maxmind/greg/python-3.12
List 3.12 as supported and test on it
2 parents 114b07e + bc57539 commit 6eba688

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# We don't test on Windows currently as it appears mocket may not
1515
# work there.
1616
platform: [ubuntu-latest, macos-latest]
17-
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
17+
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
1818

1919
name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
2020
runs-on: ${{ matrix.platform }}
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install tox tox-gh-actions
36+
pip install setuptools tox tox-gh-actions
3737
3838
- name: Test with tox
3939
run: tox

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
History
55
-------
66

7+
4.8.0
8+
++++++++++++++++++
9+
10+
* IMPORTANT: Python 3.8 or greater is required. If you are using an older
11+
version, please use an earlier release.
12+
713
4.7.0 (2023-05-09)
814
++++++++++++++++++
915

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ correction, please `contact MaxMind support
495495
Requirements
496496
------------
497497

498-
Python 3.7 or greater is required. Older versions are not supported.
498+
Python 3.8 or greater is required. Older versions are not supported.
499499

500500
The Requests HTTP library is also required. See
501501
<https://pypi.org/project/requests/> for details.

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ authors = [
1010
{name = "Gregory Oschwald", email = "[email protected]"},
1111
]
1212
dependencies = [
13-
"maxminddb",
1413
"aiohttp>=3.6.2,<4.0.0",
15-
"maxminddb>=2.3.0,<3.0.0",
14+
"maxminddb>=2.5.1,<3.0.0",
1615
"requests>=2.24.0,<3.0.0",
1716
"setuptools>=60.0.0",
1817
]
19-
requires-python = ">=3.7"
18+
requires-python = ">=3.8"
2019
readme = "README.rst"
2120
license = {text = "Apache License, Version 2.0"}
2221
classifiers = [
@@ -27,7 +26,6 @@ classifiers = [
2726
"License :: OSI Approved :: Apache Software License",
2827
"Programming Language :: Python",
2928
"Programming Language :: Python :: 3",
30-
"Programming Language :: Python :: 3.7",
3129
"Programming Language :: Python :: 3.8",
3230
"Programming Language :: Python :: 3.9",
3331
"Programming Language :: Python :: 3.10",

setup.cfg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ universal = 1
1212
disable = duplicate-code
1313

1414
[tox:tox]
15-
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
15+
envlist = {py37,py38,py39,py310,py311,py312}-test,py312-{black,lint,flake8,mypy}
1616

1717
[gh-actions]
1818
python =
19-
3.7: py37
2019
3.8: py38
2120
3.9: py39
22-
3.10: py310,black,lint,flake8,mypy
21+
3.10: py310
22+
3.11: py311
23+
3.12: py312,black,lint,flake8,mypy
2324

2425
[testenv:{py37,py38,py39,py310}-test]
2526
deps =
@@ -31,19 +32,19 @@ deps =
3132
charset-normalizer==2.1.1
3233
commands = pytest tests
3334

34-
[testenv:py310-black]
35+
[testenv:py312-black]
3536
deps = black
3637
commands = black --check --diff .
3738

38-
[testenv:py310-lint]
39+
[testenv:py312-lint]
3940
deps = pylint
4041
commands = pylint geoip2
4142

42-
[testenv:py310-flake8]
43+
[testenv:py312-flake8]
4344
deps = flake8
4445
commands = flake8 geoip2
4546

46-
[testenv:py310-mypy]
47+
[testenv:py312-mypy]
4748
deps =
4849
mypy
4950
types-requests

0 commit comments

Comments
 (0)