Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared-Newell-Mobility authored Feb 5, 2024
1 parent 55d1ce4 commit cef6d6c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 124 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
strategy:
matrix:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
115 changes: 13 additions & 102 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ classifiers = [
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.7'
]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
jsonschema = "^4.4.0"

[tool.poetry.dev-dependencies]
# Starting from Python 3.8, asynctest is replaced with a unittest.mock.AsyncMock in standard library.
asynctest = { version = "0.13.0", python = "~3.7" }
pytest = "^7"
pytest-asyncio = "^0.20.3"
pytest-cov = "^4.0.0"
Expand Down
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
try:
from unittest.mock import AsyncMock
except ImportError:
# Python 3.7 and below don't include unittest.mock.AsyncMock. Hence,
# we need to resolve to a package on pypi.
from asynctest import CoroutineMock as AsyncMock
from unittest.mock import AsyncMock

import pytest

Expand Down
7 changes: 1 addition & 6 deletions tests/v16/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
try:
from unittest.mock import AsyncMock
except ImportError:
# Python 3.7 and below don't include unittest.mock.AsyncMock. Hence,
# we need to resolve to a package on pypi.
from asynctest import CoroutineMock as AsyncMock
from unittest.mock import AsyncMock

import pytest

Expand Down
7 changes: 1 addition & 6 deletions tests/v201/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
try:
from unittest.mock import AsyncMock
except ImportError:
# Python 3.7 and below don't include unittest.mock.AsyncMock. Hence,
# we need to resolve to a package on pypi.
from asynctest import CoroutineMock as AsyncMock
from unittest.mock import AsyncMock

import pytest

Expand Down

0 comments on commit cef6d6c

Please sign in to comment.