Skip to content

Commit 14c3837

Browse files
committed
Drop support for py3.8
1 parent f988bcb commit 14c3837

7 files changed

Lines changed: 9 additions & 85 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
strategy:
1414
matrix:
1515
python-version:
16-
- "3.8"
1716
- "3.9"
1817
- "3.10"
1918
- "3.11"

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ repos:
4141
- croniter==5.0.1
4242
- django-stubs==5.1.1
4343
- django==5.1.3
44-
- importlib-resources==6.4.5
4544
- psycopg2-binary==2.9.10
4645
- psycopg[pool]==3.2.3
4746
- python-dateutil==2.9.0.post0
4847
- sphinx==7.1.2
4948
- sqlalchemy==2.0.36
50-
- typing-extensions==4.12.2
5149
- repo: https://github.com/astral-sh/ruff-pre-commit
5250
rev: v0.8.1
5351
hooks:

poetry.lock

Lines changed: 2 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

procrastinate/contrib/django/migrations_utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
from __future__ import annotations
22

33
import functools
4-
from typing import TYPE_CHECKING
4+
import importlib.resources as importlib_resources
55

66
from django.db import migrations
77

8-
if TYPE_CHECKING:
9-
import importlib_resources
10-
else:
11-
# https://github.com/pypa/twine/pull/551
12-
import importlib.resources as importlib_resources
13-
148

159
@functools.cache
1610
def list_migration_files() -> dict[str, str]:

procrastinate/schema.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
from __future__ import annotations
22

3+
import importlib.resources as importlib_resources
34
import pathlib
4-
from typing import TYPE_CHECKING, cast
5+
from typing import cast
56

67
from typing_extensions import LiteralString
78

8-
if TYPE_CHECKING:
9-
import importlib_resources
10-
else:
11-
# https://github.com/pypa/twine/pull/551
12-
import importlib.resources as importlib_resources
13-
149
from procrastinate import connector as connector_module
1510

1611
migrations_path = pathlib.Path(__file__).parent / "sql" / "migrations"

procrastinate/sql/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
from __future__ import annotations
22

3+
import importlib.resources as importlib_resources
34
import re
4-
from typing import TYPE_CHECKING, cast
5+
from typing import cast
56

67
from typing_extensions import LiteralString
78

8-
if TYPE_CHECKING:
9-
import importlib_resources
10-
else:
11-
# https://github.com/pypa/twine/pull/551
12-
import importlib.resources as importlib_resources
13-
149
QUERIES_REGEX = re.compile(r"(?:\n|^)-- ([a-z0-9_]+) --\n(?:-- .+\n)*", re.MULTILINE)
1510

1611

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,18 @@ documentation = "https://procrastinate.readthedocs.io/"
2323
procrastinate = 'procrastinate.cli:main'
2424

2525
[tool.poetry.dependencies]
26-
python = "^3.8"
26+
python = "^3.9"
2727
aiopg = { version = "*", optional = true }
2828
anyio = "*"
2929
asgiref = "*"
3030
attrs = "*"
3131
contextlib2 = { version = "*", python = "<3.10" }
3232
croniter = "*"
3333
django = { version = ">=2.2", optional = true }
34-
importlib-resources = { version = ">=1.4", python = "<3.9" }
3534
psycopg = { extras = ["pool"], version = "*" }
3635
psycopg2-binary = { version = "*", optional = true }
3736
python-dateutil = "*"
3837
sqlalchemy = { version = "^2.0", optional = true }
39-
typing-extensions = { version = "*", python = "<3.8" }
4038
sphinx = { version = "*", optional = true }
4139

4240
[tool.poetry.extras]
@@ -79,7 +77,7 @@ psycopg = [
7977
[tool.poetry.group.django.dependencies]
8078
django = [
8179
{ version = "4.2.*", python = "<3.10" },
82-
{ version = "*", python = "^3.10" },
80+
{ version = "*", python = ">=3.10" },
8381
]
8482

8583
[tool.poetry.group.test.dependencies]

0 commit comments

Comments
 (0)