Skip to content

Commit

Permalink
Revert "drop support for python 3.7" (#597)
Browse files Browse the repository at this point in the history
Reverts #585

As this is breaking should be included in release 1.0.0
  • Loading branch information
Jared-Newell-Mobility committed Feb 5, 2024
1 parent 1fcc49d commit 3963e7a
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
115 changes: 102 additions & 13 deletions poetry.lock

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

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ 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.8"
python = "^3.7"
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: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from unittest.mock import AsyncMock
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

import pytest

Expand Down
7 changes: 6 additions & 1 deletion tests/v16/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from unittest.mock import AsyncMock
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

import pytest

Expand Down
7 changes: 6 additions & 1 deletion tests/v201/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from unittest.mock import AsyncMock
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

import pytest

Expand Down

0 comments on commit 3963e7a

Please sign in to comment.