Skip to content

Commit 4e08411

Browse files
committed
chore: Drop Python 3.7
1 parent ec91bfa commit 4e08411

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ A clear and concise description of what you expected to happen.
2323
**Environment (please complete the following information):**
2424

2525
- OS: [e.g. Linux or Windows]
26-
- Python version: [e.g. 3.7.2]
27-
- hypothesis-graphql version: [e.g. 0.3.0]
28-
- hypothesis version: [e.g. 5.30.1]
26+
- Python version: [e.g. 3.10.8]
27+
- hypothesis-graphql version: [e.g. 0.11.0]
28+
- hypothesis version: [e.g. 6.91.1]
2929

3030
**Additional context**
3131
Add any other context about the problem here.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
os: [ubuntu-22.04]
52-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
52+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
5353

5454
name: ${{ matrix.os }}/tests_${{ matrix.python }}
5555
runs-on: ${{ matrix.os }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- Support for Python 3.12.
88
- Include tests in the source tarball. #82
99

10+
### Removed
11+
12+
- Python 3.7 support.
13+
1014
## [0.10.0] - 2023-04-12
1115

1216
### Changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ the problem.
3131

3232
5. Tests are run using `tox`:
3333

34-
tox -e py37
34+
tox -e py39
3535

3636
The test environment above is usually enough to cover most cases
3737
locally.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ classifiers = [
1515
"License :: OSI Approved :: MIT License",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python :: 3 :: Only",
18-
"Programming Language :: Python :: 3.7",
1918
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
@@ -29,7 +28,7 @@ maintainers = [{ name = "Dmitry Dygalo", email = "dmitry@dygalo.dev" }]
2928
readme = "README.md"
3029
license = "MIT"
3130
include = ["src/hypothesis_graphql/py.typed"]
32-
requires-python = ">=3.7"
31+
requires-python = ">=3.8"
3332
dependencies = [
3433
"hypothesis>=5.8.0,<7.0",
3534
"graphql-core>=3.1.0,<3.3.0",
@@ -102,7 +101,7 @@ ignore = [
102101
"D213", # Multiline summary second line
103102
"D401", # Imperative mood
104103
]
105-
target-version = "py37"
104+
target-version = "py38"
106105

107106
# Ignore `F401` (unused import) in all `__init__.py` files.
108107
[tool.ruff.per-file-ignores]

src/hypothesis_graphql/_strategies/factories.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
FieldNodeInput = Tuple[List[graphql.ArgumentNode], Optional[SelectionNodes]]
1414

1515

16-
@lru_cache()
16+
@lru_cache
1717
def inline_fragment(type_name: str) -> Callable[[SelectionNodes], graphql.InlineFragmentNode]:
1818
def factory(nodes: SelectionNodes) -> graphql.InlineFragmentNode:
1919
return graphql.InlineFragmentNode(
@@ -26,15 +26,15 @@ def factory(nodes: SelectionNodes) -> graphql.InlineFragmentNode:
2626
return factory
2727

2828

29-
@lru_cache()
29+
@lru_cache
3030
def argument(name: str) -> Callable[[graphql.ValueNode], graphql.ArgumentNode]:
3131
def factory(value: graphql.ValueNode) -> graphql.ArgumentNode:
3232
return graphql.ArgumentNode(name=graphql.NameNode(value=name), value=value)
3333

3434
return factory
3535

3636

37-
@lru_cache()
37+
@lru_cache
3838
def field(name: str) -> Callable[[FieldNodeInput], graphql.FieldNode]:
3939
def factory(tup: FieldNodeInput) -> graphql.FieldNode:
4040
return graphql.FieldNode(
@@ -46,7 +46,7 @@ def factory(tup: FieldNodeInput) -> graphql.FieldNode:
4646
return factory
4747

4848

49-
@lru_cache()
49+
@lru_cache
5050
def object_field(name: str) -> Callable[[graphql.ValueNode], graphql.ObjectFieldNode]:
5151
def factory(value: graphql.ValueNode) -> graphql.ObjectFieldNode:
5252
return graphql.ObjectFieldNode(name=graphql.NameNode(value=name), value=value)

src/hypothesis_graphql/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def List(
4242
# Boolean & Enum nodes have a limited set of variants, therefore caching is effective in this case
4343

4444

45-
@lru_cache()
45+
@lru_cache
4646
def Boolean(value: bool) -> graphql.BooleanValueNode:
4747
return graphql.BooleanValueNode(value=value)
4848

4949

50-
@lru_cache()
50+
@lru_cache
5151
def Enum(value: str) -> graphql.EnumValueNode:
5252
return graphql.EnumValueNode(value=value)
5353

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[tox]
22
isolated_build = true
3-
envlist = py{37,38,39,310,311,312},coverage-report
3+
envlist = py{38,39,310,311,312},coverage-report
44

55
[gh-actions]
66
python =
7-
3.7: py37
87
3.8: py38
98
3.9: py39
109
3.10: py310
@@ -28,7 +27,7 @@ allowlist_externals =
2827
description = Report coverage over all measured test runs.
2928
basepython = python3.10
3029
skip_install = true
31-
depends = py{37,38,39,310,311,312}
30+
depends = py{38,39,310,311,312}
3231
commands =
3332
coverage combine
3433
coverage report

0 commit comments

Comments
 (0)